Lines Matching defs:rnd
4220 int genRandom (const FloatFormat&, Precision prec, Random& rnd) const
4222 const int exp = rnd.getInt(0, getNumBits(prec)-2);
4223 const int sign = rnd.getBool() ? -1 : 1;
4225 return sign * rnd.getInt(0, (deInt32)1 << exp);
4255 float genRandom (const FloatFormat& format, Precision prec, Random& rnd) const;
4263 Random& rnd) const
4274 const int exp = int(deRoundEven(dePow(rnd.getDouble(minRoot, maxRoot),
4283 switch (rnd.getInt(0, 64))
4305 switch (rnd.getInt(0, 16))
4318 deUint64 intFraction = rnd.getUint64() & ((1ull << fractionBits) - 1);
4324 return (rnd.getInt(0,3) == 0 ? -1.0f : 1.0f) * (base + significand);
4374 Value genRandom (const FloatFormat& fmt, Precision prec, Random& rnd) const
4379 ret[ndx] = instance<DefaultSampling<T> >().genRandom(fmt, prec, rnd);
4406 Value genRandom (const FloatFormat& fmt, Precision prec, Random& rnd) const
4412 ret(rowNdx, colNdx) = instance<DefaultSampling<T> >().genRandom(fmt, prec, rnd);
4996 Random& rnd)
5032 const typename In::In0 in0 = samplings.in0.genRandom(floatFormat, intPrecision, rnd);
5033 const typename In::In1 in1 = samplings.in1.genRandom(floatFormat, intPrecision, rnd);
5034 const typename In::In2 in2 = samplings.in2.genRandom(floatFormat, intPrecision, rnd);
5035 const typename In::In3 in3 = samplings.in3.genRandom(floatFormat, intPrecision, rnd);