patch-1.3.69 linux/include/asm-i386/string.h
Next file: linux/include/linux/blk.h
Previous file: linux/include/asm-i386/string-486.h
Back to the patch index
Back to the overall index
- Lines: 23
- Date:
Mon Feb 26 12:25:57 1996
- Orig file:
v1.3.68/linux/include/asm-i386/string.h
- Orig date:
Mon Aug 28 14:52:22 1995
diff -u --recursive --new-file v1.3.68/linux/include/asm-i386/string.h linux/include/asm-i386/string.h
@@ -2,6 +2,16 @@
#define _I386_STRING_H_
/*
+ * On a 486 or Pentium, we are better off not using the
+ * byte string operations. But on a 386 or a PPro the
+ * byte string ops are faster than doing it by hand
+ * (MUCH faster on a Pentium).
+ */
+#if CPU == 486 || CPU == 586
+#include <asm/string-486.h>
+#else
+
+/*
* This string-include defines all string functions as inline
* functions. Use gcc. It also assumes ds=es=data space, this should be
* normal. Most of the string-functions are rather heavily hand-optimized,
@@ -590,4 +600,5 @@
return addr;
}
+#endif
#endif
FUNET's LINUX-ADM group, linux-adm@nic.funet.fi
TCL-scripts by Sam Shen, slshen@lbl.gov
with Sam's (original) version of this