Home
last modified time | relevance | path

Searched refs:DoubleToInt64 (Results 1 - 8 of 8) sorted by relevance

/arkcompiler/ets_runtime/ecmascript/base/tests/
H A Dnumber_helper_test.cpp699 * @tc.name: DoubleToInt64
700 * @tc.desc: The abstract operation DoubleToInt64 converts a double value to int64_t
704 HWTEST_F_L0(NumberHelperTest, DoubleToInt64) in HWTEST_F_L0()
706 int64_t d = NumberHelper::DoubleToInt64(std::numeric_limits<double>::max()); in HWTEST_F_L0()
709 int64_t d1 = NumberHelper::DoubleToInt64(static_cast<double>(std::numeric_limits<int64_t>::max())); in HWTEST_F_L0()
711 int64_t d2 = NumberHelper::DoubleToInt64(static_cast<double>(std::numeric_limits<int64_t>::min())); in HWTEST_F_L0()
714 int64_t d3 = NumberHelper::DoubleToInt64(static_cast<double>(std::numeric_limits<int64_t>::max()) + 1); in HWTEST_F_L0()
716 int64_t d4 = NumberHelper::DoubleToInt64(static_cast<double>(std::numeric_limits<int64_t>::min()) - 1); in HWTEST_F_L0()
719 int64_t d5 = NumberHelper::DoubleToInt64(0); in HWTEST_F_L0()
/arkcompiler/ets_runtime/ecmascript/builtins/
H A Dbuiltins_date.cpp295 std::string result = dateFormatter->Format(intl::GlobalIntlHelper::DoubleToInt64(x)); in ToLocaleString()
376 std::string result = dateFormatter->Format(intl::GlobalIntlHelper::DoubleToInt64(x)); in ToLocaleDateString()
457 std::string result = dateFormatter->Format(intl::GlobalIntlHelper::DoubleToInt64(x)); in ToLocaleTimeString()
H A Dbuiltins_string.cpp2270 int64_t intMaxLength = base::NumberHelper::DoubleToInt64(number.GetNumber()); in Pad()
/arkcompiler/ets_runtime/ecmascript/intl/
H A Dglobal_intl_helper.h175 static int64_t DoubleToInt64(double value);
H A Dglobal_intl_helper.cpp195 int64_t GlobalIntlHelper::DoubleToInt64(double value) in DoubleToInt64() function in panda::ecmascript::intl::GlobalIntlHelper
/arkcompiler/ets_runtime/ecmascript/
H A Djs_bigint.cpp1536 int64_t bit = base::NumberHelper::DoubleToInt64(number.GetNumber()); in AsUintN()
1557 int64_t bit = base::NumberHelper::DoubleToInt64(number.GetNumber()); in AsintN()
/arkcompiler/ets_runtime/ecmascript/base/
H A Dnumber_helper.cpp822 int64_t NumberHelper::DoubleToInt64(double d)
/arkcompiler/ets_runtime/ecmascript/napi/
H A Djsnapi_expo.cpp254 return NumberHelper::DoubleToInt64(tagged->GetNumber()); in IntegerValue()
259 return NumberHelper::DoubleToInt64(number.GetNumber()); in IntegerValue()
343 return NumberHelper::DoubleToInt64(getVale); in GetValueInt64()

Completed in 26 milliseconds