* [hurd,commited] allocalim.h: use __glibc_likely instead of __builtin_expect
@ 2018-01-31 15:34 Samuel Thibault
0 siblings, 0 replies; only message in thread
From: Samuel Thibault @ 2018-01-31 15:34 UTC (permalink / raw)
To: libc-alpha; +Cc: Samuel Thibault
* sysdeps/pthread/allocalim.h (__libc_use_alloca): Use __glibc_likely
instead of __builtin_expect.
---
ChangeLog | 5 +++++
sysdeps/pthread/allocalim.h | 4 ++--
2 files changed, 7 insertions(+), 2 deletions(-)
diff --git a/ChangeLog b/ChangeLog
index 3c4868434c..06250f9007 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,8 @@
+2018-01-30 Samuel Thibault <samuel.thibault@ens-lyon.org
+
+ * sysdeps/pthread/allocalim.h (__libc_use_alloca): Use __glibc_likely
+ instead of __builtin_expect.
+
2018-01-30 Florian Weimer <fweimer@redhat.com>
* nss/bug17079.c (do_test): Use nss_files only for reading passwd
diff --git a/sysdeps/pthread/allocalim.h b/sysdeps/pthread/allocalim.h
index 38faf57b70..99f74838dd 100644
--- a/sysdeps/pthread/allocalim.h
+++ b/sysdeps/pthread/allocalim.h
@@ -24,9 +24,9 @@ extern __always_inline
int
__libc_use_alloca (size_t size)
{
- return (__builtin_expect (__libc_alloca_cutoff (size), 1)
+ return (__glibc_likely (__libc_alloca_cutoff (size))
#ifdef PTHREAD_STACK_MIN
- || __builtin_expect (size <= PTHREAD_STACK_MIN / 4, 1)
+ || __glibc_likely (size <= PTHREAD_STACK_MIN / 4)
#endif
);
}
--
2.15.1
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2018-01-30 20:43 UTC | newest]
Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2018-01-31 15:34 [hurd,commited] allocalim.h: use __glibc_likely instead of __builtin_expect Samuel Thibault
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).