Lines Matching full:rnd
72 template<typename T> T randomScalar (de::Random& rnd, T minValue, T maxValue);
73 template<> inline float randomScalar (de::Random& rnd, float minValue, float maxValue) { return rnd.getFloat(minValue, maxValue); }
74 template<> inline deInt32 randomScalar (de::Random& rnd, deInt32 minValue, deInt32 maxValue) { return rnd.getInt(minValue, maxValue); }
75 template<> inline deUint32 randomScalar (de::Random& rnd, deUint32 minValue, deUint32 maxValue) { return minValue + rnd.getUint32() % (maxValue - minValue + 1); }
78 inline tcu::Vector<T, Size> randomVector (de::Random& rnd, const tcu::Vector<T, Size>& minValue, const tcu::Vector<T, Size>& maxValue)
82 res[ndx] = randomScalar<T>(rnd, minValue[ndx], maxValue[ndx]);
87 static void fillRandomVectors (de::Random& rnd, const tcu::Vector<T, Size>& minValue, const tcu::Vector<T, Size>& maxValue, void* dst, int numValues, int offset = 0)
91 access[offset + ndx] = randomVector<T, Size>(rnd, minValue, maxValue);
95 static void fillRandomScalars (de::Random& rnd, T minValue, T maxValue, void* dst, int numValues, int offset = 0)
99 typedPtr[offset + ndx] = randomScalar<T>(rnd, minValue, maxValue);
523 de::Random rnd (deStringHash(getName()) ^ 0x235facu);
529 fillRandomScalars(rnd, floatRanges[precision].x(), floatRanges[precision].y(), values[0], numValues*scalarSize);
531 fillRandomScalars(rnd, intRanges[precision].x(), intRanges[precision].y(), values[0], numValues*scalarSize);
605 de::Random rnd (deStringHash(getName()) ^ 0x324u);
616 fillRandomScalars(rnd, floatRanges[precision].x(), floatRanges[precision].y(), (float*)values[0] + scalarSize*3, (numValues-3)*scalarSize);
623 fillRandomScalars(rnd, intRanges[precision].x(), intRanges[precision].y(), (int*)values[0] + scalarSize*3, (numValues-3)*scalarSize);
705 de::Random rnd (deStringHash(getName()) ^ 0xac23fu);
724 fillRandomScalars(rnd, ranges[precision].x(), ranges[precision].y(), (float*)values[0] + numSpecialCases*scalarSize, (numValues-numSpecialCases)*scalarSize);
817 de::Random rnd (deStringHash(getName()) ^ 0xac23fu);
822 fillRandomScalars(rnd, ranges[precision].x(), ranges[precision].y(), values[0], numValues*scalarSize);
880 de::Random rnd (deStringHash(getName()) ^ 0xc2a39fu);
889 const bool isNan = rnd.getFloat() > 0.3f;
890 const bool isInf = !isNan && rnd.getFloat() > 0.4f;
891 const deUint32 mantissa = !isInf ? ((1u<<22) | (rnd.getUint32() & mantissaMask)) : 0;
892 const deUint32 exp = !isNan && !isInf ? (rnd.getUint32() & 0x7fu) : 0xffu;
893 const deUint32 sign = rnd.getUint32() & 0x1u;
963 de::Random rnd (deStringHash(getName()) ^ 0xc2a39fu);
972 const bool isInf = rnd.getFloat() > 0.3f;
973 const bool isNan = !isInf && rnd.getFloat() > 0.4f;
974 const deUint32 mantissa = !isInf ? ((1u<<22) | (rnd.getUint32() & mantissaMask)) : 0;
975 const deUint32 exp = !isNan && !isInf ? (rnd.getUint32() & 0x7fu) : 0xffu;
976 const deUint32 sign = rnd.getUint32() & 0x1u;
1053 de::Random rnd (deStringHash(getName()) ^ 0x2790au);
1058 fillRandomScalars(rnd, ranges[precision].x(), ranges[precision].y(), values[0], numValues*scalarSize);
1124 de::Random rnd (deStringHash(getName()) ^ 0xbbb225u);
1130 fillRandomScalars(rnd, range.x(), range.y(), values[0], numValues*scalarSize);
1177 de::Random rnd (deStringHash(getName()) ^ 0xac23fu);
1182 fillRandomScalars(rnd, ranges[precision].x(), ranges[precision].y(), (float*)values[0], numValues*scalarSize);
1273 de::Random rnd (deStringHash(getName()) ^ 0xac23fu);
1288 fillRandomScalars(rnd, ranges[precision].x(), ranges[precision].y(), (float*)values[0] + scalarSize*numSpecialCases, (numValues-numSpecialCases)*scalarSize);
1381 de::Random rnd (deStringHash(getName()) ^ 0xac23fu);
1400 fillRandomScalars(rnd, ranges[precision].x(), ranges[precision].y(), (float*)values[0] + numSpecialCases*scalarSize, (numValues-numSpecialCases)*scalarSize);
1509 de::Random rnd (deStringHash(getName()) ^ 0xac23fu);
1515 fillRandomScalars(rnd, ranges[precision].x(), ranges[precision].y(), (float*)values[0], numValues*scalarSize);
1614 de::Random rnd (deStringHash(getName()) ^ 0xac23fu);
1633 fillRandomScalars(rnd, ranges[precision].x(), ranges[precision].y(), (float*)values[0] + numSpecialCases*scalarSize, (numValues-numSpecialCases)*scalarSize);
1761 de::Random rnd (deStringHash(getName()) ^ 0x2790au);
1779 fillRandomScalars(rnd, ranges[precision].x(), ranges[precision].y(), (float*)values[0] + 8*scalarSize, (numValues-8)*scalarSize);
1852 de::Random rnd (deStringHash(getName()) ^ 0x2790au);
1888 rnd.getFloat(ranges[precision].x(), ranges[precision].y());
1910 const int fpExp = rnd.getInt(-126, 127);
1911 const int sign = rnd.getBool() ? -1 : +1;
1912 const deUint32 mantissa = (1u<<23) | (rnd.getUint32() & ((1u<<23)-1));
1913 const int in1 = rnd.getInt(de::max(-126, -126-fpExp), de::min(127, 127-fpExp));
1995 de::Random rnd (deStringHash(getName()) ^ 0xac23fu);
2031 fillRandomScalars(rnd, ranges[precision].x(), ranges[precision].y(), (float*)values[inputNdx] + offs, numScalars);