Module Name:    src
Committed By:   riastradh
Date:           Sun Dec 19 01:14:51 UTC 2021

Modified Files:
        src/sys/external/bsd/drm2/include/linux: math64.h

Log Message:
mul_u32_u32


To generate a diff of this commit:
cvs rdiff -u -r1.6 -r1.7 src/sys/external/bsd/drm2/include/linux/math64.h

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.

Modified files:

Index: src/sys/external/bsd/drm2/include/linux/math64.h
diff -u src/sys/external/bsd/drm2/include/linux/math64.h:1.6 src/sys/external/bsd/drm2/include/linux/math64.h:1.7
--- src/sys/external/bsd/drm2/include/linux/math64.h:1.6	Mon Aug 27 07:02:51 2018
+++ src/sys/external/bsd/drm2/include/linux/math64.h	Sun Dec 19 01:14:50 2021
@@ -1,4 +1,4 @@
-/*	$NetBSD: math64.h,v 1.6 2018/08/27 07:02:51 riastradh Exp $	*/
+/*	$NetBSD: math64.h,v 1.7 2021/12/19 01:14:50 riastradh Exp $	*/
 
 /*-
  * Copyright (c) 2013 The NetBSD Foundation, Inc.
@@ -67,4 +67,10 @@ div64_u64_rem(uint64_t dividend, uint64_
 	return dividend / divisor;
 }
 
+static inline uint64_t
+mul_u32_u32(uint32_t a, uint32_t b)
+{
+	return (uint64_t)a * (uint64_t)b;
+}
+
 #endif  /* _LINUX_MATH64_H_ */

Reply via email to