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 Add Linux __ffs64.



details:   https://anonhg.NetBSD.org/src/rev/c465f983d153
branches:  trunk
changeset: 798003:c465f983d153
user:      riastradh <riastradh%NetBSD.org@localhost>
date:      Wed Aug 06 13:50:38 2014 +0000

description:
Add Linux __ffs64.

diffstat:

 sys/external/bsd/drm2/include/linux/bitops.h |  11 +++++++++--
 1 files changed, 9 insertions(+), 2 deletions(-)

diffs (33 lines):

diff -r 4b8f837423e5 -r c465f983d153 sys/external/bsd/drm2/include/linux/bitops.h
--- a/sys/external/bsd/drm2/include/linux/bitops.h      Wed Aug 06 13:49:33 2014 +0000
+++ b/sys/external/bsd/drm2/include/linux/bitops.h      Wed Aug 06 13:50:38 2014 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: bitops.h,v 1.6 2014/07/17 14:30:33 riastradh Exp $     */
+/*     $NetBSD: bitops.h,v 1.7 2014/08/06 13:50:38 riastradh Exp $     */
 
 /*-
  * Copyright (c) 2013 The NetBSD Foundation, Inc.
@@ -32,15 +32,22 @@
 #ifndef _LINUX_BITOPS_H_
 #define _LINUX_BITOPS_H_
 
+#include <sys/cdefs.h>
 #include <sys/types.h>
 #include <sys/param.h>
 #include <sys/atomic.h>
-#include <sys/cdefs.h>
+#include <sys/bitops.h>
 
 #include <machine/limits.h>
 
 #include <lib/libkern/libkern.h>
 
+static inline unsigned long
+__ffs64(uint64_t x)
+{
+       return ffs64(x);
+}
+
 static inline unsigned int
 hweight16(uint16_t n)
 {



Home | Main Index | Thread Index | Old Index