summaryrefslogtreecommitdiffstats
path: root/test/src
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
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')
-rw-r--r--test/src/SFMT.c5
-rw-r--r--test/src/math.c2
2 files changed, 2 insertions, 5 deletions
diff --git a/test/src/SFMT.c b/test/src/SFMT.c
index cd48c3a..bfd763c 100644
--- a/test/src/SFMT.c
+++ b/test/src/SFMT.c
@@ -65,9 +65,6 @@
128-bit SIMD data type for Altivec, SSE2 or standard C
------------------------------------------------------*/
#if defined(HAVE_ALTIVEC)
- #if !defined(__APPLE__)
- #include <altivec.h>
- #endif
/** 128-bit data structure */
union W128_T {
vector unsigned int s;
@@ -77,8 +74,6 @@ union W128_T {
typedef union W128_T w128_t;
#elif defined(HAVE_SSE2)
- #include <emmintrin.h>
-
/** 128-bit data structure */
union W128_T {
__m128i si;
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"