Home
last modified time | relevance | path

Searched refs:signBit (Results 1 – 16 of 16) sorted by relevance

/third_party/vk-gl-cts/framework/common/
DtcuFloat.hpp117 …inline int signBit (void) const { return (int)(m_value >> (ExponentBits+MantissaBits)) & 1; … in signBit() function in tcu::Float
121 inline int sign (void) const { return signBit() ? -1 : 1; } in sign()
258 const StorageType signBit = static_cast<StorageType>(sign < 0 ? 1 : 0); in constructBits() local
265 …return Float(StorageType((signBit << (ExponentBits+MantissaBits)) | (exponentBits << MantissaBits)… in constructBits()
298 …const StorageType s = StorageType((StorageType(other.signBit())) << (StorageType(ExponentBits+Man… in convert()
DtcuTexture.cpp494 const deUint32 signBit = 1u << (bits-1); in signExtend() local
496 src |= ~((src & signBit) - 1); in signExtend()
/third_party/skia/third_party/externals/swiftshader/third_party/llvm-10.0/llvm/lib/Target/ARM/MCTargetDesc/
DARMAsmBackend.cpp612 uint32_t signBit = (offset & 0x800000) >> 23; in adjustFixupValue() local
614 uint32_t J1Bit = (I1Bit ^ 0x1) ^ signBit; in adjustFixupValue()
616 uint32_t J2Bit = (I2Bit ^ 0x1) ^ signBit; in adjustFixupValue()
620 uint32_t FirstHalf = (((uint16_t)signBit << 10) | (uint16_t)imm10Bits); in adjustFixupValue()
648 uint32_t signBit = (offset & 0x400000) >> 22; in adjustFixupValue() local
650 uint32_t J1Bit = (I1Bit ^ 0x1) ^ signBit; in adjustFixupValue()
652 uint32_t J2Bit = (I2Bit ^ 0x1) ^ signBit; in adjustFixupValue()
656 uint32_t FirstHalf = (((uint16_t)signBit << 10) | (uint16_t)imm10HBits); in adjustFixupValue()
/third_party/vk-gl-cts/external/vulkancts/modules/vulkan/spirv_assembly/
DvktSpvAsmGraphicsShaderTestUtil.cpp2581 if (returnedFloat.isInf() && originalFloat.signBit() == returnedFloat.signBit()) in compare16BitFloat()
2641 if (returnedFloat.isInf() && originalFloat.signBit() == returnedFloat.signBit()) in compare16BitFloat()
2688 if (returnedFloat.isInf() && originalFloat.signBit() == returnedFloat.signBit()) in compare16BitFloat()
2737 if (returnedFloat.isInf() && originalFloat.signBit() == returnedFloat.signBit()) in compare16BitFloat()
2796 if (returnedFloat.isInf() && originalFloat.signBit() == returnedFloat.signBit()) in compare16BitFloat64()
DvktSpvAsmTrinaryMinMaxTests.cpp542 const std::string signBit = (m_params.baseType == BaseType::TYPE_INT ? "1" : "0"); in getSpirVReplacements() local
550 replacements["TYPES"] += "%" + baseTypeName + " = OpTypeInt " + bitSize + " " + signBit + "\n"; in getSpirVReplacements()
DvktSpvAsmTypeTests.cpp553 const string signBit = (isSigned) ? "1" : "0"; in getOtherSizeTypes() local
560 str += "%" + signPrefix + "8 = OpTypeInt 8 " + signBit + "\n"; in getOtherSizeTypes()
570 str += "%" + signPrefix + "16 = OpTypeInt 16 " + signBit + "\n"; in getOtherSizeTypes()
580 str += "%" + signPrefix + "64 = OpTypeInt 64 " + signBit + "\n"; in getOtherSizeTypes()
3182 const T signBit = static_cast<T>(x & (1 << (y + z - 1))); in test_bitFieldSExtract() local
3183 const T signMask = static_cast<T>(signBit ? ~extractMask : allZeros); in test_bitFieldSExtract()
DvktSpvAsmFloatControlsTests.cpp2476 if (returnedFloat.isZero() && !returnedFloat.signBit()) in isZeroOrOtherValue()
2571 if (returnedFloat.isInf() && returnedFloat.signBit()) in isLogResultCorrect()
2589 if (returnedFloat.isInf() && !returnedFloat.signBit()) in isInverseSqrtResultCorrect()
2607 if (returnedFloat.isZero() && !returnedFloat.signBit()) in isSqrtResultCorrect()
DvktSpvAsmInstructionTests.cpp16200 out[componentNdx] = (dp.signBit() == 1) ? n.bits() : fp16type(-n.asDouble()).bits(); in calc()
/third_party/vk-gl-cts/external/vulkancts/modules/vulkan/texture/
DvktSampleVerifierUtil.cpp611 const deUint64 signBit = 1ull << (bits-1); in signExtend() local
613 src |= ~((src & signBit) - 1); in signExtend()
/third_party/vk-gl-cts/external/vulkancts/modules/vulkan/shaderexecutor/
DvktShaderFConvertTests.cpp75 int signBit = rnd.getInt(0, 1); in getRandomNormal() local
80 return T::construct(kSignValues[signBit], exponent, (kLeadingMantissaBit | mantissa)); in getRandomNormal()
/third_party/skia/third_party/externals/swiftshader/src/Device/
DBC_Decoder.cpp487 bool signBit = value < 0; in unquantizeSigned() local
488 if(signBit) in unquantizeSigned()
504 if(signBit) in unquantizeSigned()
/third_party/vk-gl-cts/external/vulkancts/modules/vulkan/pipeline/
DvktPipelineSamplerBorderSwizzleTests.cpp1201 const deUint64 signBit = (1ull << (componentSize*8-1)); in getRandomClearColor() local
1209 if (finalValue & signBit) in getRandomClearColor()
/third_party/mesa3d/src/gallium/drivers/swr/rasterizer/core/
Dtessellator.cpp52 static const int signBit = 0x80000000; in tess_flush() local
57 b = signBit & (*(int*)&a); in tess_flush()
/third_party/mesa3d/src/gallium/auxiliary/tessellator/
Dtessellator.cpp58 static const int signBit = 0x80000000; in tess_flush() local
65 b = signBit & (fiu.i); in tess_flush()
/third_party/vk-gl-cts/external/vulkancts/modules/vulkan/ycbcr/
DvktYCbCrUtil.cpp722 const deUint32 signBit = 1u << (bits-1); in signExtend() local
724 src |= ~((src & signBit) - 1); in signExtend()
/third_party/vk-gl-cts/external/vulkancts/modules/vulkan/api/
DvktApiCopiesAndBlittingTests.cpp519 const int signBit = (channelClass == tcu::TEXTURECHANNELCLASS_SIGNED_INTEGER ? 1 : 0); in generateBuffer() local
524 maxValue[i] = static_cast<float>((deUint64(1) << (bits[i] - signBit)) - 1); in generateBuffer()