Lines Matching refs:floatFormat
95 using tcu::FloatFormat;
249 void printIVal (const FloatFormat& fmt, const typename Traits<T>::IVal& ival, ostream& os)
255 string intervalToString (const FloatFormat& fmt, const typename Traits<T>::IVal& ival)
264 void printValue (const FloatFormat& fmt, const T& value, ostream& os)
270 string valueToString (const FloatFormat& fmt, const T& val)
281 typename Traits<T>::IVal round (const FloatFormat& fmt, const T& value)
287 typename Traits<T>::IVal convert (const FloatFormat& fmt,
316 static Interval doConvert (const FloatFormat& fmt, const IVal& ival)
321 static Interval doRound (const FloatFormat& fmt, T value)
330 static void doPrintIVal (const FloatFormat& fmt,
337 static void doPrintValue (const FloatFormat& fmt,
348 static void doPrintValue (const FloatFormat&,
355 static void doPrintIVal (const FloatFormat&,
373 static void doPrintValue (const FloatFormat&,
380 static void doPrintIVal (const FloatFormat&,
425 static void doPrintIVal (const FloatFormat& fmt, const IVal ival, ostream& os)
440 static void doPrintValue (const FloatFormat& fmt, const T& value, ostream& os)
455 static IVal doConvert (const FloatFormat& fmt, const IVal& value)
465 static IVal doRound (const FloatFormat& fmt, T value)
498 static Void doRound (const FloatFormat&, const Void& value) { return value; }
499 static Void doConvert (const FloatFormat&, const Void& value) { return value; }
501 static void doPrintValue (const FloatFormat&, const Void&, ostream& os)
506 static void doPrintIVal (const FloatFormat&, const Void&, ostream& os)
601 EvalContext (const FloatFormat& format_,
610 FloatFormat format;
854 static const FloatFormat highpFmt (-126, 127, 23, true,
2049 const FloatFormat& fmt = ctx.format;
4042 virtual void genFixeds (const FloatFormat&, vector<T>&) const {}
4043 virtual T genRandom (const FloatFormat&, Precision, Random&) const { return T(); }
4051 void genFixeds (const FloatFormat&, vector<Void>& dst) const { dst.push_back(Void()); }
4058 void genFixeds (const FloatFormat&, vector<bool>& dst) const
4069 int genRandom (const FloatFormat&, Precision prec, Random& rnd) const
4077 void genFixeds (const FloatFormat&, vector<int>& dst) const
4104 float genRandom (const FloatFormat& format, Precision prec, Random& rnd) const;
4105 void genFixeds (const FloatFormat& format, vector<float>& dst) const;
4110 float DefaultSampling<float>::genRandom (const FloatFormat& format,
4177 void DefaultSampling<float>::genFixeds (const FloatFormat& format, vector<float>& dst) const
4223 Value genRandom (const FloatFormat& fmt, Precision prec, Random& rnd) const
4233 void genFixeds (const FloatFormat& fmt, vector<Value>& dst) const
4255 Value genRandom (const FloatFormat& fmt, Precision prec, Random& rnd) const
4266 void genFixeds (const FloatFormat& fmt, vector<Value>& dst) const
4300 const FloatFormat& floatFormat_,
4301 const FloatFormat& highpFormat_,
4308 , floatFormat (floatFormat_)
4317 FloatFormat floatFormat;
4318 FloatFormat highpFormat;
4434 const FloatFormat& getFormat (void) const { return m_ctx.floatFormat; }
4478 const FloatFormat& fmt = getFormat();
4484 const FloatFormat highpFmt = m_ctx.highpFormat;
4796 const FloatFormat& floatFormat,
4805 samplings.in0.genFixeds(floatFormat, fixedInputs.in0);
4806 samplings.in1.genFixeds(floatFormat, fixedInputs.in1);
4807 samplings.in2.genFixeds(floatFormat, fixedInputs.in2);
4808 samplings.in3.genFixeds(floatFormat, fixedInputs.in3);
4835 const typename In::In0 in0 = samplings.in0.genRandom(floatFormat, intPrecision, rnd);
4836 const typename In::In1 in1 = samplings.in1.genRandom(floatFormat, intPrecision, rnd);
4837 const typename In::In2 in2 = samplings.in2.genRandom(floatFormat, intPrecision, rnd);
4838 const typename In::In3 in3 = samplings.in3.genRandom(floatFormat, intPrecision, rnd);
4914 m_ctx.floatFormat,
4972 m_ctx.floatFormat,
5297 const FloatFormat& highp_,
5298 const FloatFormat& mediump_,
5299 const FloatFormat& lowp_,
5314 const FloatFormat* formats[glu::PRECISION_LAST];
5330 const FloatFormat& fmt = *de::getSizedArrayElement<glu::PRECISION_LAST>(ctx.formats, precNdx);
5331 const FloatFormat& highpFmt = *de::getSizedArrayElement<glu::PRECISION_LAST>(ctx.formats,
5358 const FloatFormat highp (-126, 127, 23, true,
5363 const FloatFormat mediump (-13, 13, 9, false);
5366 const FloatFormat lowp (0, 0, 7, false, tcu::YES);