Home
last modified time | relevance | path

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

123

/arkcompiler/ets_runtime/ecmascript/base/
Ddtoa_helper.cpp301 void DtoaHelper::FillFractionals(uint64_t fractionals, int exponent, int fractional_count, in FillFractionals() argument
304 ASSERT(NEGATIVE_128BIT <= exponent && exponent <= 0); in FillFractionals()
306 // (-exponent). Inside the function the non-converted remainder of fractionals in FillFractionals()
308 if (-exponent <= EXPONENT_64) { in FillFractionals()
311 int point = -exponent; in FillFractionals()
326 ASSERT(EXPONENT_64 < -exponent && -exponent <= EXPONENT_128); in FillFractionals()
328 fractionals128.Shift(-exponent - EXPONENT_64); in FillFractionals()
378 int exponent = NumberHelper::Exponent(v); in FixedDtoa() local
379 if (exponent > 20) return false; // 20: max parameter in FixedDtoa()
382 if (exponent + kDoubleSignificandSize > EXPONENT_64) { in FixedDtoa()
[all …]
Dnumber_helper.cpp226 while (Exponent(integer / radix) > 0) { in DoubleToString()
983 int exponent = 0; in StringToDouble() local
997 ++exponent; in StringToDouble()
1016 return number * std::pow(radix, exponent); in StringToDouble()
1020 exponent = 0; in StringToDouble()
1023 (number * std::pow(radix, exponent)) : NAN_VALUE); in StringToDouble()
1025 --exponent; in StringToDouble()
1045 // 10. parse exponent number in StringToDouble()
1062 exponent += (exponentSign == '-' ? -additionalExponent : additionalExponent); in StringToDouble()
1079 return Strtod(buffer.c_str(), exponent, radix); in StringToDouble()
[all …]
Dnumber_helper.h86 // Exponent bits for double value between [1.0, 2.0)
141 static int inline Exponent(double x) function
202 static double Strtod(const char *str, int exponent, uint8_t radix);
Ddtoa_helper.h167 …/ DiyFp is a floating-point number type, consists of a uint64 significand and one integer exponent.
290 …static void FillFractionals(uint64_t fractionals, int exponent, int fractional_count, BufferVector…
/arkcompiler/ets_runtime/test/aottest/builtin_inlining/math/Pow/
DbuiltinMathPow.ts35 // If exponent is NaN, return NaN.
40 // If exponent is either +0.0 or -0.0, return 1.0
51 // a. If exponent > +0.0, then
52 // * If exponent is an odd integral Number, return -inf. Otherwise, return +inf.
60 // * If exponent is an odd integral Number, return -0.0. Otherwise, return +0.0.
68 // If base is +0.0 and if exponent > +0.0, return +0.0. Otherwise, return +inf.
78 // a. If exponent > +0.0, then
79 // * If exponent is an odd integral Number, return -0.0. Otherwise, return +0.0.
88 // * If exponent is an odd integral Number, return -inf. Otherwise, return +inf.
96 // If exponent is +inf, then
[all …]
/arkcompiler/runtime_core/static_core/plugins/ets/runtime/intrinsics/
Dstd_math.cpp52 int Exponent(uint64_t d64) in Exponent() function
82 int exponent = Exponent(d64); in ToInt32() local
85 if (exponent < 0) { in ToInt32()
86 if (exponent <= SIGNIFICAND_SIZE) { in ToInt32()
89 bits = significand >> static_cast<uint64_t>(-exponent); in ToInt32()
91 if (exponent > MAX_EXPONENT) { in ToInt32()
94 bits = (significand << static_cast<uint64_t>(exponent)) & WORD_MASK; in ToInt32()
/arkcompiler/runtime_core/static_core/plugins/ets/tests/ets-templates/04.names_declarations_and_scopes/08.function_declarations/02.parameter_list/
Dspec_example.sts23 function power(base: number, exponent: number): number {
24 return Math.pow(base, exponent)
/arkcompiler/runtime_core/static_core/plugins/ets/runtime/intrinsics/helpers/
Dets_intrinsics_helpers.h72 uint16_t exponent : coretypes::DOUBLE_EXPONENT_SIZE; member
107 inline double PowHelper(uint64_t number, int16_t exponent, uint8_t radix) in PowHelper() argument
111 double expRem = log2Radix * exponent; in PowHelper()
119 expI = u.bits.exponent + expI; in PowHelper()
128 u.bits.exponent = 0; in PowHelper()
133 u.bits.exponent = expI; in PowHelper()
188 inline double Strtod(const char *str, int exponent, uint8_t radix) in Strtod() argument
212 ++exponent; in Strtod()
216 if (exponent < 0) { in Strtod()
217 result = number / std::pow(radix, -exponent); in Strtod()
[all …]
Dets_intrinsics_helpers.cpp183 int exponent = 0; in StringToDouble() local
197 ++exponent; in StringToDouble()
216 return number * std::pow(radix, exponent); in StringToDouble()
221 …RETURN_IF_CONVERSION_END(++p, end, (digits > 0) ? (number * std::pow(radix, exponent)) : NAN_VALUE… in StringToDouble()
223 --exponent; in StringToDouble()
243 exponent += parseExponentResult.value; in StringToDouble()
261 return Strtod(buffer.c_str(), exponent, radix); in StringToDouble()
428 // exponent in GetBase()
461 // exponent in GetBaseFast()
Ddtoa_helper.h80 …/ DiyFp is a floating-point number type, consists of a uint64 significand and one integer exponent.
/arkcompiler/ets_runtime/ecmascript/
Djs_bigint.cpp1063 …le<BigInt> BigInt::Exponentiate(JSThread *thread, JSHandle<BigInt> base, JSHandle<BigInt> exponent) in Exponentiate() argument
1065 if (exponent->GetSign()) { in Exponentiate()
1067 THROW_RANGE_ERROR_AND_RETURN(thread, "Exponent must be positive", bigint); in Exponentiate()
1069 ASSERT(exponent->GetLength() > 0); in Exponentiate()
1070 if (exponent->IsZero()) { in Exponentiate()
1076 uint32_t expValue = exponent->GetDigit(0); in Exponentiate()
1083 if (exponent->GetLength() > 1) { in Exponentiate()
1550 JSHandle<BigInt> exponent = Uint64ToBigInt(thread, bit); in AsUintN() local
1555 JSHandle<BigInt> tValue = Exponentiate(thread, base, exponent); in AsUintN()
1572 JSHandle<BigInt> exponent = Int64ToBigInt(thread, bit - 1); in AsintN() local
[all …]
Djs_tagged_value_internals.h25 // Every double with all of its exponent bits set and its highest mantissa bit set is a quiet NaN.
Djs_bigint.h66 … JSHandle<BigInt> Exponentiate(JSThread *thread, JSHandle<BigInt> base, JSHandle<BigInt> exponent);
/arkcompiler/ets_frontend/ets2panda/lexer/token/
Dnumber.cpp25 …if ((flags & (NumberFlags::DECIMAL_POINT | NumberFlags::EXPONENT)) == std::underlying_type_t<Token… in Number()
Dnumber.h30 EXPONENT = 1U << 2U, enumerator
/arkcompiler/runtime_core/static_core/plugins/ets/compiler/
Dir_build_intrinsics_ets.cpp31 exponent mask is 0xff (8 bits) for floats and 0x7ff (11 bits) for doubles
/arkcompiler/ets_frontend/es2panda/util/
Dhelpers.cpp169 int32_t exponent = atoi(sciNotationArray + significandBitCount + 1 + (significandBitCount > 1)); in GetScientificNotationForDouble() local
170 numberBitCount = exponent + 1; in GetScientificNotationForDouble()
216 …fic notation, number is expressed in the form of significand multiplied by exponent-th power of 10. in DoubleToString()
218 // Scientific notation of number: sciNotationArray = significand * (10 ** exponent) in DoubleToString()
219 // number 1.23e25 => sciNotationArray: 1.23e+25, significand: 1.23, exponent: 25, in DoubleToString()
/arkcompiler/runtime_core/bytecode_optimizer/
Dtagged_value.h27 // Every double with all of its exponent bits set and its highest mantissa bit set is a quiet NaN.
/arkcompiler/runtime_core/static_core/compiler/tests/
Dencoder_test_common.h68 // Max and min exponent on the basus of two float and double
/arkcompiler/ets_runtime/ecmascript/builtins/
Dbuiltins_math.h62 V("pow", Pow, 2, MathPow) /* Math.pow ( base, exponent ) */ \
/arkcompiler/runtime_core/static_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);
/arkcompiler/runtime_core/static_core/runtime/include/coretypes/
Dtagged_value.h48 // 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/runtime_core/static_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.

123