Lines Matching defs:bits

751 inline deInt32 signExtend (deUint32 src, int bits)
753 const deUint32 signBit = 1u << (bits-1);
826 deUint32 bits = 0u;
828 deMemcpy(&bits, firstByte, byteCount);
830 return (bits >> offset) & mask;
845 const deUint32 bits = (x & mask) << offset;
851 const deUint32 newBits = bits | (oldBits & (~(mask << offset)));
859 const deUint32 bits (getChannelUint(pos));
864 return (float)bits / (float)(m_channelSize == 32 ? ~0x0u : ((0x1u << m_channelSize) - 1u));
867 return (float)bits;
870 return de::max(-1.0f, (float)signExtend(bits, m_channelSize) / (float)((0x1u << (m_channelSize - 1u)) - 1u));
873 return (float)signExtend(bits, m_channelSize);
877 return tcu::Float32(bits).asFloat();
893 const deUint32 bits (getChannelUint(pos));
898 return conversionFormat.roundOut(conversionFormat.roundOut((double)bits, false)
902 return conversionFormat.roundOut((double)bits, false);
906 const tcu::Interval result (conversionFormat.roundOut(conversionFormat.roundOut((double)signExtend(bits, m_channelSize), false)
913 return conversionFormat.roundOut((double)signExtend(bits, m_channelSize), false);
917 return conversionFormat.roundOut(tcu::Float32(bits).asFloat(), false);
977 const deUint32 value = tcu::Float32(x).bits();
1288 const deUint32 bits,
1291 const deUint32 values (0x1u << bits);
1296 return conversionFormat.roundOut(sample - conversionFormat.roundOut(tcu::Interval((double)(0x1u << (bits - 1u)) / (double)((0x1u << bits) - 1u)), false), false);
1301 const tcu::Interval dividend (conversionFormat.roundOut(a - tcu::Interval((double)(128u * (0x1u << (bits - 8u)))), false));
1302 const tcu::Interval divisor ((double)(224u * (0x1u << (bits - 8u))));
1316 const deUint32 bits,
1319 const deUint32 values (0x1u << bits);
1329 const tcu::Interval dividend (conversionFormat.roundOut(a - tcu::Interval((double)(16u * (0x1u << (bits - 8u)))), false));
1330 const tcu::Interval divisor ((double)(219u * (0x1u << (bits - 8u))));