patch-2.1.110 linux/include/asm-mips/bitops.h
Next file: linux/include/asm-ppc/bitops.h
Previous file: linux/include/asm-m68k/bitops.h
Back to the patch index
Back to the overall index
- Lines: 18
- Date:
Mon Jul 20 17:23:32 1998
- Orig file:
v2.1.109/linux/include/asm-mips/bitops.h
- Orig date:
Tue Jun 23 10:01:28 1998
diff -u --recursive --new-file v2.1.109/linux/include/asm-mips/bitops.h linux/include/asm-mips/bitops.h
@@ -372,6 +372,8 @@
return __res;
}
+#ifdef __KERNEL__
+
/*
* ffs: find first bit set. This is defined the same way as
* the libc and compiler builtin ffs routines, therefore
@@ -388,6 +390,8 @@
#define hweight32(x) generic_hweight32(x)
#define hweight16(x) generic_hweight16(x)
#define hweight8(x) generic_hweight8(x)
+
+#endif /* __KERNEL__ */
#ifdef __MIPSEB__
/* For now I steal the Sparc C versions, no need for speed, just need to
FUNET's LINUX-ADM group, linux-adm@nic.funet.fi
TCL-scripts by Sam Shen, slshen@lbl.gov