Fix the non-gcc-3.x definitions of G_LIKELY and G_UNLIKELY. (Reported by

* glib/gmacros.h: Fix the non-gcc-3.x definitions of G_LIKELY
	and G_UNLIKELY.  (Reported by Dan Mills)
This commit is contained in:
Matthias Clasen 2002-11-26 00:35:11 +00:00
parent 124138d09e
commit b75a34b721
8 changed files with 56 additions and 2 deletions

View 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):

View 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):

View 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):

View 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):

View 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):

View 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):

View 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):

View File

@ -225,10 +225,29 @@
#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__ */