]> granicus.if.org Git - libatomic_ops/commit
Use __builtin_expect in atomic_ops_malloc
authorIvan Maidanski <ivmai@mail.ru>
Mon, 4 Dec 2017 21:21:04 +0000 (00:21 +0300)
committerIvan Maidanski <ivmai@mail.ru>
Fri, 22 Dec 2017 07:26:54 +0000 (10:26 +0300)
commitaf5a0a0061fa6941262db93680f6d14757b50569
tree4869ad6dc5816bf03d035084ad971f890824f21a
parentf1cb2c68e810a779d429df66e7029d203d877b19
Use __builtin_expect in atomic_ops_malloc

* src/atomic_ops_malloc.c [HAVE_MMAP] (get_mmaped, SIZET_SAT_ADD,
AO_malloc_large): Use AO_EXPECT_FALSE.
* src/atomic_ops_malloc.c (get_chunk, msb, AO_malloc, AO_free):
Likewise.
* src/atomic_ops_malloc.c (AO_malloc_large): Reformat code.
src/atomic_ops_malloc.c