Operations and constants for int

Freeze bits

uint

Implementation of BitCount for int

Method population_count

fn population_count(&self) -> int

Counts the number of bits set. Wraps LLVM's ctpop intrinsic.

Method leading_zeros

fn leading_zeros(&self) -> int

Counts the number of leading zeros. Wraps LLVM's ctlz intrinsic.

Method trailing_zeros

fn trailing_zeros(&self) -> int

Counts the number of trailing zeros. Wraps LLVM's cttz intrinsic.

Function pow

fn pow(base: int, exponent: uint) -> int

Returns base raised to the power of exponent