Skip to content
  • Matthias Clasen's avatar
    Use G_LIKELY. (#69022) · dc645ce3
    Matthias Clasen authored
    	* glib/gmessages.h (g_return_if_fail):
    	(g_return_val_if_fail): Use G_LIKELY.  (#69022)
    
    	* glib/gmacros.h (G_LIKELY):
    	(G_UNLIKELY): New macros for hinting the compiler about the
    	expected result of expressions. For gcc 3.x, define these
    	using __builtin_expect.  (#69022)
    
    	* glib/tmpl/macros_misc.sgml: Document G_LIKELY, G_UNLIKELY.
    
    	* glib/glib-sections.txt: Add G_LIKELY, G_UNLIKELY.
    dc645ce3
To find the state of this project's repository at the time of any of these versions, check out the tags.