Function Macro

GLibLIKELY

since: 2.2

Declaration [src]

#define G_LIKELY (
expr
)

Description [src]

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

This function is not directly available to language bindings.

Parameters

expr

Type: -

The expression.

AltStyle によって変換されたページ (->オリジナル) /