patch-2.4.4 linux/include/linux/compiler.h
Next file: linux/include/linux/dcache.h
Previous file: linux/include/linux/com20020.h
Back to the patch index
Back to the overall index
- Lines: 14
- Date:
Sun Apr 22 19:10:53 2001
- Orig file:
v2.4.3/linux/include/linux/compiler.h
- Orig date:
Wed Dec 31 16:00:00 1969
diff -u --recursive --new-file v2.4.3/linux/include/linux/compiler.h linux/include/linux/compiler.h
@@ -0,0 +1,13 @@
+#ifndef __LINUX_COMPILER_H
+#define __LINUX_COMPILER_H
+
+/* Somewhere in the middle of the GCC 2.96 development cycle, we implemented
+ a mechanism by which the user can annotate likely branch directions and
+ expect the blocks to be reordered appropriately. Define __builtin_expect
+ to nothing for earlier compilers. */
+
+#if __GNUC__ == 2 && __GNUC_MINOR__ < 96
+#define __builtin_expect(x, expected_value) (x)
+#endif
+
+#endif /* __LINUX_COMPILER_H */
FUNET's LINUX-ADM group, linux-adm@nic.funet.fi
TCL-scripts by Sam Shen (who was at: slshen@lbl.gov)