Welcome to mirror list, hosted at ThFree Co, Russian Federation.

cygwin.com/git/newlib-cygwin.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJeff Johnston <jjohnstn@redhat.com>2008-11-25 00:16:06 +0300
committerJeff Johnston <jjohnstn@redhat.com>2008-11-25 00:16:06 +0300
commit0ef912dfc442abcadcc8a6f01c6a6de86a8a2ea9 (patch)
tree98f4ecb977037458d569cef636991574628f787d /newlib/libc/search
parent9aa929ef17d4518dde4f508d12eb984840df376e (diff)
2008-11-24 Jeff Johnston <jjohnstn@redhat.com>
* libc/search/hash_func.c: Comment out unused static hash functions. * libc/reent/stat64r.c: New file. * libc/reent/Makefile.am: Add stat64r.c support. * libc/reent/Makefile.in: Regenerated.
Diffstat (limited to 'newlib/libc/search')
-rw-r--r--newlib/libc/search/hash_func.c8
1 files changed, 8 insertions, 0 deletions
diff --git a/newlib/libc/search/hash_func.c b/newlib/libc/search/hash_func.c
index 52cb31ccb..355f0b592 100644
--- a/newlib/libc/search/hash_func.c
+++ b/newlib/libc/search/hash_func.c
@@ -45,9 +45,11 @@ static char sccsid[] = "@(#)hash_func.c 8.2 (Berkeley) 2/21/94";
#include "page.h"
#include "extern.h"
+#if 0
static __uint32_t hash1(const void *, size_t);
static __uint32_t hash2(const void *, size_t);
static __uint32_t hash3(const void *, size_t);
+#endif
static __uint32_t hash4(const void *, size_t);
/* Global default hash function */
@@ -65,6 +67,7 @@ __uint32_t (*__default_hash)(const void *, size_t) = hash4;
#define PRIME1 37
#define PRIME2 1048583
+#if 0
static __uint32_t
hash1(keyarg, len)
const void *keyarg;
@@ -79,12 +82,14 @@ hash1(keyarg, len)
h %= PRIME2;
return (h);
}
+#endif
/*
* Phong's linear congruential hash
*/
#define dcharhash(h, c) ((h) = 0x63c63cd9*(h) + 0x9c39c33d + (c))
+#if 0
static __uint32_t
hash2(keyarg, len)
const void *keyarg;
@@ -104,6 +109,7 @@ hash2(keyarg, len)
}
return (h);
}
+#endif
/*
* This is INCREDIBLY ugly, but fast. We break the string up into 8 byte
@@ -114,6 +120,7 @@ hash2(keyarg, len)
*
* OZ's original sdbm hash
*/
+#if 0
static __uint32_t
hash3(keyarg, len)
const void *keyarg;
@@ -160,6 +167,7 @@ hash3(keyarg, len)
}
return (h);
}
+#endif
/* Hash function from Chris Torek. */
static __uint32_t