patch-2.1.73 linux/include/asm-mips/bitops.h
Next file: linux/include/asm-mips/bootinfo.h
Previous file: linux/include/asm-mips/atomic.h
Back to the patch index
Back to the overall index
- Lines: 28
- Date:
Tue Dec 16 12:45:55 1997
- Orig file:
v2.1.72/linux/include/asm-mips/bitops.h
- Orig date:
Mon Aug 18 18:19:46 1997
diff -u --recursive --new-file v2.1.72/linux/include/asm-mips/bitops.h linux/include/asm-mips/bitops.h
@@ -5,11 +5,14 @@
* License. See the file "COPYING" in the main directory of this archive
* for more details.
*
- * Copyright (c) 1994, 1995, 1996 Ralf Baechle
+ * Copyright (c) 1994 - 1997 Ralf Baechle (ralf@gnu.org)
*/
#ifndef __ASM_MIPS_BITOPS_H
#define __ASM_MIPS_BITOPS_H
+#include <linux/types.h>
+#include <linux/byteorder/swab.h> /* sigh ... */
+
#ifdef __KERNEL__
#include <asm/sgidefs.h>
@@ -466,11 +469,6 @@
#define ext2_find_first_zero_bit(addr, size) \
ext2_find_next_zero_bit((addr), (size), 0)
-
-static __inline__ unsigned long __swab32(unsigned long val)
-{
- return ((val>>24)|((val>>8)&0xff00)|((val<<8)&0xff0000)|(val<<24));
-}
extern __inline__ unsigned long ext2_find_next_zero_bit(void *addr, unsigned long size, unsigned long offset)
{
FUNET's LINUX-ADM group, linux-adm@nic.funet.fi
TCL-scripts by Sam Shen, slshen@lbl.gov