Module kernel::common::math[][src]

Helper functions for common mathematical operations.

Re-exports

use core::convert::From;
use core::convert::Into;
use core::intrinsics as int;

Structs

PowerOfTwo

Functions

__errno
closest_power_of_two

Get closest power of two greater than the given number.

get_errno

Return errno value and zero it out.

log_base_two

Get log base 2 of a number. Note: this is the floor of the result. Also, an input of 0 results in an output of 0

log_base_two_u64

Log base 2 of 64 bit unsigned integers.

sqrtf32

Provide sqrtf32 with the unsafe hidden.