utility¶
- group turbo_base
Functions
- TURBO_FORCE_INLINE void assume (bool cond)
This function is used to make assumptions about the condition.
It uses different compiler intrinsics based on the compiler being used.
The
assume_unreachablefunction is used to indicate to the compiler that a certain code path is unreachable. This function uses different compiler intrinsics based on the compiler being used. It is used when the condition is always false. This can be useful for optimization purposes, as it allows the compiler to make assumptions about the code that can potentially lead to more efficient code generation.- Parameters:
cond – The condition that is assumed to be true.
- TURBO_FORCE_INLINE void assume_unreachable ()
This function is used to make assumptions about the condition.
It uses different compiler intrinsics based on the compiler being used.
See also
assume(bool cond), this function is used when the condition is always false.