Module Name: src
Committed By: riastradh
Date: Wed Jul 24 02:28:07 UTC 2013
Modified Files:
src/sys/external/bsd/drm2/include/linux [riastradh-drm2]: kernel.h
Log Message:
Implement abs64 in <linux/kernel.h>.
To generate a diff of this commit:
cvs rdiff -u -r1.1.2.9 -r1.1.2.10 \
src/sys/external/bsd/drm2/include/linux/kernel.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/kernel.h
diff -u src/sys/external/bsd/drm2/include/linux/kernel.h:1.1.2.9 src/sys/external/bsd/drm2/include/linux/kernel.h:1.1.2.10
--- src/sys/external/bsd/drm2/include/linux/kernel.h:1.1.2.9 Wed Jul 24 02:24:16 2013
+++ src/sys/external/bsd/drm2/include/linux/kernel.h Wed Jul 24 02:28:07 2013
@@ -1,4 +1,4 @@
-/* $NetBSD: kernel.h,v 1.1.2.9 2013/07/24 02:24:16 riastradh Exp $ */
+/* $NetBSD: kernel.h,v 1.1.2.10 2013/07/24 02:28:07 riastradh Exp $ */
/*-
* Copyright (c) 2013 The NetBSD Foundation, Inc.
@@ -58,4 +58,10 @@
} \
} while (0)
+static inline int64_t
+abs64(int64_t x)
+{
+ return (x < 0? (-x) : x);
+}
+
#endif /* _LINUX_KERNEL_H_ */