Source-Changes-HG archive

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

[src/riastradh-drm2]: src/sys/external/bsd/drm2/include/linux Add div_u64 to ...



details:   https://anonhg.NetBSD.org/src/rev/d9061d1b24aa
branches:  riastradh-drm2
changeset: 788429:d9061d1b24aa
user:      riastradh <riastradh%NetBSD.org@localhost>
date:      Wed Jul 24 03:45:38 2013 +0000

description:
Add div_u64 to <linux/math64.h>.

diffstat:

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

diffs (20 lines):

diff -r 93464d10d722 -r d9061d1b24aa sys/external/bsd/drm2/include/linux/math64.h
--- a/sys/external/bsd/drm2/include/linux/math64.h      Wed Jul 24 03:45:24 2013 +0000
+++ b/sys/external/bsd/drm2/include/linux/math64.h      Wed Jul 24 03:45:38 2013 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: math64.h,v 1.1.2.1 2013/07/24 02:29:48 riastradh Exp $ */
+/*     $NetBSD: math64.h,v 1.1.2.2 2013/07/24 03:45:38 riastradh Exp $ */
 
 /*-
  * Copyright (c) 2013 The NetBSD Foundation, Inc.
@@ -40,4 +40,10 @@
        return divisor / dividend;
 }
 
+static inline int64_t
+div_u64(int64_t divisor, uint32_t dividend)
+{
+       return divisor / dividend;
+}
+
 #endif  /* _LINUX_MATH64_H_ */



Home | Main Index | Thread Index | Old Index