Home
last modified time | relevance | path

Searched refs:from_bits (Results 1 – 4 of 4) sorted by relevance

/third_party/pixman/pixman/
Dpixman-private.h999 unorm_to_unorm (uint32_t val, int from_bits, int to_bits) in unorm_to_unorm() argument
1003 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()
/third_party/flatbuffers/rust/flatbuffers/src/
Dendian_scalar.rs140 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()
/third_party/flatbuffers/rust/flexbuffers/src/reader/
Dmod.rs635 <f32>::from_bits(bits)
640 <f64>::from_bits(bits)
/third_party/flatbuffers/tests/rust_usage_test/tests/
Dintegration_test.rs1077 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()