Lines Matching full:sign
31 enum class Sign { NONE, NEG, POS }; enum
80 static inline double SignedZero(Sign sign) in SignedZero() argument
82 return sign == Sign::NEG ? -0.0 : 0.0; in SignedZero()
183 // 2. sign bit in StringToDoubleWithRadix()
402 …y code unit 0x0065 (LATIN SMALL LETTER E), followed by the code unit 0x002B (PLUS SIGN) or the code in NumberToString()
445 // 2. get number sign in StringToDouble()
446 Sign sign = Sign::NONE; in StringToDouble() local
449 sign = Sign::POS; in StringToDouble()
452 sign = Sign::NEG; in StringToDouble()
469 return sign == Sign::NEG ? -POSITIVE_INFINITY : POSITIVE_INFINITY; in StringToDouble()
476 RETURN_IF_CONVERSION_END(++p, end, SignedZero(sign)); in StringToDouble()
479 return ignoreTrailing ? SignedZero(sign) : NAN_VALUE; in StringToDouble()
482 if (sign != Sign::NONE) { in StringToDouble()
489 return ignoreTrailing ? SignedZero(sign) : NAN_VALUE; in StringToDouble()
492 if (sign != Sign::NONE) { in StringToDouble()
499 return ignoreTrailing ? SignedZero(sign) : NAN_VALUE; in StringToDouble()
502 if (sign != Sign::NONE) { in StringToDouble()
518 RETURN_IF_CONVERSION_END(++p, end, SignedZero(sign)); in StringToDouble()
544 if (sign == Sign::NEG) { in StringToDouble()
610 if (sign == Sign::NEG) { in StringToDouble()
628 Sign sign = Sign::NONE; in Strtod() local
633 sign = Sign::NEG; in Strtod()
656 return sign == Sign::NEG ? -result : result; in Strtod()
711 // 2. get bigint sign in StringToBigInt()
712 Sign sign = Sign::NONE; in StringToBigInt() local
715 sign = Sign::POS; in StringToBigInt()
718 sign = Sign::NEG; in StringToBigInt()
732 if (sign != Sign::NONE) { in StringToBigInt()
738 if (sign != Sign::NONE) { in StringToBigInt()
744 if (sign != Sign::NONE) { in StringToBigInt()
760 if (sign == Sign::NEG) { in StringToBigInt()