Commit f1d0ef25 authored by Ingvar Hagelund's avatar Ingvar Hagelund

jemalloc portability fixes for sparc and s390

git-svn-id: http://www.varnish-cache.org/svn/trunk/varnish-cache@4387 d4fa192b-c00b-0410-8231-f00ffab90ce4
parent 0052757f
......@@ -244,7 +244,7 @@
# define SIZEOF_PTR_2POW 3
# define NO_TLS
#endif
#ifdef __sparc64__
#ifdef __sparc__
# define PAGESIZE_2POW 13
# define QUANTUM_2POW 4
# define SIZEOF_PTR_2POW 3
......@@ -273,6 +273,11 @@
# define QUANTUM_2POW 4
# define SIZEOF_PTR_2POW 2
#endif
#ifdef __s390x__
# define PAGESIZE_2POW 12
# define QUANTUM_2POW 4
# define SIZEOF_PTR_2POW 3
#endif
#define QUANTUM ((size_t)(1U << QUANTUM_2POW))
#define QUANTUM_MASK (QUANTUM - 1)
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment