summaryrefslogtreecommitdiffstats
path: root/test/src/math.c
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 /test/src/math.c
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 'test/src/math.c')
-rw-r--r--test/src/math.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/test/src/math.c b/test/src/math.c
new file mode 100644
index 0000000..887a363
--- /dev/null
+++ b/test/src/math.c
@@ -0,0 +1,2 @@
+#define MATH_C_
+#include "test/jemalloc_test.h"