Home
last modified time | relevance | path

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

/third_party/flutter/skia/third_party/externals/dawn/src/common/
DMath.cpp87 uint32_t mantissaAndExponent = fp32i & 0x7FFFFFFF; in Float32ToFloat16() local
89 if (mantissaAndExponent > 0x7F800000) { // NaN in Float32ToFloat16()
91 } else if (mantissaAndExponent > 0x47FFEFFF) { // Infinity in Float32ToFloat16()
93 } else if (mantissaAndExponent < 0x38800000) { // Denormal in Float32ToFloat16()
94 uint32_t mantissa = (mantissaAndExponent & 0x007FFFFF) | 0x00800000; in Float32ToFloat16()
95 int32_t exponent = 113 - (mantissaAndExponent >> 23); in Float32ToFloat16()
98 mantissaAndExponent = mantissa >> exponent; in Float32ToFloat16()
100 mantissaAndExponent = 0; in Float32ToFloat16()
104 sign16 | (mantissaAndExponent + 0x00000FFF + ((mantissaAndExponent >> 13) & 1)) >> 13); in Float32ToFloat16()
106 return static_cast<uint16_t>(sign16 | (mantissaAndExponent + 0xC8000000 + 0x00000FFF + in Float32ToFloat16()
[all …]
/third_party/skia/third_party/externals/dawn/src/common/
DMath.cpp104 uint32_t mantissaAndExponent = fp32i & 0x7FFFFFFF; in Float32ToFloat16() local
106 if (mantissaAndExponent > 0x7F800000) { // NaN in Float32ToFloat16()
108 } else if (mantissaAndExponent > 0x47FFEFFF) { // Infinity in Float32ToFloat16()
110 } else if (mantissaAndExponent < 0x38800000) { // Denormal in Float32ToFloat16()
111 uint32_t mantissa = (mantissaAndExponent & 0x007FFFFF) | 0x00800000; in Float32ToFloat16()
112 int32_t exponent = 113 - (mantissaAndExponent >> 23); in Float32ToFloat16()
115 mantissaAndExponent = mantissa >> exponent; in Float32ToFloat16()
117 mantissaAndExponent = 0; in Float32ToFloat16()
121 sign16 | (mantissaAndExponent + 0x00000FFF + ((mantissaAndExponent >> 13) & 1)) >> 13); in Float32ToFloat16()
123 return static_cast<uint16_t>(sign16 | (mantissaAndExponent + 0xC8000000 + 0x00000FFF + in Float32ToFloat16()
[all …]