Home
last modified time | relevance | path

Searched refs:halfBits (Results 1 – 10 of 10) sorted by relevance

/third_party/flutter/skia/tests/
DSafeMathTest.cpp34 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()
/third_party/skia/tests/
DSafeMathTest.cpp34 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()
/third_party/skia/third_party/externals/swiftshader/src/Pipeline/
DShaderCore.cpp561 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 …]
DShaderCore.hpp223 sw::SIMD::UInt halfToFloatBits(sw::SIMD::UInt halfBits);
DSamplerCore.cpp2277 const int halfBits = 0x3EFFFFFF; // Value just under 0.5f in address() local
2343 Float4 half = As<Float4>(Int4(halfBits)); in address()
2351 Float4 half = As<Float4>(Int4(halfBits)); in address()
/third_party/skia/src/gpu/
DGrUniformDataManager.cpp46 SkHalf* halfBits = static_cast<SkHalf*>(dest); in copyUniforms() local
48 *halfBits++ = SkFloatToHalf(*floatBits++); in copyUniforms()
/third_party/skia/experimental/graphite/src/
DUniformManager.cpp163 SkHalf* halfBits = static_cast<SkHalf*>(dst); in CopyUniforms() local
165 *halfBits++ = SkFloatToHalf(*floatBits++); in CopyUniforms()
/third_party/skia/third_party/externals/swiftshader/src/Shader/
DShaderCore.hpp376 void halfToFloatBits(Float4& dst, const Float4& halfBits);
DShaderCore.cpp1254 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()
DSamplerCore.cpp2358 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()