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 Implement abs64...



details:   https://anonhg.NetBSD.org/src/rev/1bf9a287f0d7
branches:  riastradh-drm2
changeset: 788152:1bf9a287f0d7
user:      riastradh <riastradh%NetBSD.org@localhost>
date:      Wed Jul 24 02:28:07 2013 +0000

description:
Implement abs64 in <linux/kernel.h>.

diffstat:

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

diffs (20 lines):

diff -r ef760c304c68 -r 1bf9a287f0d7 sys/external/bsd/drm2/include/linux/kernel.h
--- a/sys/external/bsd/drm2/include/linux/kernel.h      Wed Jul 24 02:27:52 2013 +0000
+++ b/sys/external/bsd/drm2/include/linux/kernel.h      Wed Jul 24 02:28:07 2013 +0000
@@ -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_ */



Home | Main Index | Thread Index | Old Index