CARB_LIKELY

Defined in carb/Defines.h

CARB_LIKELY(expr)

If the current compiler is GCC, defined as __builtin_expect(!!(<expr>), 1). Otherwise, defined as (!!(<expr>)).

Parameters
  • expr – The expression to evaluate, optimized with a true outcome likely and expected.

Returns

The boolean result of expr.