Lines Matching full:result
56 double result = base::NAN_VALUE; in Acos() local
57 // value == -NaN , <-1 or > 1,result is NaN in Acos()
59 result = std::acos(value); in Acos()
61 return GetTaggedDouble(result); in Acos()
74 double result = base::NAN_VALUE; in Acosh() local
76 result = std::acosh(value); in Acosh()
78 return GetTaggedDouble(result); in Acosh()
91 double result = base::NAN_VALUE; in Asin() local
93 result = std::asin(value); in Asin()
95 return GetTaggedDouble(result); in Asin()
108 double result = base::NAN_VALUE; in Asinh() local
109 // value == -NaN, NaN, result is NaN in Asinh()
111 result = base::MathHelper::Asinh(value); in Asinh()
113 return GetTaggedDouble(result); in Asinh()
126 double result = base::NAN_VALUE; in Atan() local
127 // value == -NaN, NaN, result is NaN in Atan()
129 result = std::atan(value); in Atan()
131 return GetTaggedDouble(result); in Atan()
144 double result = base::NAN_VALUE; in Atanh() local
146 result = base::MathHelper::Atanh(value); in Atanh()
148 return GetTaggedDouble(result); in Atanh()
160 double result = base::NAN_VALUE; in Atan2() local
168 result = valueY; in Atan2()
172 result = valueY >= 0 ? 0 : -0.0; in Atan2()
174 // If either x or y is NaN, the result is NaN in Atan2()
175 result = std::atan2(valueY, valueX); in Atan2()
177 return GetTaggedDouble(result); in Atan2()
190 double result = base::NAN_VALUE; in Cbrt() local
191 // if value == -NaN, NaN, result is NaN in Cbrt()
193 result = std::cbrt(value); in Cbrt()
195 return GetTaggedDouble(result); in Cbrt()
208 double result = base::NAN_VALUE; in Ceil() local
213 result = value; in Ceil()
216 result = std::ceil(value); in Ceil()
218 return GetTaggedDouble(result); in Ceil()
233 auto result = numberValue.ToUint32(); in Clz32() local
234 if (!std::isfinite(tmpValue) || tmpValue == 0 || result == 0) { in Clz32()
238 return GetTaggedInt(__builtin_clz(result)); in Clz32()
251 double result = base::NAN_VALUE; in Cos() local
252 // If value is NaN or -NaN, +infinite, -infinite, result is NaN in Cos()
254 result = std::cos(value); in Cos()
256 return GetTaggedDouble(result); in Cos()
269 double result = base::NAN_VALUE; in Cosh() local
270 // if value is NaN or -NaN, result is NaN in Cosh()
272 result = std::cosh(value); in Cosh()
274 return GetTaggedDouble(result); in Cosh()
287 double result = base::NAN_VALUE; in Exp() local
288 // if value is NaN or -NaN, result is NaN in Exp()
290 result = std::exp(value); in Exp()
292 return GetTaggedDouble(result); in Exp()
305 double result = base::NAN_VALUE; in Expm1() local
306 // if value is NaN or -NaN, result is NaN in Expm1()
308 result = std::expm1(value); in Expm1()
310 return GetTaggedDouble(result); in Expm1()
323 double result = base::NAN_VALUE; in Floor() local
328 result = value; in Floor()
331 // If x is greater than 0 but less than 1, the result is +0 in Floor()
332 result = 0; in Floor()
334 result = std::floor(value); in Floor()
336 return GetTaggedDouble(result); in Floor()
349 double result; in Fround() local
351 // If result is NaN or -NaN, the result is NaN in Fround()
352 result = base::NAN_VALUE; in Fround()
354 result = static_cast<float>(value); in Fround()
356 return GetTaggedDouble(result); in Fround()
366 double result = 0; in Hypot() local
374 result = std::hypot(result, value); in Hypot()
376 return GetTaggedDouble(result); in Hypot()
399 auto result = static_cast<int32_t>(static_cast<int64_t>(value1) * static_cast<int64_t>(value2)); in Imul() local
400 return GetTaggedInt(result); in Imul()
413 double result = base::NAN_VALUE; in Log() local
414 // If value is NaN , -NaN , or < 0,result is NaN in Log()
416 result = std::log(value); in Log()
418 return GetTaggedDouble(result); in Log()
431 double result = base::NAN_VALUE; in Log1p() local
432 // If value is NaN , -NaN , or < -1,result is NaN in Log1p()
434 result = std::log1p(value); in Log1p()
436 return GetTaggedDouble(result); in Log1p()
449 double result = base::NAN_VALUE; in Log10() local
450 // If value is NaN , -NaN , or < 0,result is NaN in Log10()
452 result = std::log10(value); in Log10()
454 return GetTaggedDouble(result); in Log10()
467 double result = base::NAN_VALUE; in Log2() local
468 // If value is NaN , -NaN , or < 0,result is NaN in Log2()
470 result = std::log2(value); in Log2()
472 return GetTaggedDouble(result); in Log2()
489 // If no arguments are given, the result is -inf in Max()
490 auto result = JSTaggedNumber(-base::POSITIVE_INFINITY); in Max() local
498 // If any value is NaN, or -NaN, the max result is NaN in Max()
499 result = numberValue; in Max()
503 result = numberValue; in Max()
507 result = numberValue; in Max()
511 return result; in Max()
523 // If no arguments are given, the result is inf in Min()
524 auto result = JSTaggedNumber(base::POSITIVE_INFINITY); in Min() local
532 // If any value is NaN or -NaN, the min result is NaN in Min()
533 result = numberValue; in Min()
537 result = numberValue; in Min()
541 result = numberValue; in Min()
545 return result; in Min()
572 // If abs(x) is 1 and y is inf or -inf, the result is NaN in Pow()
576 double result = std::pow(valueX, valueY); in Pow() local
577 if (std::isnan(std::abs(result))) { in Pow()
578 // If result is NaN or -NaN, the result is NaN in Pow()
579 result = base::NAN_VALUE; in Pow()
581 return GetTaggedDouble(result); in Pow()
608 auto result = base::NAN_VALUE; in Round() local
614 // If value is NaN or -NaN, the result is default NaN, else is value in Round()
615 result = value; in Round()
617 return GetTaggedDouble(result); in Round()
619 // If x is less than 0 but greater than or equal to -0.5, the result is -0 in Round()
623 // If x is greater than 0 but less than 0.5, the result is +0 in Round()
628 result = std::ceil(value); in Round()
629 if (result - value > diff) { in Round()
630 result -= 1; in Round()
632 return GetTaggedDouble(result); in Round()
667 double result = base::NAN_VALUE; in Sin() local
668 // If value is NaN or -NaN, the result is NaN in Sin()
670 result = std::sin(value); in Sin()
672 return GetTaggedDouble(result); in Sin()
685 double result = base::NAN_VALUE; in Sinh() local
686 // If value is NaN or -NaN, the result is NaN in Sinh()
688 result = std::sinh(value); in Sinh()
690 return GetTaggedDouble(result); in Sinh()
703 double result = base::NAN_VALUE; in Sqrt() local
704 // If value is negative, include -NaN and -Infinity but not -0.0, the result is NaN in Sqrt()
706 return GetTaggedDouble(result); in Sqrt()
708 // If value is NaN, the result is NaN in Sqrt()
710 result = std::sqrt(value); in Sqrt()
712 return GetTaggedDouble(result); in Sqrt()
725 double result = base::NAN_VALUE; in Tan() local
726 // If value is NaN or -NaN, +infinite, -infinite, result is NaN in Tan()
728 result = std::tan(value); in Tan()
730 return GetTaggedDouble(result); in Tan()
743 double result = base::NAN_VALUE; in Tanh() local
745 result = std::tanh(value); in Tanh()
747 return GetTaggedDouble(result); in Tanh()
760 double result = base::NAN_VALUE; in Trunc() local
764 // if value is +infinite, -infinite, result is value in Trunc()
765 result = value; in Trunc()
768 result = std::trunc(value); in Trunc()
770 return GetTaggedDouble(result); in Trunc()