Function Macro

GLibLIKELY

Declaration

#define G_LIKELY (
  expr
)

Description

Hints the compiler that the expression is likely to evaluate to a true value. The compiler may use this information for optimizations.

if (G_LIKELY (random () != 1))
  g_print ("not one");
Available since:2.2

Parameters

expr none
 

The expression.