| /arkcompiler/ets_runtime/ecmascript/base/ |
| D | dtoa_helper.cpp | 301 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 …]
|
| D | number_helper.cpp | 226 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 …]
|
| D | number_helper.h | 86 // 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);
|
| 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 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 …]
|
| D | ets_intrinsics_helpers.cpp | 183 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()
|
| 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 | 1063 …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 …]
|
| 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 | 66 … JSHandle<BigInt> Exponentiate(JSThread *thread, JSHandle<BigInt> base, JSHandle<BigInt> exponent);
|
| /arkcompiler/ets_frontend/ets2panda/lexer/token/ |
| D | number.cpp | 25 …if ((flags & (NumberFlags::DECIMAL_POINT | NumberFlags::EXPONENT)) == std::underlying_type_t<Token… in Number()
|
| D | number.h | 30 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 | 169 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/ |
| 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 | 68 // 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/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/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/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.
|