Fix the non-gcc-3.x definitions of G_LIKELY and G_UNLIKELY. (Reported by
authorMatthias Clasen <matthiasc@src.gnome.org>
Tue, 26 Nov 2002 00:35:11 +0000 (00:35 +0000)
committerMatthias Clasen <matthiasc@src.gnome.org>
Tue, 26 Nov 2002 00:35:11 +0000 (00:35 +0000)
* glib/gmacros.h: Fix the non-gcc-3.x definitions of G_LIKELY
and G_UNLIKELY.  (Reported by Dan Mills)

ChangeLog
ChangeLog.pre-2-10
ChangeLog.pre-2-12
ChangeLog.pre-2-2
ChangeLog.pre-2-4
ChangeLog.pre-2-6
ChangeLog.pre-2-8
glib/gmacros.h

index 51dcd23..0139650 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,8 @@
+2002-11-26  Matthias Clasen  <maclas@gmx.de>
+
+       * glib/gmacros.h: Fix the non-gcc-3.x definitions of G_LIKELY 
+       and G_UNLIKELY.  (Reported by Dan Mills)
+
 2002-11-25  Matthias Clasen  <maclas@gmx.de>
 
        * glib/gfileutils.c (g_build_path): 
index 51dcd23..0139650 100644 (file)
@@ -1,3 +1,8 @@
+2002-11-26  Matthias Clasen  <maclas@gmx.de>
+
+       * glib/gmacros.h: Fix the non-gcc-3.x definitions of G_LIKELY 
+       and G_UNLIKELY.  (Reported by Dan Mills)
+
 2002-11-25  Matthias Clasen  <maclas@gmx.de>
 
        * glib/gfileutils.c (g_build_path): 
index 51dcd23..0139650 100644 (file)
@@ -1,3 +1,8 @@
+2002-11-26  Matthias Clasen  <maclas@gmx.de>
+
+       * glib/gmacros.h: Fix the non-gcc-3.x definitions of G_LIKELY 
+       and G_UNLIKELY.  (Reported by Dan Mills)
+
 2002-11-25  Matthias Clasen  <maclas@gmx.de>
 
        * glib/gfileutils.c (g_build_path): 
index 51dcd23..0139650 100644 (file)
@@ -1,3 +1,8 @@
+2002-11-26  Matthias Clasen  <maclas@gmx.de>
+
+       * glib/gmacros.h: Fix the non-gcc-3.x definitions of G_LIKELY 
+       and G_UNLIKELY.  (Reported by Dan Mills)
+
 2002-11-25  Matthias Clasen  <maclas@gmx.de>
 
        * glib/gfileutils.c (g_build_path): 
index 51dcd23..0139650 100644 (file)
@@ -1,3 +1,8 @@
+2002-11-26  Matthias Clasen  <maclas@gmx.de>
+
+       * glib/gmacros.h: Fix the non-gcc-3.x definitions of G_LIKELY 
+       and G_UNLIKELY.  (Reported by Dan Mills)
+
 2002-11-25  Matthias Clasen  <maclas@gmx.de>
 
        * glib/gfileutils.c (g_build_path): 
index 51dcd23..0139650 100644 (file)
@@ -1,3 +1,8 @@
+2002-11-26  Matthias Clasen  <maclas@gmx.de>
+
+       * glib/gmacros.h: Fix the non-gcc-3.x definitions of G_LIKELY 
+       and G_UNLIKELY.  (Reported by Dan Mills)
+
 2002-11-25  Matthias Clasen  <maclas@gmx.de>
 
        * glib/gfileutils.c (g_build_path): 
index 51dcd23..0139650 100644 (file)
@@ -1,3 +1,8 @@
+2002-11-26  Matthias Clasen  <maclas@gmx.de>
+
+       * glib/gmacros.h: Fix the non-gcc-3.x definitions of G_LIKELY 
+       and G_UNLIKELY.  (Reported by Dan Mills)
+
 2002-11-25  Matthias Clasen  <maclas@gmx.de>
 
        * glib/gfileutils.c (g_build_path): 
index a07214f..20555e3 100644 (file)
 #define G_LIKELY(expr) __builtin_expect (_G_BOOLEAN_EXPR(expr), 1)
 #define G_UNLIKELY(expr) __builtin_expect (_G_BOOLEAN_EXPR(expr), 0)
 #else
-#define G_LIKELY(expr) expr
-#define G_UNLIKELY(expr) expr
+#define G_LIKELY(expr) (expr)
+#define G_UNLIKELY(expr) (expr)
 #endif
 
 #endif /* __G_MACROS_H__ */
 
 
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+