Searched refs:from_bits (Results 1 – 4 of 4) sorted by relevance
999 unorm_to_unorm (uint32_t val, int from_bits, int to_bits) in unorm_to_unorm() argument1003 if (from_bits == 0) in unorm_to_unorm()1007 val &= ((1 << from_bits) - 1); in unorm_to_unorm()1009 if (from_bits >= to_bits) in unorm_to_unorm()1010 return val >> (from_bits - to_bits); in unorm_to_unorm()1013 result = val << (to_bits - from_bits); in unorm_to_unorm()1023 if (from_bits < to_bits) \ in unorm_to_unorm()1025 result |= result >> from_bits; \ in unorm_to_unorm()1027 from_bits *= 2; \ in unorm_to_unorm()
140 f32::from_bits(x.to_bits().swap_bytes()) in byte_swap_f32()147 f64::from_bits(x.to_bits().swap_bytes()) in byte_swap_f64()
635 <f32>::from_bits(bits)640 <f64>::from_bits(bits)
1077 x == f32::from_bits(x.to_bits().swap_bytes()) in palindrome_32()1080 x == f64::from_bits(x.to_bits().swap_bytes()) in palindrome_64()