diff options
| author | Chris Lattner <sabre@nondot.org> | 2005-01-28 19:37:35 +0000 |
|---|---|---|
| committer | Chris Lattner <sabre@nondot.org> | 2005-01-28 19:37:35 +0000 |
| commit | cd96168c9595aa9cdc17fcc0f3f44190781341e9 (patch) | |
| tree | d7acb1ce77ad93255c87e03bc547a4bbec508f84 /llvm/runtime | |
| parent | cd517ff0c784a2bb0cec0cfb9e4515eb17cadfed (diff) | |
| download | bcm5719-llvm-cd96168c9595aa9cdc17fcc0f3f44190781341e9.tar.gz bcm5719-llvm-cd96168c9595aa9cdc17fcc0f3f44190781341e9.zip | |
Hrm, who knows what 'uint' is, but it seems to work sometimes? Wierd.
llvm-svn: 19876
Diffstat (limited to 'llvm/runtime')
| -rw-r--r-- | llvm/runtime/libtrace/tracelib.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/llvm/runtime/libtrace/tracelib.c b/llvm/runtime/libtrace/tracelib.c index 9de5c296b48..be726f14620 100644 --- a/llvm/runtime/libtrace/tracelib.c +++ b/llvm/runtime/libtrace/tracelib.c @@ -51,12 +51,12 @@ const FULLEMPTY FULL = '\1'; // 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 @@ DeleteAtIndex(PtrValueHashTable* ptrTable, Index index) Index FindIndex(PtrValueHashTable* ptrTable, void* ptr) { - uint numProbes = 1; + unsigned numProbes = 1; Index index = PointerHashFunc(ptr, ptrTable->capacity); if (ptrTable->fullEmptyFlags[index] == FULL) { |

