diff options
author | Will Newton <will.newton@linaro.org> | 2013-08-27 10:42:31 +0100 |
---|---|---|
committer | Will Newton <will.newton@linaro.org> | 2013-08-27 10:42:31 +0100 |
commit | 14ddc2b6350c33c9f7502e11138f1b5e34f597a4 (patch) | |
tree | 01b4f2b5c9c1232f2ee0eb783eb35cf624904558 | |
parent | 02506908364488c180f8a2a15dc082a81a6bf18b (diff) |
jemalloc: Correct type sizes on ARM.
-rw-r--r-- | reference/jemalloc/include/jemalloc/jemalloc_defs.h | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/reference/jemalloc/include/jemalloc/jemalloc_defs.h b/reference/jemalloc/include/jemalloc/jemalloc_defs.h index 7891a4e..b08da77 100644 --- a/reference/jemalloc/include/jemalloc/jemalloc_defs.h +++ b/reference/jemalloc/include/jemalloc/jemalloc_defs.h @@ -259,6 +259,7 @@ */ #define JEMALLOC_HAS_ALLOCA_H 1 +#if defined(__x86_64__) /* sizeof(void *) == 2^LG_SIZEOF_PTR. */ #define LG_SIZEOF_PTR 3 @@ -270,3 +271,16 @@ /* sizeof(intmax_t) == 2^LG_SIZEOF_INTMAX_T. */ #define LG_SIZEOF_INTMAX_T 3 +#else +/* sizeof(void *) == 2^LG_SIZEOF_PTR. */ +#define LG_SIZEOF_PTR 2 + +/* sizeof(int) == 2^LG_SIZEOF_INT. */ +#define LG_SIZEOF_INT 2 + +/* sizeof(long) == 2^LG_SIZEOF_LONG. */ +#define LG_SIZEOF_LONG 2 + +/* sizeof(intmax_t) == 2^LG_SIZEOF_INTMAX_T. */ +#define LG_SIZEOF_INTMAX_T 2 +#endif |