Searched refs:halfBits (Results 1 – 8 of 8) sorted by relevance
/external/skia/tests/ |
D | SafeMathTest.cpp | 34 size_t halfBits = bits / 2; in DEF_TEST() local 35 size_t sqrtMax = max >> halfBits; in DEF_TEST() 40 REPORTER_ASSERT(r, safe.mul(sqrtMax, sqrtMaxPlus1) == sqrtMax << halfBits); in DEF_TEST()
|
/external/skqp/tests/ |
D | SafeMathTest.cpp | 34 size_t halfBits = bits / 2; in DEF_TEST() local 35 size_t sqrtMax = max >> halfBits; in DEF_TEST() 40 REPORTER_ASSERT(r, safe.mul(sqrtMax, sqrtMaxPlus1) == sqrtMax << halfBits); in DEF_TEST()
|
/external/swiftshader/src/Pipeline/ |
D | ShaderCore.cpp | 561 SIMD::UInt halfToFloatBits(SIMD::UInt halfBits) in halfToFloatBits() argument 565 auto sign16 = halfBits & SIMD::UInt(0x8000); in halfToFloatBits() 566 auto man16 = halfBits & SIMD::UInt(0x03FF); in halfToFloatBits() 567 auto exp16 = halfBits & SIMD::UInt(0x7C00); in halfToFloatBits() 614 UInt4 halfBits; in r11g11b10Unpack() local 615 halfBits = Insert(halfBits, (r11g11b10bits & UInt(0x000007FFu)) << 4, 0); in r11g11b10Unpack() 616 halfBits = Insert(halfBits, (r11g11b10bits & UInt(0x003FF800u)) >> 7, 1); in r11g11b10Unpack() 617 halfBits = Insert(halfBits, (r11g11b10bits & UInt(0xFFC00000u)) >> 17, 2); in r11g11b10Unpack() 618 halfBits = Insert(halfBits, UInt(0x00003C00u), 3); in r11g11b10Unpack() 619 return As<Float4>(halfToFloatBits(halfBits)); in r11g11b10Unpack() [all …]
|
D | ShaderCore.hpp | 223 sw::SIMD::UInt halfToFloatBits(sw::SIMD::UInt halfBits);
|
D | SamplerCore.cpp | 2290 const int halfBits = 0x3EFFFFFF; // Value just under 0.5f in address() local 2356 Float4 half = As<Float4>(Int4(halfBits)); in address() 2364 Float4 half = As<Float4>(Int4(halfBits)); in address()
|
/external/swiftshader/src/Shader/ |
D | ShaderCore.hpp | 382 void halfToFloatBits(Float4& dst, const Float4& halfBits);
|
D | ShaderCore.cpp | 1254 void ShaderCore::halfToFloatBits(Float4& dst, const Float4& halfBits) in halfToFloatBits() argument 1261 UInt4 expmant = As<UInt4>(halfBits) & UInt4(mask_nosign); in halfToFloatBits() 1263 ((As<UInt4>(halfBits) ^ UInt4(expmant)) << 16) | in halfToFloatBits()
|
D | SamplerCore.cpp | 2358 const int halfBits = 0x3EFFFFFF; // Value just under 0.5f in address() local 2392 Float4 half = As<Float4>(Int4(halfBits)); in address() 2400 Float4 half = As<Float4>(Int4(halfBits)); in address()
|