Home
last modified time | relevance | path

Searched full:digit (Results 1 – 25 of 30) sorted by relevance

12

/arkcompiler/runtime_core/scripts/
Dinstall-deps-qemu154 | grep -Eo 'version [[:digit:]]+\.[[:digit:]]+\.[[:digit:]]+' \
158 | grep -Eo 'version [[:digit:]]+\.[[:digit:]]+\.[[:digit:]]+' \
Dmemusage.py46 """Checks whether char is hexadecimal digit"""
/arkcompiler/ets_runtime/ecmascript/base/
Dnumber_helper.cpp121 JSTaggedValue NumberHelper::DoubleToExponential(JSThread *thread, double number, int digit) in DoubleToExponential() argument
124 if (digit < 0) { in DoubleToExponential()
127 ss << std::setiosflags(std::ios::scientific) << std::setprecision(digit) << number; in DoubleToExponential()
134 if (digit < 0) { in DoubleToExponential()
151 JSTaggedValue NumberHelper::DoubleToFixed(JSThread *thread, double number, int digit) in DoubleToFixed() argument
154 ss << std::setiosflags(std::ios::fixed) << std::setprecision(digit) << number; in DoubleToFixed()
158 JSTaggedValue NumberHelper::DoubleToPrecision(JSThread *thread, double number, int digit) in DoubleToPrecision() argument
161 return DoubleToFixed(thread, number, digit - 1); in DoubleToPrecision()
166 int radixDigit = digit - logDigit - 1; in DoubleToPrecision()
171 return DoubleToExponential(thread, number, digit - 1); in DoubleToPrecision()
[all …]
Dnumber_helper.h105 static JSTaggedValue DoubleToExponential(JSThread *thread, double number, int digit);
106 static JSTaggedValue DoubleToFixed(JSThread *thread, double number, int digit);
107 static JSTaggedValue DoubleToPrecision(JSThread *thread, double number, int digit);
/arkcompiler/ets_runtime/ecmascript/tests/
Djs_date_time_format_test.cpp287 { "year", "2-digit" }, in HWTEST_F_L0()
288 { "month", "2-digit" }, in HWTEST_F_L0()
289 { "day", "2-digit" } in HWTEST_F_L0()
293 { "hour", "2-digit" }, in HWTEST_F_L0()
294 { "minute", "2-digit" }, in HWTEST_F_L0()
295 { "second", "2-digit" }, in HWTEST_F_L0()
305 EXPECT_STREQ(JSLocale::ConvertToStdString(yearStr).c_str(), "2-digit"); in HWTEST_F_L0()
307 EXPECT_STREQ(JSLocale::ConvertToStdString(monthStr).c_str(), "2-digit"); in HWTEST_F_L0()
309 EXPECT_STREQ(JSLocale::ConvertToStdString(dayStr).c_str(), "2-digit"); in HWTEST_F_L0()
314 EXPECT_STREQ(JSLocale::ConvertToStdString(hourStr).c_str(), "2-digit"); in HWTEST_F_L0()
[all …]
Djs_bigint_test.cpp160 uint32_t digit = maxSafeIntPlusOne->GetDigit(i); in HWTEST_F_L0() local
161 if (digit == 0) { in HWTEST_F_L0()
169 uint32_t digit = maxSafeIntPlusOne->GetDigit(i); in HWTEST_F_L0() local
170 EXPECT_EQ(digit, 0U); in HWTEST_F_L0()
779 EXPECT_TRUE(addres3->GetDigit(0) == 2); // 2 : digit value in HWTEST_F_L0()
/arkcompiler/ets_frontend/es2panda/lexer/regexp/
Dregexp.cpp591 char32_t digit = Next(); in ParseHexEscape() local
592 if (!IsHexDigit(digit)) { in ParseHexEscape()
597 uint32_t cpValue = HexValue(digit) * MULTIPLIER; in ParseHexEscape()
599 digit = Next(); in ParseHexEscape()
600 if (!IsHexDigit(digit)) { in ParseHexEscape()
604 cpValue += HexValue(digit); in ParseHexEscape()
614 char32_t digit = Next(); in ParseUnicodeDigits() local
615 if (!IsHexDigit(digit)) { in ParseUnicodeDigits()
620 value = value * MULTIPLIER + HexValue(digit); in ParseUnicodeDigits()
/arkcompiler/ets_runtime/ecmascript/builtins/
Dbuiltins_number.cpp269 double digit = digitInt.GetNumber(); in ToFixed() local
270 if (digit < base::MIN_FRACTION || digit > base::MAX_FRACTION) { in ToFixed()
287 return NumberHelper::DoubleToFixed(thread, valueNumber, static_cast<int>(digit)); in ToFixed()
370 double digit = digitInt.GetNumber(); in ToPrecision() local
371 if (digit < base::MIN_FRACTION + 1 || digit > base::MAX_FRACTION) { in ToPrecision()
374 return NumberHelper::DoubleToPrecision(thread, valueNumber, static_cast<int>(digit)); in ToPrecision()
/arkcompiler/ets_runtime/ecmascript/base/tests/
Dmath_helper_test.cpp52 const uint32_t commonInput = static_cast<uint32_t>(0b111111111) << 13; // 13 : left shift digit in HWTEST_F_L0()
60 const uint64_t commonInput = static_cast<uint64_t>(0b111111111) << 53; // 53 : left shift digit in HWTEST_F_L0()
Dbit_helper_test.cpp85 …uint32_t uint32CommonValue2 = std::numeric_limits<uint32_t>::max() >> 31; // 31 : right shift digit in HWTEST_F_L0()
101 …uint64_t uint64CommonValue2 = std::numeric_limits<uint64_t>::max() >> 63; // 63 : right shift digit in HWTEST_F_L0()
Dnumber_helper_test.cpp378 …* of number based on ten is less than zero and radix Digit is more than zero or it is gr…
379 …* and radix Digit is less than MAX_EXPONENT_DIGIT call the DoubleToFixed function.other …
415 …* of number based on ten is less than zero and radix Digit is more than zero or it is gr…
416 …* and radix Digit is less than MAX_EXPONENT_DIGIT call the DoubleToFixed function.other …
/arkcompiler/ets_runtime/ecmascript/
Ddate_parse.h223 // 6: 6 decimal digit in IsSixDecimalDigit()
229 // 4: 4 decimal digit in IsFourDecimalDigit()
235 // 2: 2 decimal digit in IsTwoDecimalDigit()
Djs_date_time_format.h75 … IcuPatternDesc("hour", {{data1, "2-digit"}, {data2, "numeric"}}, {"2-digit", "numeric"}))) {} in Pattern()
Djs_date_time_format.cpp50 const std::vector<std::string> ICU2_DIGIT_NUMERIC = {"2-digit", "numeric"};
51 …::string> ICU_NARROW_LONG_SHORT2_DIGIT_NUMERIC = {"narrow", "long", "short", "2-digit", "numeric"};
57 const std::vector<IcuPatternEntry> ICU_YEAR_PE = {{"yy", "2-digit"}, {"y", "numeric"}};
59 {"MMMMM", "narrow"}, {"MMMM", "long"}, {"MMM", "short"}, {"MM", "2-digit"}, {"M", "numeric"},
60 {"LLLLL", "narrow"}, {"LLLL", "long"}, {"LLL", "short"}, {"LL", "2-digit"}, {"L", "numeric"}
62 const std::vector<IcuPatternEntry> ICU_DAY_PE = {{"dd", "2-digit"}, {"d", "numeric"}};
68 {"HH", "2-digit"}, {"H", "numeric"}, {"hh", "2-digit"}, {"h", "numeric"},
69 {"kk", "2-digit"}, {"k", "numeric"}, {"KK", "2-digit"}, {"K", "numeric"}
71 const std::vector<IcuPatternEntry> ICU_MINUTE_PE = {{"mm", "2-digit"}, {"m", "numeric"}};
72 const std::vector<IcuPatternEntry> ICU_SECOND_PE = {{"ss", "2-digit"}, {"s", "numeric"}};
Djs_bigint.h150 inline void SetDigit(uint32_t index, uint32_t digit) in SetDigit() argument
153 Barriers::SetPrimitive<uint32_t>(GetData(), sizeof(uint32_t) * index, digit); in SetDigit()
Djs_bigint.cpp1517 uint32_t digit = 0; in BigIntToNumber() local
1519 digit = bigint->GetDigit(--index); in BigIntToNumber()
1525 mantissa |= (static_cast<uint64_t>(digit) << (remainMantissaBits - BigInt::DATEBITS)); in BigIntToNumber()
1530 digit = bigint->GetDigit(index); in BigIntToNumber()
1531 mantissa |= (static_cast<uint64_t>(digit) >> (BigInt::DATEBITS - remainMantissaBits)); in BigIntToNumber()
1535 // The remaining bits of the current digit in BigIntToNumber()
1546 digit = bigint->GetDigit(index--); in BigIntToNumber()
1550 if (!(digit & temp)) { in BigIntToNumber()
1553 if ((digit & (temp - 1)) != 0) { in BigIntToNumber()
/arkcompiler/runtime_core/tests/cts-generator/generator/
Dtest_case.rb102 if match = single_line.match(/(.+)##\*([[:digit:]]+)$/)
/arkcompiler/runtime_core/docs/
Dassembly_format.md82 …If present, a value is a valid identifier, with following exception: Values can start with a digit.
425 digit := "0" | "1" | "2" | "3" | "4" | "5" | "6" | "7" | "8" | "9"
429 char_simple := char_non_dig | digit
Dcode_metainfo.md70 Here, we have 4 columns and 5 rows. Number of rows is defeined in the first digit in a header,
/arkcompiler/ets_runtime/ecmascript/dfx/hprof/
Dheap_snapshot.cpp627 sequenceId_ = sequenceId; // Odd Digit in GenerateNode()
677 sequenceId_ = sequenceId; // Odd Digit in GenerateNode()
864 sequenceId_ = sequenceId; // Odd Digit in GenerateStringNode()
887 sequenceId_ = sequenceId; // Odd Digit in GeneratePrivateStringNode()
/arkcompiler/ets_frontend/es2panda/lexer/
Dlexer.h331 ThrowError("Invalid digit"); in ScanNumberRadix()
Dlexer.cpp251 ThrowError("Invalid octal digit"); in ScanNumberLeadingZero()
/arkcompiler/runtime_core/tests/cts-generator/cts-template/
Dfldarr.32.yaml204 …andi 0xFFFFFF # Limit amount of digit in number to fit in f32 primitive without loss of precisi…
/arkcompiler/ets_frontend/test262/
Dintl_tests.txt304 intl402/Intl/getCanonicalLocales/unicode-ext-key-with-digit.js
517 intl402/NumberFormat/fraction-digit-options-read-once.js
/arkcompiler/ets_runtime/ecmascript/regexp/
Dregexp_parser.cpp1181 // If \u is not followed by a two-digit hexadecimal, treat it in ParseCharacterEscape()

12