Searched refs:mostSignificantBits (Results 1 – 2 of 2) sorted by relevance
794 int16_t mostSignificantBits = static_cast<int16_t>(roundf(clamp(f2, -1.0f, 1.0f) * 32767.0f)); in packSnorm2x16() local795 return static_cast<uint32_t>(mostSignificantBits) << 16 | in packSnorm2x16()808 int16_t mostSignificantBits = static_cast<int16_t>(u >> 16); in unpackSnorm2x16() local810 *f2 = clamp(static_cast<float>(mostSignificantBits) / 32767.0f, -1.0f, 1.0f); in unpackSnorm2x16()822 uint16_t mostSignificantBits = static_cast<uint16_t>(roundf(clamp(f2, 0.0f, 1.0f) * 65535.0f)); in packUnorm2x16() local823 return static_cast<uint32_t>(mostSignificantBits) << 16 | in packUnorm2x16()835 uint16_t mostSignificantBits = static_cast<uint16_t>(u >> 16); in unpackUnorm2x16() local837 *f2 = static_cast<float>(mostSignificantBits) / 65535.0f; in unpackUnorm2x16()928 uint16_t mostSignificantBits = static_cast<uint16_t>(float32ToFloat16(f2)); in packHalf2x16() local929 return static_cast<uint32_t>(mostSignificantBits) << 16 | in packHalf2x16()[all …]
1290 public static long toLong(int mostSignificantBits, int leastSignificantBits) { in toLong() argument1291 return (toUnsignedLong(mostSignificantBits) << 32) | toUnsignedLong(leastSignificantBits); in toLong()