Home
last modified time | relevance | path

Searched refs:exponentBits (Results 1 - 8 of 8) sorted by relevance

/third_party/vk-gl-cts/framework/common/
H A DtcuFloat.hpp118 inline StorageType exponentBits (void) const { return (m_value >> MantissaBits) & ((StorageType(1)<<ExponentBits)-1); } in exponentBits() function in tcu::Float
122 inline int exponent (void) const { return isDenorm() ? 1 - ExponentBias : (int)exponentBits() - ExponentBias; } in exponent()
125 inline bool isInf (void) const { return exponentBits() == ((1<<ExponentBits)-1) && mantissaBits() == 0; } in isInf()
126 inline bool isNaN (void) const { return exponentBits() == ((1<<ExponentBits)-1) && mantissaBits() != 0; } in isNaN()
127 inline bool isZero (void) const { return exponentBits() == 0 && mantissaBits() == 0; } in isZero()
128 inline bool isDenorm (void) const { return exponentBits() == 0 && mantissaBits() != 0; } in isDenorm()
259 const StorageType exponentBits = static_cast<StorageType>(exponent + ExponentBias); in constructBits() local
262 DE_ASSERT(exponentBits >> ExponentBits == 0); in constructBits()
265 return Float(StorageType((signBit << (ExponentBits+MantissaBits)) | (exponentBits << MantissaBits) | (mantissaBits))); in constructBits()
/third_party/vk-gl-cts/external/vulkancts/modules/vulkan/shaderexecutor/
H A DvktShaderCommonFunctionTests.cpp152 static deUint32 getExponentMask (int exponentBits) in getExponentMask() argument
154 DE_ASSERT(exponentBits > 0); in getExponentMask()
155 return ((1u<<exponentBits) - 1u); in getExponentMask()
643 const int exponentBits = getExponentBits(type); in infNanRandomFloats() local
644 const deUint32 exponentMask = getExponentMask(exponentBits); in infNanRandomFloats()
661 const deUint64 value = (sign << (numMantissaBits + exponentBits)) | (exp << numMantissaBits) | static_cast<deUint32>(mantissa); in infNanRandomFloats()
/third_party/vk-gl-cts/external/vulkancts/modules_no_buildgn/vulkan/shaderexecutor/
H A DvktShaderCommonFunctionTests.cpp152 static deUint32 getExponentMask (int exponentBits) in getExponentMask() argument
154 DE_ASSERT(exponentBits > 0); in getExponentMask()
155 return ((1u<<exponentBits) - 1u); in getExponentMask()
643 const int exponentBits = getExponentBits(type); in infNanRandomFloats() local
644 const deUint32 exponentMask = getExponentMask(exponentBits); in infNanRandomFloats()
661 const deUint64 value = (sign << (numMantissaBits + exponentBits)) | (exp << numMantissaBits) | static_cast<deUint32>(mantissa); in infNanRandomFloats()
/third_party/vk-gl-cts/external/vulkancts/modules/vulkan/spirv_assembly/
H A DvktSpvAsmWorkgroupMemoryTests.cpp115 const deUint64 exponentBits = 0x7ff0000000000000; in isNanFloat64() local
117 return ((f & exponentBits) == exponentBits && (f & mantissaBits) != 0); in isNanFloat64()
/third_party/vk-gl-cts/external/vulkancts/modules_no_buildgn/vulkan/spirv_assembly/
H A DvktSpvAsmWorkgroupMemoryTests.cpp115 const deUint64 exponentBits = 0x7ff0000000000000; in isNanFloat64() local
117 return ((f & exponentBits) == exponentBits && (f & mantissaBits) != 0); in isNanFloat64()
/third_party/vk-gl-cts/external/vulkancts/modules/vulkan/shaderrender/
H A DvktShaderRenderDerivateTests.cpp195 return tcu::UVec4(tcu::Float32(v[0]).exponentBits(), in getCompExpBits()
196 tcu::Float32(v[1]).exponentBits(), in getCompExpBits()
197 tcu::Float32(v[2]).exponentBits(), in getCompExpBits()
198 tcu::Float32(v[3]).exponentBits()); in getCompExpBits()
/third_party/vk-gl-cts/modules/gles3/functional/
H A Des3fShaderDerivateTests.cpp207 return tcu::UVec4(tcu::Float32(v[0]).exponentBits(), in getCompExpBits()
208 tcu::Float32(v[1]).exponentBits(), in getCompExpBits()
209 tcu::Float32(v[2]).exponentBits(), in getCompExpBits()
210 tcu::Float32(v[3]).exponentBits()); in getCompExpBits()
/third_party/vk-gl-cts/external/vulkancts/modules_no_buildgn/vulkan/shaderrender/
H A DvktShaderRenderDerivateTests.cpp177 return tcu::UVec4(tcu::Float32(v[0]).exponentBits(), in getCompExpBits()
178 tcu::Float32(v[1]).exponentBits(), in getCompExpBits()
179 tcu::Float32(v[2]).exponentBits(), in getCompExpBits()
180 tcu::Float32(v[3]).exponentBits()); in getCompExpBits()

Completed in 17 milliseconds