Home | History | Annotate | Download | only in glshared

Lines Matching defs:fmt

236 //! Print out an interval with the precision of `fmt`.
238 void printIVal (const FloatFormat& fmt, const typename Traits<T>::IVal& ival, ostream& os)
240 Traits<T>::doPrintIVal(fmt, ival, os);
244 string intervalToString (const FloatFormat& fmt, const typename Traits<T>::IVal& ival)
247 printIVal<T>(fmt, ival, oss);
251 //! Print out a value with the precision of `fmt`.
253 void printValue (const FloatFormat& fmt, const T& value, ostream& os)
255 Traits<T>::doPrintValue(fmt, value, os);
259 string valueToString (const FloatFormat& fmt, const T& val)
262 printValue(fmt, val, oss);
266 //! Approximate `value` elementwise to the float precision defined in `fmt`.
270 typename Traits<T>::IVal round (const FloatFormat& fmt, const T& value)
272 return Traits<T>::doRound(fmt, value);
276 typename Traits<T>::IVal convert (const FloatFormat& fmt,
279 return Traits<T>::doConvert(fmt, value);
305 static Interval doConvert (const FloatFormat& fmt, const IVal& ival)
307 return fmt.convert(ival);
310 static Interval doRound (const FloatFormat& fmt, T value)
312 return fmt.roundOut(double(value), false);
319 static void doPrintIVal (const FloatFormat& fmt,
323 os << fmt.intervalToHex(ival);
326 static void doPrintValue (const FloatFormat& fmt,
330 os << fmt.floatToHex(value);
414 static void doPrintIVal (const FloatFormat& fmt, const IVal ival, ostream& os)
423 printIVal<Element>(fmt, ival[ndx], os);
429 static void doPrintValue (const FloatFormat& fmt, const T& value, ostream& os)
438 printValue<Element>(fmt, value[ndx], os);
444 static IVal doConvert (const FloatFormat& fmt, const IVal& value)
449 ret[ndx] = convert<Element>(fmt, value[ndx]);
454 static IVal doRound (const FloatFormat& fmt, T value)
459 ret[ndx] = round(fmt, value[ndx]);
1999 const FloatFormat& fmt = ctx.format;
2008 deLdExp(1.0, fmt.getMinExp()),
2009 deLdExp(1.0, fmt.getMaxExp() - 1)))
2010 return fmt.ulp(ret, 2.5);
4118 Value genRandom (const FloatFormat& fmt, Precision prec, Random& rnd) const
4123 ret[ndx] = instance<DefaultSampling<T> >().genRandom(fmt, prec, rnd);
4128 void genFixeds (const FloatFormat& fmt, vector<Value>& dst) const
4132 instance<DefaultSampling<T> >().genFixeds(fmt, scalars);
4150 Value genRandom (const FloatFormat& fmt, Precision prec, Random& rnd) const
4156 ret(rowNdx, colNdx) = instance<DefaultSampling<T> >().genRandom(fmt, prec, rnd);
4161 void genFixeds (const FloatFormat& fmt, vector<Value>& dst) const
4165 instance<DefaultSampling<T> >().genFixeds(fmt, scalars);
4373 const FloatFormat& fmt = getFormat();
4490 env.lookup(*variables.in0) = convert<In0>(fmt, round(fmt, inputs.in0[valueNdx]));
4491 env.lookup(*variables.in1) = convert<In1>(fmt, round(fmt, inputs.in1[valueNdx]));
4492 env.lookup(*variables.in2) = convert<In2>(fmt, round(fmt, inputs.in2[valueNdx]));
4493 env.lookup(*variables.in3) = convert<In3>(fmt, round(fmt, inputs.in3[valueNdx]));
4496 EvalContext ctx (fmt, m_ctx.precision, env);
5222 const FloatFormat& fmt = *de::getSizedArrayElement(ctx.formats, precNdx);
5231 const Context caseCtx (name, ctx.testCtx, ctx.renderCtx, fmt, highpFmt,