| /arkcompiler/ets_runtime/ecmascript/base/ |
| D | number_helper.cpp | 525 int exponent = 0; in StringToDouble() local 539 ++exponent; in StringToDouble() 558 return number * std::pow(radix, exponent); in StringToDouble() 564 (number * std::pow(radix, exponent)) : NAN_VALUE); in StringToDouble() 566 --exponent; in StringToDouble() 586 // 10. parse exponent number in StringToDouble() 603 exponent += (exponentSign == '-' ? -additionalExponent : additionalExponent); in StringToDouble() 620 return Strtod(buffer.c_str(), exponent, radix); in StringToDouble() 623 double NumberHelper::Strtod(const char *str, int exponent, uint8_t radix) in Strtod() argument 647 ++exponent; in Strtod() [all …]
|
| D | json_parser.h | 698 uint32_t exponent = UNICODE_DIGIT_LENGTH; in ConvertStringUnicode() local 701 exponent--; in ConvertStringUnicode() 703 res += (*current_ - '0') * pow(NUMBER_SIXTEEN, exponent); in ConvertStringUnicode() 705 res += (*current_ - 'a' + NUMBER_TEN) * pow(NUMBER_SIXTEEN, exponent); in ConvertStringUnicode() 707 res += (*current_ - 'A' + NUMBER_TEN) * pow(NUMBER_SIXTEEN, exponent); in ConvertStringUnicode()
|
| D | number_helper.h | 115 static double Strtod(const char *str, int exponent, uint8_t radix);
|
| /arkcompiler/ets_runtime/ecmascript/ |
| D | js_bigint.cpp | 977 …le<BigInt> BigInt::Exponentiate(JSThread *thread, JSHandle<BigInt> base, JSHandle<BigInt> exponent) in Exponentiate() argument 979 if (exponent->GetSign()) { in Exponentiate() 981 THROW_RANGE_ERROR_AND_RETURN(thread, "Exponent must be positive", bigint); in Exponentiate() 983 ASSERT(exponent->GetLength() == 1); in Exponentiate() 984 if (exponent->IsZero()) { in Exponentiate() 987 uint32_t expValue = exponent->GetDigit(0); in Exponentiate() 1442 JSHandle<BigInt> exponent = Int32ToBigInt(thread, bit); in AsUintN() local 1444 JSHandle<BigInt> tValue = Exponentiate(thread, base, exponent); in AsUintN() 1458 JSHandle<BigInt> exponent = Int32ToBigInt(thread, bit - 1); in AsintN() local 1462 JSHandle<BigInt> resValue = Exponentiate(thread, base, exponent); in AsintN() [all …]
|
| D | js_bigint.h | 64 … JSHandle<BigInt> Exponentiate(JSThread *thread, JSHandle<BigInt> base, JSHandle<BigInt> exponent);
|
| D | js_tagged_value.h | 52 // Every double with all of its exponent bits set and its highest mantissa bit set is a quiet NaN.
|
| /arkcompiler/runtime_core/compiler/optimizer/optimizations/ |
| D | balance_expressions.cpp | 244 // Avoid large shift exponent for size_t in NeedsOptimization()
|
| /arkcompiler/ets_runtime/ecmascript/interpreter/ |
| D | slow_runtime_stub.h | 66 static JSTaggedValue Exp(JSThread *thread, JSTaggedValue base, JSTaggedValue exponent);
|
| D | slow_runtime_stub.cpp | 363 JSTaggedValue SlowRuntimeStub::Exp(JSThread *thread, JSTaggedValue base, JSTaggedValue exponent) in Exp() argument 368 return RuntimeStubs::RuntimeExp(thread, base, exponent); in Exp()
|
| D | interpreter_assembly.cpp | 1445 JSTaggedValue exponent = GET_ACC(); in HandleExpImm8V8() local 1446 if (base.IsNumber() && exponent.IsNumber()) { in HandleExpImm8V8() 1449 double doubleExponent = exponent.IsInt() ? exponent.GetInt() : exponent.GetDouble(); in HandleExpImm8V8() 1468 JSTaggedValue res = SlowRuntimeStub::Exp(thread, base, exponent); in HandleExpImm8V8()
|
| D | interpreter-inl.h | 2010 JSTaggedValue exponent = GET_ACC(); in RunInternal() local 2011 if (base.IsNumber() && exponent.IsNumber()) { in RunInternal() 2014 double doubleExponent = exponent.IsInt() ? exponent.GetInt() : exponent.GetDouble(); in RunInternal() 2036 JSTaggedValue res = SlowRuntimeStub::Exp(thread, base, exponent); in RunInternal()
|
| /arkcompiler/runtime_core/runtime/include/coretypes/ |
| D | tagged_value.h | 31 // Every double with all of its exponent bits set and its highest mantissa bit set is a quiet NaN.
|
| /arkcompiler/runtime_core/isa/ |
| D | isa.yaml | 76 - Exponent indicator ("`e`") 77 - Exponent sign 78 - Exponent 80 …mal floating-point literals must have at least one digit and either decimal point or exponent part.
|
| /arkcompiler/ets_runtime/ecmascript/compiler/ |
| D | builtins_lowering.cpp | 220 // Float abs : A floating-point number is composed of mantissa and exponent.
|
| /arkcompiler/runtime_core/compiler/optimizer/code_generator/target/aarch32/ |
| D | encode.cpp | 1186 // See the exponent of number in EncodeCastDoubleToInt64() 1188 // Max exponent that we can load in int64 in EncodeCastDoubleToInt64() 1215 // If exponent negative, transform maxint64 to minint64 in EncodeCastDoubleToInt64() 1230 // See the exponent of number in EncodeCastFloatToInt64() 1232 // Max exponent that we can load in int64 in EncodeCastFloatToInt64() 1258 // If exponent negative, transform maxint64 to minint64 in EncodeCastFloatToInt64()
|
| /arkcompiler/ets_runtime/ecmascript/tests/ |
| D | js_bigint_test.cpp | 615 JSHandle<BigInt> exponent = BigInt::Int32ToBigInt(thread, 64); // 64 : bits in HWTEST_F_L0() local 618 JSHandle<BigInt> uint64MaxBigint1 = BigInt::Exponentiate(thread, base, exponent); in HWTEST_F_L0()
|
| /arkcompiler/ets_runtime/ecmascript/stubs/ |
| D | runtime_stubs.h | 360 …atic inline JSTaggedValue RuntimeExp(JSThread *thread, JSTaggedValue base, JSTaggedValue exponent);
|
| D | runtime_stubs-inl.h | 71 JSTaggedValue RuntimeStubs::RuntimeExp(JSThread *thread, JSTaggedValue base, JSTaggedValue exponent) in RuntimeExp() argument 74 JSHandle<JSTaggedValue> exponentTag(thread, exponent); in RuntimeExp()
|
| /arkcompiler/runtime_core/compiler/tests/amd64/ |
| D | encoder64_test.cpp | 61 // Max and min exponent on the basus of two float and double
|
| /arkcompiler/runtime_core/compiler/tests/aarch32/ |
| D | encoder32_test.cpp | 60 // Max and min exponent on the basus of two float and double
|
| /arkcompiler/runtime_core/compiler/tests/aarch64/ |
| D | encoder64_test.cpp | 61 // Max and min exponent on the basus of two float and double
|
| /arkcompiler/ets_frontend/test262/ |
| D | es5_tests.txt | 150 language/expressions/exponentiation/bigint-negative-exponent-throws.js 153 language/expressions/exponentiation/bigint-zero-base-zero-exponent.js
|
| /arkcompiler/ets_frontend/es2panda/test/ |
| D | test262skiplist.txt | 3078 language/expressions/exponentiation/bigint-negative-exponent-throws.js 3081 language/expressions/exponentiation/bigint-zero-base-zero-exponent.js
|