DoxigAlpha

ilogb

Returns the binary exponent of x as an integer.

Special Cases:

  • ilogb(+-inf) = maxInt(i32)
  • ilogb(+-0) = minInt(i32)
  • ilogb(nan) = minInt(i32)

Function parameters

Parameters

#
x:anytype

Returns the binary exponent of x as an integer.

Functions

#
ilogb
Returns the binary exponent of x as an integer.

= minInt(i32)

Values

#
fp_ilogbnan
= minInt(i32)
fp_ilogb0
= minInt(i32)

Source

Implementation

#
pub fn ilogb(x: anytype) i32 {
    const T = @TypeOf(x);
    return ilogbX(T, x);
}