Searched refs:G_LIKELY (Results 1 – 16 of 16) sorted by relevance
127 if (G_LIKELY (n_bytes)) in g_malloc()147 if (G_LIKELY (n_bytes)) in g_malloc0()168 if (G_LIKELY (n_bytes)) in g_realloc()189 if (G_LIKELY (mem)) in g_free()198 if (G_LIKELY (n_bytes)) in g_try_malloc()223 if (G_LIKELY (n_bytes)) in g_try_realloc()
173 …return G_LIKELY (!sibling_or_after) ? NULL : (sibling_or_after > 1 && cmp > 0) ? check + sizeof_no… in g_bsearch_array_lookup_fuzzy()180 return (G_LIKELY (nth < barray->n_nodes) ? in g_bsearch_array_get_nth()237 if (G_LIKELY (node)) in g_bsearch_array_insert()257 if (G_LIKELY (node)) /* expected path */ in g_bsearch_array_replace()
243 #define g_warn_if_fail(expr) do { if G_LIKELY (expr) ; else \258 if G_LIKELY(expr) { } else \267 if G_LIKELY(expr) { } else \
270 #define G_LIKELY(expr) (__builtin_expect (_G_BOOLEAN_EXPR(expr), 1)) macro273 #define G_LIKELY(expr) (expr) macro
129 #define mem_assert(cond) do { if (G_LIKELY (cond)) ; else mem_error ("assertion failed: %s", #co…351 …if (G_LIKELY (aligned_chunk_size && aligned_chunk_size <= allocator->max_slab_chunk_size_for_magaz… in allocator_categorize()778 if (G_LIKELY (mag->count > 0)) in thread_memory_magazine1_alloc()805 if (G_LIKELY (acat == 1)) /* allocate through magazine layer */ in g_slice_alloc()860 if (G_LIKELY (acat == 1)) /* allocate through magazine layer */ in g_slice_free1()913 if (G_LIKELY (acat == 1)) /* allocate through magazine layer */ in g_slice_free_chain_with_offset()
67 #define g_assert(expr) do { if G_LIKELY (expr) ; else \
354 return G_LIKELY (number) ? in g_bit_storage()
344 if G_LIKELY ((gpointer) g_atomic_pointer_get (value_location) != NULL) in g_once_init_enter()
15 if (G_LIKELY (nth_bit < GLIB_SIZEOF_LONG * 8 - 1)) in builtin_bit_nth_lsf1()28 if (G_LIKELY (nth_bit < GLIB_SIZEOF_LONG * 8 - 1)) in builtin_bit_nth_lsf2()
721 if (G_LIKELY (private != NULL)) in get_private()
500 * glib/gmessages.h: Use G_LIKELY without surrounding parentheses 504 * glib/gmacros.h: Always put parentheses in G_LIKELY and G_UNLIKELY.508 * glib/gmessages.h: Only use G_LIKELY in g_assert() and 535 * glib/gmacros.h: Fix the non-gcc-3.x definitions of G_LIKELY 549 * glib/gmacros.h: Change the definition of G_LIKELY, so that642 (g_return_val_if_fail): Use G_LIKELY. (#69022)644 * glib/gmacros.h (G_LIKELY):
2614 * Add G_LIKELY()/G_UNLIKELY() macros for hinting branch probabilities.
789 if (G_LIKELY(!convertToUTF16)) in readCallback()
349 G_LIKELY
2419 if (G_LIKELY (is_zero)) in g_object_unref()
3198 * glib/tmpl/macros_misc.sgml: Document G_LIKELY, G_UNLIKELY.3200 * glib/glib-sections.txt: Add G_LIKELY, G_UNLIKELY.