Lines Matching full:int
51 static constexpr int MAX_INT_VALUE = std::numeric_limits<int>::max();
54 static constexpr int DOUBLE_MAX_PRECISION = 17;
55 static constexpr int DOUBLE_EXPONENT_BIAS = 0x3FF;
76 static constexpr int EXPONENTBIAS = DOUBLE_EXPONENT_BIAS + DOUBLE_SIGNIFICAND_SIZE;
77 static constexpr int kDENORMAL = -EXPONENTBIAS + 1;
81 static constexpr int RIGHT12 = 12;
82 static constexpr int SECONDS_TO_SUBTLE = 1000000;
83 static constexpr int RIGHT27 = 27;
84 static constexpr int LEFT25 = 25;
96 static constexpr int MAX_DIGITS = 21;
97 static constexpr int MIN_DIGITS = -6;
100 static constexpr int VAR_FORMAT = 0;
101 static constexpr int FIXED_FORMAT = 1;
102 static constexpr int FRAC_FORMAT = 2;
103 static constexpr int FORCE_FORMAT = 4;
106 static constexpr int POINT_INDEX = 3;
107 static constexpr int DECIMAL_INDEX = 2;
135 static int inline Exponent(double x)
141 int biased = static_cast<int>((value & kINFINITY) >> DOUBLE_SIGNIFICAND_SIZE);
162 static JSTaggedValue DoubleToString(JSThread *thread, double number, int radix);
164 static JSHandle<EcmaString> IntToEcmaString(const JSThread *thread, int number);
173 static int StringToInt(const uint8_t *start, const uint8_t *end);
180 …static JSTaggedValue StringToDoubleWithRadix(const uint8_t *start, const uint8_t *end, int radix, …
181 static CString IntToString(int number);
182 static CString IntegerToString(double number, int radix);
184 static JSTaggedValue DoubleToExponential(JSThread *thread, double number, int digit);
185 static JSTaggedValue DoubleToASCII(JSThread *thread, double valueNumber, int digits, int flags);
186 static JSTaggedValue DoubleToFixedString(JSThread *thread, double valueNumber, int digits);
187 static JSTaggedValue DoubleToPrecisionString(JSThread *thread, double valueNumber, int digits);
188 static void DoubleToASCIIWithFlag(std::string& buf, double valueNumber, int digits, int flags);
189 …static void ToASCIIWithNegative(std::string& tmpbuf, int digitNumber, int n, const std::string& bu…
190 …static void ToASCIIWithGreatThanZero(std::string& tmpbuf, int digitNumber, int number, const std::…
193 static char Carry(char current, int radix);
194 static double Strtod(const char *str, int exponent, uint8_t radix);
196 static void GetBase(double d, int digits, int *decimalPoint, char *buf, char *bufTmp, int size);
197 static int GetMinmumDigits(double d, int *decimalPoint, char *buf);
198 static int CustomEcvt(double valueNumber, int digits, int *decimalPoint, std::string& buf,
199 bool isFixed, int *sign);
200 static void CustomFcvt(std::string& buf, int bufSize, double valueNumber, int digits);
201 …static int CustomFcvtHelper(std::string& buf, int bufSize, double valueNumber, int digits, int rou…
202 …static void GetBaseForRoundingMode(double valueNumber, int digitNumber, int *decimalPoint, std::st…
203 std::string& buf1, int buf1Size, int roundingMode, int *sign);
204 …tatic void CustomEcvtIsFixed(double &valueNumber, int &digits, int *decimalPoint, std::string& buf…
215 static int32_t Next(int bits);