]> mj.ucw.cz Git - libucw.git/commitdiff
CONST attribute of functions noted in a better place
authorRobert Spalek <robert@ucw.cz>
Tue, 4 Jun 2002 08:51:37 +0000 (08:51 +0000)
committerRobert Spalek <robert@ucw.cz>
Tue, 4 Jun 2002 08:51:37 +0000 (08:51 +0000)
lib/hashfunc.c
lib/hashfunc.h

index 631a0bbe16550f14a46c0884e77c43a002633ac8..980b4077f673b339386ed7a30e0b4e696d818531 100644 (file)
@@ -34,9 +34,7 @@ hashfunc_init(void)
        }
 }
 
-static inline uns str_len_uns(uns x) CONST;
-
-static inline uns
+static inline uns CONST
 str_len_uns(uns x)
 {
        const uns sub = ((uns) -1) / 0xff;
@@ -49,7 +47,7 @@ str_len_uns(uns x)
         * x_3 = x ^ x_2;
         * a = x_3 & 0x80808080;
         *
-        * If none byte of x is in {0, 0x80}, then the highest bit of each byte
+        * If no byte of x is in {0, 0x80}, then the highest bit of each byte
         * of x_2 is the same as of x.  Hence x_3 has all these highest bits
         * cleared.  If a == 0, then we are sure there is no zero byte in x.
         */
index 1767d81bb5fd9eb7cd4903eb0156b1f218a861a9..d79e44ecfdaf695439a026496287ccab2e9ef76b 100644 (file)
@@ -30,7 +30,6 @@ uns hash_block(const byte *str, uns len) CONST;
 
 uns hash_string_nocase(const byte *str) CONST;
 
-static inline uns hash_int(uns x) CONST;
-static inline uns hash_int(uns x) { return 6442450967*x; }
+static inline uns CONST hash_int(uns x) { return 6442450967*x; }
 
 #endif