| /arkcompiler/ets_runtime/ecmascript/base/ |
| D | dtoa_helper.cpp | 295 void DtoaHelper::FillFractionals(uint64_t fractionals, int exponent, int fractional_count, in FillFractionals() argument 298 ASSERT(NEGATIVE_128BIT <= exponent && exponent <= 0); in FillFractionals() 300 // (-exponent). Inside the function the non-converted remainder of fractionals in FillFractionals() 302 if (-exponent <= EXPONENT_64) { in FillFractionals() 305 int point = -exponent; in FillFractionals() 320 ASSERT(EXPONENT_64 < -exponent && -exponent <= EXPONENT_128); in FillFractionals() 322 fractionals128.Shift(-exponent - EXPONENT_64); in FillFractionals() 372 int exponent = NumberHelper::Exponent(v); in FixedDtoa() local 373 if (exponent > 20) return false; // 20: max parameter in FixedDtoa() 376 if (exponent + kDoubleSignificandSize > EXPONENT_64) { in FixedDtoa() [all …]
|
| D | number_helper.cpp | 228 while (Exponent(integer / radix) > 0) { in DoubleToString() 977 int exponent = 0; in StringToDouble() local 991 ++exponent; in StringToDouble() 1010 return number * std::pow(radix, exponent); in StringToDouble() 1014 exponent = 0; in StringToDouble() 1017 (number * std::pow(radix, exponent)) : NAN_VALUE); in StringToDouble() 1019 --exponent; in StringToDouble() 1039 // 10. parse exponent number in StringToDouble() 1056 exponent += (exponentSign == '-' ? -additionalExponent : additionalExponent); in StringToDouble() 1073 return Strtod(buffer.c_str(), exponent, radix); in StringToDouble() [all …]
|
| D | number_helper.h | 86 // Exponent bits for double value between [1.0, 2.0) 135 static int inline Exponent(double x) function 193 static double Strtod(const char *str, int exponent, uint8_t radix);
|
| D | dtoa_helper.h | 167 …/ 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/ |
| D | builtinMathPow.ts | 35 // 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/ |
| D | std_math.cpp | 52 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/ |
| D | spec_example.sts | 23 function power(base: number, exponent: number): number { 24 return Math.pow(base, exponent)
|
| /arkcompiler/runtime_core/static_core/plugins/ets/runtime/intrinsics/helpers/ |
| D | ets_intrinsics_helpers.h | 72 uint16_t exponent : coretypes::DOUBLE_EXPONENT_SIZE; member 106 inline double PowHelper(uint64_t number, int16_t exponent, uint8_t radix) in PowHelper() argument 110 double expRem = log2Radix * exponent; in PowHelper() 118 expI = u.bits.exponent + expI; in PowHelper() 127 u.bits.exponent = 0; in PowHelper() 132 u.bits.exponent = expI; in PowHelper() 184 inline double Strtod(const char *str, int exponent, uint8_t radix) in Strtod() argument 208 ++exponent; in Strtod() 212 if (exponent < 0) { in Strtod() 213 result = number / std::pow(radix, -exponent); in Strtod() [all …]
|
| D | ets_intrinsics_helpers.cpp | 181 int exponent = 0; in StringToDouble() local 195 ++exponent; in StringToDouble() 214 return number * std::pow(radix, exponent); in StringToDouble() 219 …RETURN_IF_CONVERSION_END(++p, end, (digits > 0) ? (number * std::pow(radix, exponent)) : NAN_VALUE… in StringToDouble() 221 --exponent; in StringToDouble() 241 exponent += parseExponentResult.value; in StringToDouble() 259 return Strtod(buffer.c_str(), exponent, radix); in StringToDouble() 424 // exponent in GetBase() 457 // exponent in GetBaseFast()
|
| D | dtoa_helper.h | 80 …/ DiyFp is a floating-point number type, consists of a uint64 significand and one integer exponent.
|
| /arkcompiler/ets_runtime/ecmascript/ |
| D | js_bigint.cpp | 1056 …le<BigInt> BigInt::Exponentiate(JSThread *thread, JSHandle<BigInt> base, JSHandle<BigInt> exponent) in Exponentiate() argument 1058 if (exponent->GetSign()) { in Exponentiate() 1060 THROW_RANGE_ERROR_AND_RETURN(thread, "Exponent must be positive", bigint); in Exponentiate() 1062 ASSERT(exponent->GetLength() > 0); in Exponentiate() 1063 if (exponent->IsZero()) { in Exponentiate() 1069 uint32_t expValue = exponent->GetDigit(0); in Exponentiate() 1076 if (exponent->GetLength() > 1) { in Exponentiate() 1543 JSHandle<BigInt> exponent = Uint64ToBigInt(thread, bit); in AsUintN() local 1548 JSHandle<BigInt> tValue = Exponentiate(thread, base, exponent); in AsUintN() 1565 JSHandle<BigInt> exponent = Int64ToBigInt(thread, bit - 1); in AsintN() local [all …]
|
| D | js_tagged_value_internals.h | 25 // Every double with all of its exponent bits set and its highest mantissa bit set is a quiet NaN.
|
| D | js_bigint.h | 65 … JSHandle<BigInt> Exponentiate(JSThread *thread, JSHandle<BigInt> base, JSHandle<BigInt> exponent);
|
| /arkcompiler/ets_frontend/ets2panda/lexer/token/ |
| D | number.cpp | 29 if ((flags & (NumberFlags::DECIMAL_POINT | NumberFlags::EXPONENT)) == 0) { in Number()
|
| D | number.h | 35 EXPONENT = 1U << 2U, enumerator
|
| /arkcompiler/runtime_core/static_core/plugins/ets/compiler/ |
| D | ir_build_intrinsics_ets.cpp | 31 exponent mask is 0xff (8 bits) for floats and 0x7ff (11 bits) for doubles
|
| /arkcompiler/ets_frontend/es2panda/util/ |
| D | helpers.cpp | 182 int32_t exponent = atoi(sciNotationArray + significandBitCount + 1 + (significandBitCount > 1)); in GetScientificNotationForDouble() local 183 numberBitCount = exponent + 1; in GetScientificNotationForDouble() 229 …fic notation, number is expressed in the form of significand multiplied by exponent-th power of 10. in DoubleToString() 231 // Scientific notation of number: sciNotationArray = significand * (10 ** exponent) in DoubleToString() 232 // number 1.23e25 => sciNotationArray: 1.23e+25, significand: 1.23, exponent: 25, in DoubleToString()
|
| /arkcompiler/runtime_core/bytecode_optimizer/ |
| D | tagged_value.h | 27 // 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/ |
| D | encoder_test_common.h | 67 // Max and min exponent on the basus of two float and double
|
| /arkcompiler/ets_runtime/ecmascript/builtins/ |
| D | builtins_math.h | 62 V("pow", Pow, 2, MathPow) /* Math.pow ( base, exponent ) */ \
|
| /arkcompiler/runtime_core/static_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);
|
| /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/runtime_core/static_core/runtime/include/coretypes/ |
| D | tagged_value.h | 48 // Every double with all of its exponent bits set and its highest mantissa bit set is a quiet NaN.
|
| /arkcompiler/runtime_core/static_core/plugins/ets/doc/spec/ |
| D | 4_names.rst | 1004 function power(base: number, exponent: number): number { 1005 return Math.pow(base, exponent)
|