Home | History | Annotate | Download | only in functional

Lines Matching full:maxvalue

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);