Function glm::builtin::bitCount
[−]
[src]
pub fn bitCount<I: BaseInt, T: GenInt<I>>(value: T) -> T
Returns the number of bits set to 1 in the binary representation of
value
.
Example
use glm::{ bitCount, ivec2 }; let v = ivec2(0b01010101, 0); assert_eq!(bitCount(v), ivec2(4, 0));