Lines Matching refs:bits
33 uint32_t bits = 0;
34 memcpy(&bits, &value, 4);
35 return bits;
40 uint64_t bits = 0;
41 memcpy(&bits, &value, 8);
42 return bits;
46 float rawbits_to_float(uint32_t bits) {
48 memcpy(&value, &bits, 4);
53 double rawbits_to_double(uint64_t bits) {
55 memcpy(&value, &bits, 8);
97 // Mask out unused bits to ensure that they are not counted.
100 // Add up the set bits.
104 // Bits: h g f e d c b a