Lines Matching defs:value
220 * Traits<float>::doMakeIVal(value)
228 typename Traits<T>::IVal makeIVal (const T& value)
230 return Traits<T>::doMakeIVal(value);
241 //! Returns true iff every element of `ival` contains the corresponding element of `value`.
243 bool contains (const typename Traits<T>::IVal& ival, const T& value)
245 return Traits<T>::doContains(ival, value);
248 //! Returns true iff every element of `ival` contains corresponding element of `value` within the warning interval
250 bool containsWarning(const typename Traits<T>::IVal& ival, const T& value)
252 return Traits<T>::doContainsWarning(ival, value);
270 //! Print out a value with the precision of `fmt`.
272 void printValue (const FloatFormat& fmt, const T& value, ostream& os)
274 Traits<T>::doPrintValue(fmt, value, os);
285 //! Approximate `value` elementwise to the float precision defined in `fmt`.
289 typename Traits<T>::IVal round (const FloatFormat& fmt, const T& value)
291 return Traits<T>::doRound(fmt, value);
296 const typename Traits<T>::IVal& value)
298 return Traits<T>::doConvert(fmt, value);
307 static Interval doMakeIVal (const T& value)
311 return Interval(double(value));
319 static bool doContains (const Interval& a, T value)
321 return a.contains(double(value));
324 static bool doContainsWarning(const Interval& a, T value)
326 return a.containsWarning(double(value));
334 static Interval doRound (const FloatFormat& fmt, T value)
336 return fmt.roundOut(double(value), false);
351 const float& value,
354 os << fmt.floatToHex(value);
362 const float& value,
365 os << (value != 0.0f ? "true" : "false");
387 const int& value,
390 os << value;
409 static IVal doMakeIVal (const T& value)
414 ret[ndx] = makeIVal(value[ndx]);
429 static bool doContains (const IVal& ival, const T& value)
432 if (!contains(ival[ndx], value[ndx]))
438 static bool doContainsWarning(const IVal& ival, const T& value)
441 if (!containsWarning(ival[ndx], value[ndx]))
462 static void doPrintValue (const FloatFormat& fmt, const T& value, ostream& os)
471 printValue<Element>(fmt, value[ndx], os);
477 static IVal doConvert (const FloatFormat& fmt, const IVal& value)
482 ret[ndx] = convert<Element>(fmt, value[ndx]);
487 static IVal doRound (const FloatFormat& fmt, T value)
492 ret[ndx] = round(fmt, value[ndx]);
511 //! unit type with a single possible value.
517 static Void doMakeIVal (const Void& value) { return value; }
521 static Void doRound (const FloatFormat&, const Void& value) { return value; }
522 static Void doConvert (const FloatFormat&, const Void& value) { return value; }
594 const typename Traits<T>::IVal& value)
596 deUint8* const data = new deUint8[sizeof(value)];
598 deMemcpy(data, &value, sizeof(value));
741 VariableStatement (const VariableP<T>& variable, const ExprP<T>& value,
744 , m_value (value)
778 const ExprP<T>& value,
781 return StatementP(new VariableStatement<T>(variable, value, isDeclaration));
791 StatementP variableAssignment (const VariableP<T>& variable, const ExprP<T>& value)
793 return variableStatement(variable, value, false);
1077 Constant (const T& value) : m_value(value) {}
1088 ExprP<T> constant (const T& value)
1090 return exprP(new Constant<T>(value));
1859 // Allow either representable number on both sides of the exact value,
2083 // For now, we assume that division's precision is 2.5 ULP when the value is within
2312 // The slope can change from positive to negative only at the maximum value.
2317 // The slope can change from negative to positive only at the maximum value.