Commit b75a34b7 authored by Matthias Clasen's avatar Matthias Clasen

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)
parent 124138d0
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):
......
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):
......
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):
......
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):
......
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):
......
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):
......
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):
......
......@@ -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__ */
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment