Make jemalloc.h formatting more consistent.
This commit is contained in:
parent
748dfac778
commit
9f35a71a81
@ -13,7 +13,10 @@ EOF
|
|||||||
|
|
||||||
for hdr in jemalloc_defs.h jemalloc_macros.h jemalloc_protos.h \
|
for hdr in jemalloc_defs.h jemalloc_macros.h jemalloc_protos.h \
|
||||||
jemalloc_mangle.h ; do
|
jemalloc_mangle.h ; do
|
||||||
cat "${objroot}include/jemalloc/${hdr}" | grep -v 'Generated from .* by configure\.'
|
cat "${objroot}include/jemalloc/${hdr}" \
|
||||||
|
| grep -v 'Generated from .* by configure\.' \
|
||||||
|
| sed -e 's/^#define /#define /g' \
|
||||||
|
| sed -e 's/ $//g'
|
||||||
echo
|
echo
|
||||||
done
|
done
|
||||||
|
|
||||||
|
@ -5,8 +5,8 @@
|
|||||||
#undef JEMALLOC_EXPERIMENTAL
|
#undef JEMALLOC_EXPERIMENTAL
|
||||||
|
|
||||||
/*
|
/*
|
||||||
* Define overrides for non-standard allocator-related functions if they
|
* Define overrides for non-standard allocator-related functions if they are
|
||||||
* are present on the system.
|
* present on the system.
|
||||||
*/
|
*/
|
||||||
#undef JEMALLOC_OVERRIDE_MEMALIGN
|
#undef JEMALLOC_OVERRIDE_MEMALIGN
|
||||||
#undef JEMALLOC_OVERRIDE_VALLOC
|
#undef JEMALLOC_OVERRIDE_VALLOC
|
||||||
|
@ -13,13 +13,13 @@
|
|||||||
# if LG_SIZEOF_PTR == 2
|
# if LG_SIZEOF_PTR == 2
|
||||||
# define ALLOCM_ALIGN(a) (ffs(a)-1)
|
# define ALLOCM_ALIGN(a) (ffs(a)-1)
|
||||||
# else
|
# else
|
||||||
#define ALLOCM_ALIGN(a) ((a < (size_t)INT_MAX) ? ffs(a)-1 : ffs(a>>32)+31)
|
# define ALLOCM_ALIGN(a) \
|
||||||
|
((a < (size_t)INT_MAX) ? ffs(a)-1 : ffs(a>>32)+31)
|
||||||
# endif
|
# endif
|
||||||
# define ALLOCM_ZERO ((int)0x40)
|
# define ALLOCM_ZERO ((int)0x40)
|
||||||
# define ALLOCM_NO_MOVE ((int)0x80)
|
# define ALLOCM_NO_MOVE ((int)0x80)
|
||||||
/* Bias arena index bits so that 0 encodes "ALLOCM_ARENA() unspecified". */
|
/* Bias arena index bits so that 0 encodes "ALLOCM_ARENA() unspecified". */
|
||||||
# define ALLOCM_ARENA(a) ((int)(((a)+1) << 8))
|
# define ALLOCM_ARENA(a) ((int)(((a)+1) << 8))
|
||||||
|
|
||||||
# define ALLOCM_SUCCESS 0
|
# define ALLOCM_SUCCESS 0
|
||||||
# define ALLOCM_ERR_OOM 1
|
# define ALLOCM_ERR_OOM 1
|
||||||
# define ALLOCM_ERR_NOT_MOVED 2
|
# define ALLOCM_ERR_NOT_MOVED 2
|
||||||
|
Loading…
Reference in New Issue
Block a user