Home | History | Annotate | Download | only in utils

Lines Matching defs:value

37                 double value = 1e+15;
38 while (e-- > 15) { value *= 10.0; }
39 return value;
42 double value = 1.0;
43 while (e++ < 0) { value /= 10.0; }
44 return value;
52 sscanf(result, "%f", &x) will return the original value iff the
53 value is finite. This function accepts all possible input values.
58 unsigned SkFloatToDecimal(float value, char result[kMaximumSkFloatToDecimalLength]) {
82 /* This function is written to accept any possible input value,
84 we ignore value-correctness and and output a syntacticly-valid
86 if (value == INFINITY) {
87 value = FLT_MAX; // nearest finite float.
89 if (value == -INFINITY) {
90 value = -FLT_MAX; // nearest finite float.
92 if (!std::isfinite(value) || value == 0.0f) {
99 if (value < 0.0) {
101 value = -value;
103 SkASSERT(value >= 0.0f);
106 (void)std::frexp(value, &binaryExponent);
111 SkASSERT(value * power <= (double)INT_MAX);
112 int d = static_cast<int>(value * power + 0.5);
113 // SkASSERT(value == (float)(d * pow(10.0, decimalShift)));
120 d = static_cast<int>(value * (power * 0.1) + 0.5);
128 // SkASSERT(value == (float)(d * pow(10.0, decimalShift)));
129 unsigned char buffer[9]; // decimal value buffer.