Integrate architecture portability fixes.

Submitted by:	Ingvar Hagelund
This commit is contained in:
Jason Evans 2009-11-09 15:25:02 -08:00
parent a162402282
commit 1517cc6df7

View File

@ -197,7 +197,7 @@ __FBSDID("$FreeBSD: src/lib/libc/stdlib/malloc.c,v 1.183 2008/12/01 10:20:59 jas
#ifdef __alpha__ #ifdef __alpha__
# define QUANTUM_2POW 4 # define QUANTUM_2POW 4
#endif #endif
#ifdef __sparc64__ #ifdef __sparc__
# define QUANTUM_2POW 4 # define QUANTUM_2POW 4
#endif #endif
#ifdef __amd64__ #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__ #ifdef __powerpc__
# define QUANTUM_2POW 4 # define QUANTUM_2POW 4
#endif #endif
#ifdef __s390x__
# define QUANTUM_2POW 4
#endif
#define QUANTUM ((size_t)(1U << QUANTUM_2POW)) #define QUANTUM ((size_t)(1U << QUANTUM_2POW))
#define QUANTUM_MASK (QUANTUM - 1) #define QUANTUM_MASK (QUANTUM - 1)