This is the mail archive of the glibc-cvs@sourceware.org mailing list for the glibc project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

GNU C Library master sources branch master updated. glibc-2.17-8-g91998e4


This is an automated email from the git hooks/post-receive script. It was
generated because a ref change was pushed to the repository containing
the project "GNU C Library master sources".

The branch, master has been updated
       via  91998e449e0ce758db55aecf2abc3ee510fcbc8f (commit)
      from  99136f82027a5d6276c94a25d8392a7b571a08a3 (commit)

Those revisions listed above that are new to this repository have
not appeared on any other notification email; so we list those
revisions in full, below.

- Log -----------------------------------------------------------------
http://sources.redhat.com/git/gitweb.cgi?p=glibc.git;a=commitdiff;h=91998e449e0ce758db55aecf2abc3ee510fcbc8f

commit 91998e449e0ce758db55aecf2abc3ee510fcbc8f
Author: Siddhesh Poyarekar <siddhesh@redhat.com>
Date:   Fri Dec 28 11:53:01 2012 +0530

    Add __glibc_likely as an alias for __builtin_expect when available

diff --git a/ChangeLog b/ChangeLog
index f3e2201..df6538e 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,5 +1,8 @@
 2012-12-28  Siddhesh Poyarekar  <siddhesh@redhat.com>
 
+	* misc/sys/cdefs.h(__glibc_likely): Wrap __builtin_expect for
+	TRUE case.
+
 	* sysdeps/ieee754/dbl-64/mpa.c (norm): Define R as RADIXI.
 	(norm): Likewise.
 	* sysdeps/ieee754/dbl-64/mpa2.h: Remove all static const
diff --git a/misc/sys/cdefs.h b/misc/sys/cdefs.h
index fb6c959..1eee54e 100644
--- a/misc/sys/cdefs.h
+++ b/misc/sys/cdefs.h
@@ -378,8 +378,10 @@
 
 #if __GNUC__ >= 3
 # define __glibc_unlikely(cond) __builtin_expect((cond), 0)
+# define __glibc_likely(cond) __builtin_expect((cond), 1)
 #else
 # define __glibc_unlikely(cond) (cond)
+# define __glibc_likely(cond) (cond)
 #endif
 
 #include <bits/wordsize.h>

-----------------------------------------------------------------------

Summary of changes:
 ChangeLog        |    3 +++
 misc/sys/cdefs.h |    2 ++
 2 files changed, 5 insertions(+), 0 deletions(-)


hooks/post-receive
-- 
GNU C Library master sources


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]