chiark / gitweb /
[PATCH] update klibc to version .107
authorgreg@kroah.com <greg@kroah.com>
Fri, 13 Feb 2004 06:41:55 +0000 (22:41 -0800)
committerGreg KH <gregkh@suse.de>
Wed, 27 Apr 2005 04:32:27 +0000 (21:32 -0700)
klibc/klibc/include/endian.h
klibc/klibc/include/klibc/compiler.h
klibc/version

index 10dbbd8a89e9a45eb963d03030494c87225c2a89..44f89ccbbc940f723cdc3f140906dddb1046f23a 100644 (file)
@@ -5,6 +5,7 @@
 #ifndef _ENDIAN_H
 #define _ENDIAN_H
 
+#include <klibc/compiler.h>
 #include <asm/byteorder.h>
 
 /* Linux' asm/byteorder.h defines either __LITTLE_ENDIAN or
index 64b8c541588be772f0d6eebdbb1de9ca3598b43c..49872b89d4c2484ff4addb0cc5c6acff6c242dcf 100644 (file)
 # define __unusedfunc
 #endif
 
+/* "pure" function:
+
+     Many functions have no effects except the return value and their
+     return value depends only on the parameters and/or global
+     variables.  Such a function can be subject to common subexpression
+     elimination and loop optimization just as an arithmetic operator
+     would be.  These functions should be declared with the attribute
+     `pure'.
+*/
+#ifdef __GNUC__
+# define __attribute_pure__    __attribute__((pure))
+#else
+# define __attribute_pure__
+#endif
+
+/* "const" function:
+
+     Many functions do not examine any values except their arguments,
+     and have no effects except the return value.  Basically this is
+     just slightly more strict class than the `pure' attribute above,
+     since function is not allowed to read global memory.
+
+     Note that a function that has pointer arguments and examines the
+     data pointed to must _not_ be declared `const'.  Likewise, a
+     function that calls a non-`const' function usually must not be
+     `const'.  It does not make sense for a `const' function to return
+     `void'.
+*/
+#ifdef __GNUC__
+# define __attribute_const__   __attribute__((const))
+#else
+# define __attribute_const__
+#endif
+
 #endif
index f14cf6a1e09a1c02030a3f584d85ff793a6872c1..4b0a18ac52a4a612417cebae97f33b2684bf658e 100644 (file)
@@ -1 +1 @@
-0.107
+0.108