Home
last modified time | relevance | path

Searched refs:DoubleToInt (Results 1 – 21 of 21) sorted by relevance

/arkcompiler/ets_runtime/ecmascript/base/tests/
Dnumber_helper_test.cpp238 EXPECT_EQ(NumberHelper::DoubleToInt(9.0, INT8_BITS), 9); in HWTEST_F_L0()
239 EXPECT_EQ(NumberHelper::DoubleToInt(9.5555555555555559, INT8_BITS), 9); in HWTEST_F_L0()
240 EXPECT_EQ(NumberHelper::DoubleToInt(9.9999999999999999, INT8_BITS), 10); in HWTEST_F_L0()
241 EXPECT_EQ(NumberHelper::DoubleToInt(128.123456, INT8_BITS), 128); in HWTEST_F_L0()
242 EXPECT_EQ(NumberHelper::DoubleToInt(-128.987654321, INT8_BITS), -128); in HWTEST_F_L0()
245 EXPECT_EQ(NumberHelper::DoubleToInt(256.0, INT8_BITS), 0); in HWTEST_F_L0()
246 EXPECT_EQ(NumberHelper::DoubleToInt(-256.0, INT8_BITS), 0); in HWTEST_F_L0()
249 EXPECT_EQ(NumberHelper::DoubleToInt(nanDouble, INT8_BITS), 0); in HWTEST_F_L0()
251 EXPECT_EQ(NumberHelper::DoubleToInt(infDouble, INT8_BITS), 0); in HWTEST_F_L0()
256 EXPECT_EQ(NumberHelper::DoubleToInt(256.0, INT16_BITS), 256); in HWTEST_F_L0()
[all …]
/arkcompiler/ets_runtime/ecmascript/
Djs_tagged_number.h59 return base::NumberHelper::DoubleToInt(GetDouble(), base::INT32_BITS); in ToInt32()
69 return base::NumberHelper::DoubleToInt(GetNumber(), base::INT16_BITS); in ToInt16()
79 return base::NumberHelper::DoubleToInt(GetNumber(), base::INT8_BITS); in ToInt8()
Djs_tagged_value-inl.h211 return base::NumberHelper::DoubleToInt(number.GetNumber(), base::INT32_BITS); in ToInt32()
224 return base::NumberHelper::DoubleToInt(number.GetNumber(), base::INT16_BITS); in ToInt16()
237 return base::NumberHelper::DoubleToInt(number.GetNumber(), base::INT8_BITS); in ToInt8()
1457 … uint32_t index = static_cast<uint32_t>(base::NumberHelper::DoubleToInt(d, base::INT32_BITS)); in ToElementIndex()
Djs_tagged_value.cpp115 int32_t intvalue = base::NumberHelper::DoubleToInt(doubleValue, base::INT32_BITS); in WithinInt32()
/arkcompiler/ets_runtime/ecmascript/compiler/
Doperations_stub_builder.cpp689 opNumber1 = DoubleToInt(glue, rightDouble); in Shl()
702 opNumber0 = DoubleToInt(glue, leftDouble); in Shl()
711 opNumber0 = DoubleToInt(glue, leftDouble); in Shl()
712 opNumber1 = DoubleToInt(glue, rightDouble); in Shl()
782 opNumber1 = DoubleToInt(glue, rightDouble); in Shr()
795 opNumber0 = DoubleToInt(glue, leftDouble); in Shr()
804 opNumber0 = DoubleToInt(glue, leftDouble); in Shr()
805 opNumber1 = DoubleToInt(glue, rightDouble); in Shr()
884 opNumber1 = DoubleToInt(glue, rightDouble); in Ashr()
897 opNumber0 = DoubleToInt(glue, leftDouble); in Ashr()
[all …]
Dcall_signature.h426 V(DoubleToInt) \
Dlcr_lowering.cpp495 return builder_.DoubleToInt(gate, exit); in ConvertFloat64ToInt32()
522 return builder_.DoubleToInt(builder_.GetDoubleOfTDouble(gate), exit); in ConvertTaggedDoubleToInt32()
Dcircuit_builder-inl.h164 GateRef CircuitBuilder::DoubleToInt(GateRef x, Label *exit) in DoubleToInt() function
182 result = CallNGCRuntime(acc_.GetGlueFromArgList(), RTSTUB_ID(DoubleToInt), in DoubleToInt()
Dstub_builder.h473 GateRef DoubleToInt(GateRef glue, GateRef x);
Dcircuit_builder.h451 inline GateRef DoubleToInt(GateRef x, Label *exit);
Dcall_signature.cpp1666 DEF_CALL_SIGNATURE(DoubleToInt) in DEF_CALL_SIGNATURE() argument
Dstub_builder.cpp5013 GateRef StubBuilder::DoubleToInt(GateRef glue, GateRef x) in DoubleToInt() function in panda::ecmascript::kungfu::StubBuilder
5039 result = CallNGCRuntime(glue, RTSTUB_ID(DoubleToInt), { x }); in DoubleToInt()
6192 result = DoubleToInt(glue, GetDoubleOfTDouble(len)); in GetLengthOfJsArray()
6258 GateRef int32Len = DoubleToInt(glue, doubleLen); in CreateListFromArrayLike()
/arkcompiler/ets_runtime/ecmascript/base/
Dnumber_helper.h105 static int32_t DoubleToInt(double d, size_t bits);
Dnumber_helper.cpp664 int32_t NumberHelper::DoubleToInt(double d, size_t bits) in DoubleToInt() function in panda::ecmascript::base::NumberHelper
697 return base::NumberHelper::DoubleToInt(d, base::INT32_BITS); in DoubleInRangeInt32()
/arkcompiler/ets_runtime/ecmascript/compiler/builtins/
Dbuiltins_stubs.cpp188 pos = DoubleToInt(glue, GetDoubleOfTDouble(posTag)); in DECLARE_BUILTINS()
267 pos = DoubleToInt(glue, GetDoubleOfTDouble(posTag)); in DECLARE_BUILTINS()
383 start = DoubleToInt(glue, GetDoubleOfTDouble(startTag)); in DECLARE_BUILTINS()
404 end = DoubleToInt(glue, GetDoubleOfTDouble(endTag)); in DECLARE_BUILTINS()
530 pos = DoubleToInt(glue, GetDoubleOfTDouble(posTag)); in DECLARE_BUILTINS()
1153 GateRef doubleToInt = DoubleToInt(glue, doubleLength); in DECLARE_BUILTINS()
/arkcompiler/ets_runtime/ecmascript/ic/
Dic_binary_op.h265 … base::NumberHelper::DoubleToInt(left.GetDouble(), base::INT32_BITS); in GetBitOPDate()
268 … base::NumberHelper::DoubleToInt(right.GetDouble(), base::INT32_BITS); in GetBitOPDate()
/arkcompiler/ets_runtime/ecmascript/stubs/
Druntime_stubs.h110 V(DoubleToInt) \
371 static int32_t DoubleToInt(double x);
Druntime_stubs.cpp2182 int32_t RuntimeStubs::DoubleToInt(double x) in DoubleToInt() function in panda::ecmascript::RuntimeStubs
2184 return base::NumberHelper::DoubleToInt(x, base::INT32_BITS); in DoubleToInt()
/arkcompiler/ets_runtime/ecmascript/interpreter/
Dinterpreter-inl.h1914 …left.IsInt() ? left.GetInt() : base::NumberHelper::DoubleToInt(left.GetDouble(), base::INT32_BITS); in RunInternal()
1916 …right.IsInt() ? right.GetInt() : base::NumberHelper::DoubleToInt(right.GetDouble(), base::INT32_BI… in RunInternal()
1951 …left.IsInt() ? left.GetInt() : base::NumberHelper::DoubleToInt(left.GetDouble(), base::INT32_BITS); in RunInternal()
1953 …right.IsInt() ? right.GetInt() : base::NumberHelper::DoubleToInt(right.GetDouble(), base::INT32_BI… in RunInternal()
1986 …left.IsInt() ? left.GetInt() : base::NumberHelper::DoubleToInt(left.GetDouble(), base::INT32_BITS); in RunInternal()
1988 …right.IsInt() ? right.GetInt() : base::NumberHelper::DoubleToInt(right.GetDouble(), base::INT32_BI… in RunInternal()
2018 …left.IsInt() ? left.GetInt() : base::NumberHelper::DoubleToInt(left.GetDouble(), base::INT32_BITS); in RunInternal()
2020 …right.IsInt() ? right.GetInt() : base::NumberHelper::DoubleToInt(right.GetDouble(), base::INT32_BI… in RunInternal()
2049 …left.IsInt() ? left.GetInt() : base::NumberHelper::DoubleToInt(left.GetDouble(), base::INT32_BITS); in RunInternal()
2051 …right.IsInt() ? right.GetInt() : base::NumberHelper::DoubleToInt(right.GetDouble(), base::INT32_BI… in RunInternal()
[all …]
Dinterpreter_assembly.cpp709 number = base::NumberHelper::DoubleToInt(value.GetDouble(), base::INT32_BITS); in HandleNotImm8()
1264 …left.IsInt() ? left.GetInt() : base::NumberHelper::DoubleToInt(left.GetDouble(), base::INT32_BITS); in HandleShl2Imm8V8()
1266 …right.IsInt() ? right.GetInt() : base::NumberHelper::DoubleToInt(right.GetDouble(), base::INT32_BI… in HandleShl2Imm8V8()
1304 …left.IsInt() ? left.GetInt() : base::NumberHelper::DoubleToInt(left.GetDouble(), base::INT32_BITS); in HandleShr2Imm8V8()
1306 …right.IsInt() ? right.GetInt() : base::NumberHelper::DoubleToInt(right.GetDouble(), base::INT32_BI… in HandleShr2Imm8V8()
1342 …left.IsInt() ? left.GetInt() : base::NumberHelper::DoubleToInt(left.GetDouble(), base::INT32_BITS); in HandleAshr2Imm8V8()
1344 …right.IsInt() ? right.GetInt() : base::NumberHelper::DoubleToInt(right.GetDouble(), base::INT32_BI… in HandleAshr2Imm8V8()
1378 …left.IsInt() ? left.GetInt() : base::NumberHelper::DoubleToInt(left.GetDouble(), base::INT32_BITS); in HandleAnd2Imm8V8()
1380 …right.IsInt() ? right.GetInt() : base::NumberHelper::DoubleToInt(right.GetDouble(), base::INT32_BI… in HandleAnd2Imm8V8()
1413 …left.IsInt() ? left.GetInt() : base::NumberHelper::DoubleToInt(left.GetDouble(), base::INT32_BITS); in HandleOr2Imm8V8()
[all …]
/arkcompiler/ets_runtime/ecmascript/builtins/
Dbuiltins_string.cpp1969 return base::NumberHelper::DoubleToInt(d, base::INT32_BITS); in ConvertDoubleToInt()