Home
last modified time | relevance | path

Searched full:exponent (Results 1 – 23 of 23) sorted by relevance

/arkcompiler/ets_runtime/ecmascript/base/
Dnumber_helper.cpp525 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 …]
Djson_parser.h698 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()
Dnumber_helper.h115 static double Strtod(const char *str, int exponent, uint8_t radix);
/arkcompiler/ets_runtime/ecmascript/
Djs_bigint.cpp977 …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 …]
Djs_bigint.h64 … JSHandle<BigInt> Exponentiate(JSThread *thread, JSHandle<BigInt> base, JSHandle<BigInt> exponent);
Djs_tagged_value.h52 // 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/
Dbalance_expressions.cpp244 // Avoid large shift exponent for size_t in NeedsOptimization()
/arkcompiler/ets_runtime/ecmascript/interpreter/
Dslow_runtime_stub.h66 static JSTaggedValue Exp(JSThread *thread, JSTaggedValue base, JSTaggedValue exponent);
Dslow_runtime_stub.cpp363 JSTaggedValue SlowRuntimeStub::Exp(JSThread *thread, JSTaggedValue base, JSTaggedValue exponent) in Exp() argument
368 return RuntimeStubs::RuntimeExp(thread, base, exponent); in Exp()
Dinterpreter_assembly.cpp1445 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()
Dinterpreter-inl.h2010 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/
Dtagged_value.h31 // Every double with all of its exponent bits set and its highest mantissa bit set is a quiet NaN.
/arkcompiler/runtime_core/isa/
Disa.yaml76 - 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/
Dbuiltins_lowering.cpp220 // Float abs : A floating-point number is composed of mantissa and exponent.
/arkcompiler/runtime_core/compiler/optimizer/code_generator/target/aarch32/
Dencode.cpp1186 // 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/
Djs_bigint_test.cpp615 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/
Druntime_stubs.h360 …atic inline JSTaggedValue RuntimeExp(JSThread *thread, JSTaggedValue base, JSTaggedValue exponent);
Druntime_stubs-inl.h71 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/
Dencoder64_test.cpp61 // Max and min exponent on the basus of two float and double
/arkcompiler/runtime_core/compiler/tests/aarch32/
Dencoder32_test.cpp60 // Max and min exponent on the basus of two float and double
/arkcompiler/runtime_core/compiler/tests/aarch64/
Dencoder64_test.cpp61 // Max and min exponent on the basus of two float and double
/arkcompiler/ets_frontend/test262/
Des5_tests.txt150 language/expressions/exponentiation/bigint-negative-exponent-throws.js
153 language/expressions/exponentiation/bigint-zero-base-zero-exponent.js
/arkcompiler/ets_frontend/es2panda/test/
Dtest262skiplist.txt3078 language/expressions/exponentiation/bigint-negative-exponent-throws.js
3081 language/expressions/exponentiation/bigint-zero-base-zero-exponent.js