Searched refs:integerLength (Results 1 – 2 of 2) sorted by relevance
120 static inline deUint32 extendSignTo32 (deUint32 integer, deUint32 integerLength) in extendSignTo32() argument122 DE_ASSERT(integerLength > 0 && integerLength <= 32); in extendSignTo32()124 return deUint32(0 - deInt32((integer & (1 << (integerLength - 1))) << 1)) | integer; in extendSignTo32()127 static inline deUint32 getLowBitMask (int integerLength) in getLowBitMask() argument129 DE_ASSERT(integerLength >= 0 && integerLength <= 32); in getLowBitMask()132 if (integerLength == 0u) in getLowBitMask()134 return ((1u << ((deUint32)integerLength - 1u)) << 1u) - 1u; in getLowBitMask()140 const deUint32 integerLength = (deUint32)getShaderUintBitCount(shaderType, precision); in generateRandomInputData() local141 const deUint32 integerMask = getLowBitMask(integerLength); in generateRandomInputData()154 … dst[valueNdx*scalarSize + compNdx] = extendSignTo32(rnd.getUint32() & integerMask, integerLength); in generateRandomInputData()[all …]
122 static inline deUint32 extendSignTo32 (deUint32 integer, deUint32 integerLength) in extendSignTo32() argument124 DE_ASSERT(integerLength > 0 && integerLength <= 32); in extendSignTo32()126 return deUint32(0 - deInt32((integer & (1 << (integerLength - 1))) << 1)) | integer; in extendSignTo32()129 static inline deUint32 getLowBitMask (int integerLength) in getLowBitMask() argument131 DE_ASSERT(integerLength >= 0 && integerLength <= 32); in getLowBitMask()134 if (integerLength == 0u) in getLowBitMask()136 return ((1u << ((deUint32)integerLength - 1u)) << 1u) - 1u; in getLowBitMask()142 const deUint32 integerLength = (deUint32)getShaderUintBitCount(shaderType, precision); in generateRandomInputData() local143 const deUint32 integerMask = getLowBitMask(integerLength); in generateRandomInputData()156 … dst[valueNdx*scalarSize + compNdx] = extendSignTo32(rnd.getUint32() & integerMask, integerLength); in generateRandomInputData()[all …]