Lines Matching full:sign
29 enum class Sign { NONE, NEG, POS }; enum
109 static inline double SignedZero(Sign sign) in SignedZero() argument
111 return sign == Sign::NEG ? -0.0 : 0.0; in SignedZero()
302 … std::string& buf1, int buf1Size, int roundingMode, int *sign) in GetBaseForRoundingMode() argument
315 *sign = (buf1[0] == '-'); in GetBaseForRoundingMode()
327 …CustomEcvtIsFixed(double &valueNumber, int &digits, int *decimalPoint, std::string& buf, int *sign) in CustomEcvtIsFixed() argument
335 …RoundingMode(valueNumber, digits, decimalPoint, buf, buffer, JS_DTOA_BUF_SIZE, FE_TONEAREST, sign); in CustomEcvtIsFixed()
349 std::string& buf, bool isFixed, int *sign) in CustomEcvt() argument
354 CustomEcvtIsFixed(valueNumber, digits, decimalPoint, buf, sign); in CustomEcvt()
377 …RoundingMode(valueNumber, digits, decimalPoint, buf, buffer, JS_DTOA_BUF_SIZE, roundingMode, sign); in CustomEcvt()
498 int sign = 0; in DoubleToASCIIWithFlag() local
502 int digitNumber = CustomEcvt(valueNumber, digits, &decimalPoint, buf1, fixed, &sign); in DoubleToASCIIWithFlag()
506 if (sign) { in DoubleToASCIIWithFlag()
587 // 2. sign bit in StringToDoubleWithRadix()
881 return {true, JSTaggedNumber(SignedZero(Sign::NEG))}; in FastStringToNumber()
903 // 2. get number sign in StringToDouble()
904 Sign sign = Sign::NONE; in StringToDouble() local
907 sign = Sign::POS; in StringToDouble()
910 sign = Sign::NEG; in StringToDouble()
927 return sign == Sign::NEG ? -POSITIVE_INFINITY : POSITIVE_INFINITY; in StringToDouble()
934 RETURN_IF_CONVERSION_END(++p, end, SignedZero(sign)); in StringToDouble()
937 return ignoreTrailing ? SignedZero(sign) : NAN_VALUE; in StringToDouble()
940 if (sign != Sign::NONE) { in StringToDouble()
947 return ignoreTrailing ? SignedZero(sign) : NAN_VALUE; in StringToDouble()
950 if (sign != Sign::NONE) { in StringToDouble()
957 return ignoreTrailing ? SignedZero(sign) : NAN_VALUE; in StringToDouble()
960 if (sign != Sign::NONE) { in StringToDouble()
976 RETURN_IF_CONVERSION_END(++p, end, SignedZero(sign)); in StringToDouble()
1002 if (sign == Sign::NEG) { in StringToDouble()
1069 if (sign == Sign::NEG) { in StringToDouble()
1087 Sign sign = Sign::NONE; in Strtod() local
1092 sign = Sign::NEG; in Strtod()
1120 return sign == Sign::NEG ? -result : result; in Strtod()
1183 // 2. get bigint sign in StringToBigInt()
1184 Sign sign = Sign::NONE; in StringToBigInt() local
1187 sign = Sign::POS; in StringToBigInt()
1190 sign = Sign::NEG; in StringToBigInt()
1204 if (sign != Sign::NONE) { in StringToBigInt()
1210 if (sign != Sign::NONE) { in StringToBigInt()
1216 if (sign != Sign::NONE) { in StringToBigInt()
1244 if (sign == Sign::NEG) { in StringToBigInt()