Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[src/trunk]: src/sys/external/bsd/drm2/include/linux mul_u32_u32



details:   https://anonhg.NetBSD.org/src/rev/b262269215d4
branches:  trunk
changeset: 1027906:b262269215d4
user:      riastradh <riastradh%NetBSD.org@localhost>
date:      Sun Dec 19 01:14:50 2021 +0000

description:
mul_u32_u32

diffstat:

 sys/external/bsd/drm2/include/linux/math64.h |  8 +++++++-
 1 files changed, 7 insertions(+), 1 deletions(-)

diffs (20 lines):

diff -r 610a63be17cc -r b262269215d4 sys/external/bsd/drm2/include/linux/math64.h
--- a/sys/external/bsd/drm2/include/linux/math64.h      Sun Dec 19 01:14:43 2021 +0000
+++ b/sys/external/bsd/drm2/include/linux/math64.h      Sun Dec 19 01:14:50 2021 +0000
@@ -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 @@
        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_ */



Home | Main Index | Thread Index | Old Index