Home
last modified time | relevance | path

Searched refs:TruncateDouble (Results 1 – 13 of 13) sorted by relevance

/arkcompiler/ets_runtime/ecmascript/base/tests/
Dnumber_helper_test.cpp211 HWTEST_F_L0(NumberHelperTest, TruncateDouble) in HWTEST_F_L0() argument
213 EXPECT_EQ(NumberHelper::TruncateDouble(NAN_VALUE), 0); in HWTEST_F_L0()
214 EXPECT_EQ(NumberHelper::TruncateDouble(POSITIVE_INFINITY), POSITIVE_INFINITY); in HWTEST_F_L0()
216 EXPECT_EQ(NumberHelper::TruncateDouble(4.1), 4); in HWTEST_F_L0()
217 EXPECT_EQ(NumberHelper::TruncateDouble(4.9), 4); in HWTEST_F_L0()
218 EXPECT_EQ(NumberHelper::TruncateDouble(101.111), 101); in HWTEST_F_L0()
219 EXPECT_EQ(NumberHelper::TruncateDouble(101.999), 101); in HWTEST_F_L0()
221 EXPECT_EQ(NumberHelper::TruncateDouble(-4.1), -4); in HWTEST_F_L0()
222 EXPECT_EQ(NumberHelper::TruncateDouble(-4.9), -4); in HWTEST_F_L0()
223 EXPECT_EQ(NumberHelper::TruncateDouble(-101.111), -101); in HWTEST_F_L0()
[all …]
/arkcompiler/ets_runtime/ecmascript/
Djs_date.cpp136 double hourInteger = NumberHelper::TruncateDouble(hour); in MakeTime()
137 double minInteger = NumberHelper::TruncateDouble(min); in MakeTime()
138 double secInteger = NumberHelper::TruncateDouble(sec); in MakeTime()
139 double msInteger = NumberHelper::TruncateDouble(ms); in MakeTime()
150 double yearInteger = NumberHelper::TruncateDouble(year); in MakeDay()
151 double monthInteger = NumberHelper::TruncateDouble(month); in MakeDay()
162 return static_cast<double>(days - 1) + NumberHelper::TruncateDouble(date); in MakeDay()
182 return NumberHelper::TruncateDouble(time); in TimeClip()
547 year = NumberHelper::TruncateDouble(year); in UTC()
884 date[firstValue + i] = NumberHelper::TruncateDouble(temp); in SetDateValue()
Djs_tagged_value-inl.h204 return JSTaggedNumber(base::NumberHelper::TruncateDouble(number.GetNumber())); in ToInteger()
Djs_tagged_value.cpp988 double len = base::NumberHelper::TruncateDouble(integerIndex.GetNumber()); in ToIndex()
/arkcompiler/ets_runtime/ecmascript/base/
Dnumber_helper.h102 static double TruncateDouble(double d);
Darray_helper.cpp237 tempArgs.start = base::NumberHelper::TruncateDouble(targetIndexTemp.GetNumber()); in FlattenIntoArray()
Dnumber_helper.cpp416 double NumberHelper::TruncateDouble(double d) in TruncateDouble() function in panda::ecmascript::base::NumberHelper
/arkcompiler/ets_runtime/ecmascript/builtins/
Dbuiltins_atomics.cpp264 c = base::NumberHelper::TruncateDouble(countTemp.GetNumber()); in Notify()
Dbuiltins_array.cpp1160 fromIndex = base::NumberHelper::TruncateDouble(fromIndexTemp.GetNumber()); in IndexOf()
1346 fromIndex = base::NumberHelper::TruncateDouble(fromIndexTemp.GetNumber()); in LastIndexOf()
2782 depthNum = base::NumberHelper::TruncateDouble(fromIndexTemp.GetNumber()); in Flat()
2870 fromIndex = base::NumberHelper::TruncateDouble(fromIndexTemp.GetNumber()); in Includes()
/arkcompiler/ets_runtime/ecmascript/stubs/
Druntime_stubs.cpp523 …std::isfinite(doubleExponent) && base::NumberHelper::TruncateDouble(doubleExponent) == doubleExpon… in DEF_RUNTIME_STUBS()
524 base::NumberHelper::TruncateDouble(doubleExponent / 2) + base::HALF == // 2 : half in DEF_RUNTIME_STUBS()
Druntime_stubs-inl.h95 …std::isfinite(doubleExponent) && base::NumberHelper::TruncateDouble(doubleExponent) == doubleExpon… in RuntimeExp()
96 …base::NumberHelper::TruncateDouble(doubleExponent / 2) + base::HALF == (doubleExponent / 2)) { //… in RuntimeExp()
/arkcompiler/ets_runtime/ecmascript/interpreter/
Dinterpreter-inl.h2111 bool truncEqual = base::NumberHelper::TruncateDouble(doubleExponent) == doubleExponent; in RunInternal()
2112 … bool halfTruncEqual = (base::NumberHelper::TruncateDouble(doubleExponent / 2) + base::HALF) == in RunInternal()
Dinterpreter_assembly.cpp1501 bool truncEqual = base::NumberHelper::TruncateDouble(doubleExponent) == doubleExponent; in HandleExpImm8V8()
1502 … bool halfTruncEqual = (base::NumberHelper::TruncateDouble(doubleExponent / 2) + base::HALF) == in HandleExpImm8V8()