diff options
author | Jason Evans <je@fb.com> | 2012-03-02 23:59:45 (GMT) |
---|---|---|
committer | Jason Evans <je@fb.com> | 2012-03-02 23:59:45 (GMT) |
commit | 84f7cdb0c588322dfd50a26497fc1cb54b792018 (patch) | |
tree | db43a570a7319ddc3ccea9eb24ab163a38e32e54 /src | |
parent | 62320b85517c472beb12bf0ba69660393712f51a (diff) | |
download | jemalloc-84f7cdb0c588322dfd50a26497fc1cb54b792018.zip jemalloc-84f7cdb0c588322dfd50a26497fc1cb54b792018.tar.gz jemalloc-84f7cdb0c588322dfd50a26497fc1cb54b792018.tar.bz2 |
Rename prn to prng.
Rename prn to prng so that Windows doesn't choke when trying to create
a file named prn.h.
Diffstat (limited to 'src')
-rw-r--r-- | src/ckh.c | 6 | ||||
-rw-r--r-- | src/prof.c | 2 |
2 files changed, 4 insertions, 4 deletions
@@ -99,7 +99,7 @@ ckh_try_bucket_insert(ckh_t *ckh, size_t bucket, const void *key, * Cycle through the cells in the bucket, starting at a random position. * The randomness avoids worst-case search overhead as buckets fill up. */ - prn32(offset, LG_CKH_BUCKET_CELLS, ckh->prn_state, CKH_A, CKH_C); + prng32(offset, LG_CKH_BUCKET_CELLS, ckh->prng_state, CKH_A, CKH_C); for (i = 0; i < (ZU(1) << LG_CKH_BUCKET_CELLS); i++) { cell = &ckh->tab[(bucket << LG_CKH_BUCKET_CELLS) + ((i + offset) & ((ZU(1) << LG_CKH_BUCKET_CELLS) - 1))]; @@ -141,7 +141,7 @@ ckh_evict_reloc_insert(ckh_t *ckh, size_t argbucket, void const **argkey, * were an item for which both hashes indicated the same * bucket. */ - prn32(i, LG_CKH_BUCKET_CELLS, ckh->prn_state, CKH_A, CKH_C); + prng32(i, LG_CKH_BUCKET_CELLS, ckh->prng_state, CKH_A, CKH_C); cell = &ckh->tab[(bucket << LG_CKH_BUCKET_CELLS) + i]; assert(cell->key != NULL); @@ -361,7 +361,7 @@ ckh_new(ckh_t *ckh, size_t minitems, ckh_hash_t *hash, ckh_keycomp_t *keycomp) ckh->ninserts = 0; ckh->nrelocs = 0; #endif - ckh->prn_state = 42; /* Value doesn't really matter. */ + ckh->prng_state = 42; /* Value doesn't really matter. */ ckh->count = 0; /* @@ -1170,7 +1170,7 @@ prof_tdata_init(void) return (NULL); } - prof_tdata->prn_state = 0; + prof_tdata->prng_state = 0; prof_tdata->threshold = 0; prof_tdata->accum = 0; |