Skip to main content

ilogb

Function ilogb 

Source
pub const unsafe fn ilogb<T: Dispatch>(x: T) -> i32
🔬This is a nightly-only experimental API. (core_intrinsics)
Expand description

Extracts the unbiased exponent of the input value, ignoring the sign.

When the input is an infinity, the result is i32::MAX. The intrinsic may not be called on a zero or NaN.

The public versions of this intrinsic are available on the float primitives via the ilogb method. For example, f32::ilogb.

§Safety

Behavior is undefined when the input is zero or NaN.