• Home
  • Raw
  • Download

Lines Matching refs:sign

112 static inline double SignedZero(Sign sign)  in SignedZero()  argument
114 return sign == Sign::NEG ? -0.0 : 0.0; in SignedZero()
277 … std::string& buf1, int buf1Size, int roundingMode, int *sign) in GetBaseForRoundingMode() argument
290 *sign = (buf1[0] == '-'); in GetBaseForRoundingMode()
302 …CustomEcvtIsFixed(double &valueNumber, int &digits, int *decimalPoint, std::string& buf, int *sign) in CustomEcvtIsFixed() argument
310 …RoundingMode(valueNumber, digits, decimalPoint, buf, buffer, JS_DTOA_BUF_SIZE, FE_TONEAREST, sign); in CustomEcvtIsFixed()
324 std::string& buf, bool isFixed, int *sign) in CustomEcvt() argument
329 CustomEcvtIsFixed(valueNumber, digits, decimalPoint, buf, sign); in CustomEcvt()
352 …RoundingMode(valueNumber, digits, decimalPoint, buf, buffer, JS_DTOA_BUF_SIZE, roundingMode, sign); in CustomEcvt()
401 int sign = 0; in DoubleToExponential() local
402 int digitNumber = CustomEcvt(number, digit, &decimalPoint, buffer, false, &sign); in DoubleToExponential()
439 int sign = 0; in DoubleToASCIIWithFlag() local
442 int digitNumber = CustomEcvt(valueNumber, digits, &decimalPoint, buf1, fixed, &sign); in DoubleToASCIIWithFlag()
446 if (sign) { in DoubleToASCIIWithFlag()
817 Sign sign = Sign::NONE; in StringToDouble() local
820 sign = Sign::POS; in StringToDouble()
823 sign = Sign::NEG; in StringToDouble()
840 return sign == Sign::NEG ? -POSITIVE_INFINITY : POSITIVE_INFINITY; in StringToDouble()
847 RETURN_IF_CONVERSION_END(++p, end, SignedZero(sign)); in StringToDouble()
850 return ignoreTrailing ? SignedZero(sign) : NAN_VALUE; in StringToDouble()
853 if (sign != Sign::NONE) { in StringToDouble()
860 return ignoreTrailing ? SignedZero(sign) : NAN_VALUE; in StringToDouble()
863 if (sign != Sign::NONE) { in StringToDouble()
870 return ignoreTrailing ? SignedZero(sign) : NAN_VALUE; in StringToDouble()
873 if (sign != Sign::NONE) { in StringToDouble()
889 RETURN_IF_CONVERSION_END(++p, end, SignedZero(sign)); in StringToDouble()
915 if (sign == Sign::NEG) { in StringToDouble()
982 if (sign == Sign::NEG) { in StringToDouble()
1000 Sign sign = Sign::NONE; in Strtod() local
1005 sign = Sign::NEG; in Strtod()
1033 return sign == Sign::NEG ? -result : result; in Strtod()
1089 Sign sign = Sign::NONE; in StringToBigInt() local
1092 sign = Sign::POS; in StringToBigInt()
1095 sign = Sign::NEG; in StringToBigInt()
1109 if (sign != Sign::NONE) { in StringToBigInt()
1115 if (sign != Sign::NONE) { in StringToBigInt()
1121 if (sign != Sign::NONE) { in StringToBigInt()
1149 if (sign == Sign::NEG) { in StringToBigInt()