summaryrefslogtreecommitdiffstats
path: root/include
diff options
context:
space:
mode:
authorJason Evans <jasone@canonware.com>2013-12-10 07:36:37 (GMT)
committerJason Evans <jasone@canonware.com>2013-12-10 07:42:08 (GMT)
commitb1941c615023cab9baf0a78a28df1e3b4972434f (patch)
tree8b4b9b1e0789d940613608ccdf2d8d2138e07a9c /include
parent80061b6df0a8bef0cedbd947d74932ff1c2511e8 (diff)
downloadjemalloc-b1941c615023cab9baf0a78a28df1e3b4972434f.zip
jemalloc-b1941c615023cab9baf0a78a28df1e3b4972434f.tar.gz
jemalloc-b1941c615023cab9baf0a78a28df1e3b4972434f.tar.bz2
Add probabability distribution utility code.
Add probabability distribution utility code that enables generation of random deviates drawn from normal, Chi-square, and Gamma distributions. Fix format strings in several of the assert_* macros (remove a %s). Clean up header issues; it's critical that system headers are not included after internal definitions potentially do things like: #define inline Fix the build system to incorporate header dependencies for the test library C files.
Diffstat (limited to 'include')
-rw-r--r--include/jemalloc/internal/jemalloc_internal_macros.h1
-rw-r--r--include/jemalloc/internal/prof.h2
2 files changed, 2 insertions, 1 deletions
diff --git a/include/jemalloc/internal/jemalloc_internal_macros.h b/include/jemalloc/internal/jemalloc_internal_macros.h
index ebb6216..82f827d 100644
--- a/include/jemalloc/internal/jemalloc_internal_macros.h
+++ b/include/jemalloc/internal/jemalloc_internal_macros.h
@@ -37,6 +37,7 @@
#define ZU(z) ((size_t)z)
#define QU(q) ((uint64_t)q)
+#define QI(q) ((int64_t)q)
#ifndef __DECONST
# define __DECONST(type, var) ((type)(uintptr_t)(const void *)(var))
diff --git a/include/jemalloc/internal/prof.h b/include/jemalloc/internal/prof.h
index 38a761b..28ad37a 100644
--- a/include/jemalloc/internal/prof.h
+++ b/include/jemalloc/internal/prof.h
@@ -355,7 +355,7 @@ prof_sample_threshold_update(prof_tdata_t *prof_tdata)
* Luc Devroye
* Springer-Verlag, New York, 1986
* pp 500
- * (http://cg.scs.carleton.ca/~luc/rnbookindex.html)
+ * (http://luc.devroye.org/rnbookindex.html)
*/
prng64(r, 53, prof_tdata->prng_state,
UINT64_C(6364136223846793005), UINT64_C(1442695040888963407));