mirror of
https://github.com/jemalloc/jemalloc.git
synced 2026-04-24 20:02:14 +03:00
Integrate architecture portability fixes.
Submitted by: Ingvar Hagelund
This commit is contained in:
parent
a162402282
commit
1517cc6df7
1 changed files with 4 additions and 1 deletions
|
|
@ -197,7 +197,7 @@ __FBSDID("$FreeBSD: src/lib/libc/stdlib/malloc.c,v 1.183 2008/12/01 10:20:59 jas
|
|||
#ifdef __alpha__
|
||||
# define QUANTUM_2POW 4
|
||||
#endif
|
||||
#ifdef __sparc64__
|
||||
#ifdef __sparc__
|
||||
# define QUANTUM_2POW 4
|
||||
#endif
|
||||
#ifdef __amd64__
|
||||
|
|
@ -212,6 +212,9 @@ __FBSDID("$FreeBSD: src/lib/libc/stdlib/malloc.c,v 1.183 2008/12/01 10:20:59 jas
|
|||
#ifdef __powerpc__
|
||||
# define QUANTUM_2POW 4
|
||||
#endif
|
||||
#ifdef __s390x__
|
||||
# define QUANTUM_2POW 4
|
||||
#endif
|
||||
|
||||
#define QUANTUM ((size_t)(1U << QUANTUM_2POW))
|
||||
#define QUANTUM_MASK (QUANTUM - 1)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue