summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorJason Evans <je@fb.com>2012-03-02 23:59:45 (GMT)
committerJason Evans <je@fb.com>2012-03-02 23:59:45 (GMT)
commit84f7cdb0c588322dfd50a26497fc1cb54b792018 (patch)
treedb43a570a7319ddc3ccea9eb24ab163a38e32e54 /src
parent62320b85517c472beb12bf0ba69660393712f51a (diff)
downloadjemalloc-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.c6
-rw-r--r--src/prof.c2
2 files changed, 4 insertions, 4 deletions
diff --git a/src/ckh.c b/src/ckh.c
index 4a6d1e3..bea6ef8 100644
--- a/src/ckh.c
+++ b/src/ckh.c
@@ -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;
/*
diff --git a/src/prof.c b/src/prof.c
index 21b60e3..c4a2d64 100644
--- a/src/prof.c
+++ b/src/prof.c
@@ -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;