[llvm-commits] CVS: llvm/runtime/libtrace/tracelib.c
Chris Lattner
lattner at cs.uiuc.edu
Fri Jan 28 11:37:48 PST 2005
Changes in directory llvm/runtime/libtrace:
tracelib.c updated: 1.11 -> 1.12
---
Log message:
Hrm, who knows what 'uint' is, but it seems to work sometimes? Wierd.
---
Diffs of the changes: (+4 -4)
tracelib.c | 8 ++++----
1 files changed, 4 insertions(+), 4 deletions(-)
Index: llvm/runtime/libtrace/tracelib.c
diff -u llvm/runtime/libtrace/tracelib.c:1.11 llvm/runtime/libtrace/tracelib.c:1.12
--- llvm/runtime/libtrace/tracelib.c:1.11 Wed Sep 1 17:55:37 2004
+++ llvm/runtime/libtrace/tracelib.c Fri Jan 28 13:37:35 2005
@@ -51,12 +51,12 @@
// Use these as the successive sizes of the hash table.
#define NUMPRIMES 11
#define FIRSTENTRY 2
-const uint PRIMES[NUMPRIMES] = { (1<<20)-3, (1<<21)-9, (1<<22)-3, (1<<23)-15,
+const unsigned PRIMES[NUMPRIMES] = { (1<<20)-3, (1<<21)-9, (1<<22)-3, (1<<23)-15,
(1<<24)-3, (1<<25)-39, (1<<26)-5, (1<<27)-39,
(1<<28)-57, (1<<29)-3, (1<<30)-35 };
-uint CurrentSizeEntry = FIRSTENTRY;
+unsigned CurrentSizeEntry = FIRSTENTRY;
-const uint MAX_NUM_PROBES = 4;
+const unsigned MAX_NUM_PROBES = 4;
typedef struct PtrValueHashEntry_struct {
void* key;
@@ -170,7 +170,7 @@
Index
FindIndex(PtrValueHashTable* ptrTable, void* ptr)
{
- uint numProbes = 1;
+ unsigned numProbes = 1;
Index index = PointerHashFunc(ptr, ptrTable->capacity);
if (ptrTable->fullEmptyFlags[index] == FULL)
{
More information about the llvm-commits
mailing list