We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent d31a4a4 commit 407552cCopy full SHA for 407552c
ChangeLog
@@ -1,3 +1,8 @@
1
+2018-01-30 Samuel Thibault <samuel.thibault@ens-lyon.org
2
+
3
+ * sysdeps/pthread/allocalim.h (__libc_use_alloca): Use __glibc_likely
4
+ instead of __builtin_expect.
5
6
2018-01-30 Florian Weimer <fweimer@redhat.com>
7
8
* nss/bug17079.c (do_test): Use nss_files only for reading passwd
sysdeps/pthread/allocalim.h
@@ -24,9 +24,9 @@ extern __always_inline
24
int
25
__libc_use_alloca (size_t size)
26
{
27
- return (__builtin_expect (__libc_alloca_cutoff (size), 1)
+ return (__glibc_likely (__libc_alloca_cutoff (size))
28
#ifdef PTHREAD_STACK_MIN
29
- || __builtin_expect (size <= PTHREAD_STACK_MIN / 4, 1)
+ || __glibc_likely (size <= PTHREAD_STACK_MIN / 4)
30
#endif
31
);
32
}
0 commit comments