Module Name:    src
Committed By:   riastradh
Date:           Wed Jul 24 03:45:38 UTC 2013

Modified Files:
        src/sys/external/bsd/drm2/include/linux [riastradh-drm2]: math64.h

Log Message:
Add div_u64 to <linux/math64.h>.


To generate a diff of this commit:
cvs rdiff -u -r1.1.2.1 -r1.1.2.2 \
    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.1.2.1 src/sys/external/bsd/drm2/include/linux/math64.h:1.1.2.2
--- src/sys/external/bsd/drm2/include/linux/math64.h:1.1.2.1	Wed Jul 24 02:29:48 2013
+++ src/sys/external/bsd/drm2/include/linux/math64.h	Wed Jul 24 03:45:38 2013
@@ -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 @@ div64_u64(int64_t divisor, uint64_t divi
 	return divisor / dividend;
 }
 
+static inline int64_t
+div_u64(int64_t divisor, uint32_t dividend)
+{
+	return divisor / dividend;
+}
+
 #endif  /* _LINUX_MATH64_H_ */

Reply via email to