Home
last modified time | relevance | path

Searched refs:mostSignificantBits (Results 1 – 2 of 2) sorted by relevance

/external/angle/src/common/
Dmathutil.h794 int16_t mostSignificantBits = static_cast<int16_t>(roundf(clamp(f2, -1.0f, 1.0f) * 32767.0f)); in packSnorm2x16() local
795 return static_cast<uint32_t>(mostSignificantBits) << 16 | in packSnorm2x16()
808 int16_t mostSignificantBits = static_cast<int16_t>(u >> 16); in unpackSnorm2x16() local
810 *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() local
823 return static_cast<uint32_t>(mostSignificantBits) << 16 | in packUnorm2x16()
835 uint16_t mostSignificantBits = static_cast<uint16_t>(u >> 16); in unpackUnorm2x16() local
837 *f2 = static_cast<float>(mostSignificantBits) / 65535.0f; in unpackUnorm2x16()
928 uint16_t mostSignificantBits = static_cast<uint16_t>(float32ToFloat16(f2)); in packHalf2x16() local
929 return static_cast<uint32_t>(mostSignificantBits) << 16 | in packHalf2x16()
[all …]
/external/exoplayer/tree/library/common/src/main/java/com/google/android/exoplayer2/util/
DUtil.java1290 public static long toLong(int mostSignificantBits, int leastSignificantBits) { in toLong() argument
1291 return (toUnsignedLong(mostSignificantBits) << 32) | toUnsignedLong(leastSignificantBits); in toLong()