Skip to content

Commit 407552c

Browse files
committed
allocalim.h: use __glibc_likely instead of __builtin_expect
* sysdeps/pthread/allocalim.h (__libc_use_alloca): Use __glibc_likely instead of __builtin_expect.
1 parent d31a4a4 commit 407552c

File tree

2 files changed

+7
-2
lines changed

2 files changed

+7
-2
lines changed

Diff for: ChangeLog

+5
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,8 @@
1+
2018-01-30 Samuel Thibault <[email protected]
2+
3+
* sysdeps/pthread/allocalim.h (__libc_use_alloca): Use __glibc_likely
4+
instead of __builtin_expect.
5+
16
2018-01-30 Florian Weimer <[email protected]>
27

38
* nss/bug17079.c (do_test): Use nss_files only for reading passwd

Diff for: sysdeps/pthread/allocalim.h

+2-2
Original file line numberDiff line numberDiff line change
@@ -24,9 +24,9 @@ extern __always_inline
2424
int
2525
__libc_use_alloca (size_t size)
2626
{
27-
return (__builtin_expect (__libc_alloca_cutoff (size), 1)
27+
return (__glibc_likely (__libc_alloca_cutoff (size))
2828
#ifdef PTHREAD_STACK_MIN
29-
|| __builtin_expect (size <= PTHREAD_STACK_MIN / 4, 1)
29+
|| __glibc_likely (size <= PTHREAD_STACK_MIN / 4)
3030
#endif
3131
);
3232
}

0 commit comments

Comments
 (0)