Home
last modified time | relevance | path

Searched full:longvalue (Results 1 – 25 of 27) sorted by relevance

12

/arkcompiler/runtime_core/static_core/plugins/ets/tests/ets-templates/06.contexts_and_conversions/05.implicit_conversions/02.widening_primitive_conversions/
Dlongtofloat.ets24 function longToFloat(longValue: bigint): number {
25 if (!isLong(longValue)) {
28 return Number(longValue);
32 let longValue: bigint = BigInt("9223372036854775807");
33 let floatValue: number = longToFloat(longValue);
34 console.log(`raw value (long): ${longValue}`);
Dlongtodouble.ets24 function longToDouble(longValue: bigint): number {
25 if (!isLong(longValue)) {
28 return Number(longValue);
32 let longValue: bigint = BigInt("9223372036854775807");
33 let doubleValue: number = longToDouble(longValue);
34 console.log(`raw value (long): ${longValue}`);
Dchartolong.ets21 let longValue: bigint = BigInt(ch.charCodeAt(0));
25 if (longValue === expectedLongValue) {
28 console.error(`Test failed! Expected ${expectedLongValue}, but got ${longValue}`);
Dshorttolong.ets37 let longValue: bigint = shortToLong(shortValue);
39 console.log(`Converted value (long): ${longValue}`);
41 if (isLong(longValue)) {
Dinttolong.ets37 let longValue: bigint = intToLong(intValue);
39 console.log(`Converted value (long): ${longValue}`);
41 if (isLong(longValue)) {
/arkcompiler/runtime_core/static_core/plugins/ets/tests/interop_js/tests/arkts_esvalue/ts_to_ets/
Dts_arkts_esvalue.ets21 const longValue: long = 0x12345678;
24 if( nativePtr === longValue){
31 const longValue: long = 0x12345678;
35 if( nativePtr === longValue){
/arkcompiler/runtime_core/static_core/plugins/ets/tests/ani/tests/var_ops/
Dvariable_set_value_long_test.cpp38 ASSERT_EQ(env_->Namespace_FindVariable(ns_, "longValue", &variable), ANI_OK); in TEST_F()
53 ASSERT_EQ(env_->Namespace_FindVariable(ns_, "longValue", &variable), ANI_OK); in TEST_F()
78 ASSERT_EQ(env_->Namespace_FindVariable(ns_, "longValue", &variable), ANI_OK); in TEST_F()
118 ASSERT_EQ(env_->Namespace_FindVariable(ns_, "longValue", &variable), ANI_OK); in TEST_F()
137 ASSERT_EQ(env_->Namespace_FindVariable(ns_, "longValue", &variable1), ANI_OK); in TEST_F()
160 ASSERT_EQ(env_->Namespace_FindVariable(ns_, "longValue", &variable1), ANI_OK); in TEST_F()
183 ASSERT_EQ(env_->Namespace_FindVariable(ns_, "longValue", &variable), ANI_OK); in TEST_F()
Dvariable_set_value_long_test.ets17 export let longValue: long = 3;
/arkcompiler/runtime_core/static_core/plugins/ets/tests/ani/tests/object_ops/
Dobject_set_field_long_test.cpp46 ani_long longValue = 8L; in TEST_F() local
55 ASSERT_EQ(env_->Object_SetField_Long(pack, fieldLong, longValue), ANI_OK); in TEST_F()
57 …tsFunction<ani_boolean>("object_set_field_long_test", "checkLongValue", pack, ani_long(longValue)), in TEST_F()
62 ASSERT_EQ(value, longValue); in TEST_F()
/arkcompiler/ets_frontend/es2panda/test/bytecode_file_size_comparison/test_cases/ts/
DBasicDataTypesTest.ts20 const longValue: bigint = 1234567890123456789n; constant
36 console.log('Long value: ' + longValue);
/arkcompiler/ets_frontend/es2panda/test/bytecode_file_size_comparison/test_cases/js/
DBasicDataTypesTest.js20 const longValue = 1234567890123456789n; constant
36 console.log('Long value: ' + longValue);
/arkcompiler/ets_frontend/es2panda/test/bytecode_file_size_comparison/test_cases/java_test_framework/java_cases/
DBasicDataTypesTest.java27 long longValue = 1234567890123456789L; in main() local
43 System.out.println("Long value: " + longValue); in main()
/arkcompiler/runtime_core/static_core/plugins/ets/tests/ani/tests/class_ops/
Dclass_get_static_field_by_name_long_test.cpp153 ani_long longValue {}; in TEST_F() local
155 ASSERT_EQ(env_->Class_GetStaticFieldByName_Long(cls, "agex", &longValue), ANI_NOT_FOUND); in TEST_F()
158 ASSERT_EQ(env_->Class_GetStaticFieldByName_Long(cls, "age", &longValue), ANI_OK); in TEST_F()
Dclass_set_static_field_by_name_long_test.cpp152 const ani_long longValue = 10; in TEST_F() local
154 ASSERT_EQ(env_->Class_SetStaticFieldByName_Long(cls, "long_valuex", longValue), ANI_NOT_FOUND); in TEST_F()
157 ASSERT_EQ(env_->Class_SetStaticFieldByName_Long(cls, "long_value", longValue), ANI_OK); in TEST_F()
Dclass_set_static_field_long_test.cpp172 const ani_long longValue = 20L; in TEST_F() local
173 ASSERT_EQ(env_->Class_SetStaticField_Long(cls, field, longValue), ANI_OK); in TEST_F()
Dclass_get_static_field_long_test.cpp186 ani_long longValue {}; in TEST_F() local
187 ASSERT_EQ(env_->Class_GetStaticField_Long(cls, field, &longValue), ANI_OK); in TEST_F()
/arkcompiler/runtime_core/static_core/plugins/ets/stdlib/std/core/
DValue.ets160 return new LongValue(LongType.VAL, v)
194 return new LongValue(LongType.REF, o as Long)
330 return new LongValue(ft as LongType, ValueAPIGetFieldLong(this.data, i))
358 return new LongValue(ft as LongType, ValueAPIGetFieldByNameLong(this.data, name))
400 } else if (ft instanceof LongType && val instanceof LongValue) {
401 ValueAPISetFieldByNameLong(this.data, name, (val as LongValue).getValueData())
416 } else if (ft instanceof DoubleType && val instanceof LongValue) {
426 } else if (ft instanceof FloatType && val instanceof LongValue) {
490 } else if (ft instanceof LongType && val instanceof LongValue) {
491 ValueAPISetFieldLong(this.data, i, (val as LongValue).getValueData())
[all …]
/arkcompiler/runtime_core/static_core/plugins/ets/tests/runtime/types/
Dets_to_string_cache_test.cpp307 auto longValue = (static_cast<uint64_t>(dis(engine)) << BITS_PER_UINT32) | dis(engine); in TEST_F() local
308 auto value = bit_cast<double>(longValue); in TEST_F()
326 << "long: " << std::hex << longValue << "\n" in TEST_F()
344 auto longValue = (static_cast<uint64_t>(dis(engine)) << BITS_PER_UINT32) | dis(engine); in TEST_F() local
345 auto value = bit_cast<double>(longValue); in TEST_F()
362 << "long: " << std::hex << longValue << "\n" in TEST_F()
/arkcompiler/runtime_core/static_core/plugins/ets/tools/declgen_ts2sts/utils/lib/
DTypeUtils.ts110 'LongValue',
/arkcompiler/runtime_core/static_core/plugins/ets/tests/ets_func_tests/escompat/
DJsonTest.ets452 longValue: long = 1;
460 …let text:string = `{\"integerValue\":12, \"longValue\": 2, \"appname\": \"test\", \"shortValue\":3…
464 assertEQ(parsingResult.longValue, 2)
/arkcompiler/ets_runtime/ecmascript/builtins/tests/
Dbuiltins_date_time_format_second_test.cpp269 JSHandle<JSTaggedValue> longValue(factory->NewFromASCII("long")); in JSDateTimeFormatForObj_002() local
290 JSObject::SetProperty(thread, optionsObj, key, longValue); in JSDateTimeFormatForObj_002()
/arkcompiler/runtime_core/static_core/docs/
Dfile_format.md756 #### LongValue subsubsection
1204 | `Long` | `0x01` | The corresponding argument has [LongValue](#longvalue) enc…
/arkcompiler/runtime_core/docs/
Dfile_format.md649 #### LongValue subsubsection
1020 | `Long` | `0x01` | The corresponding argument has [LongValue](#longvalue) enc…
/arkcompiler/runtime_core/tests/cts-generator/cts-template/
Dinitobj.short.yaml671 .function i64 panda.Long.longValue(panda.Long a0) <external>
674 initobj.short panda.Long.longValue
680 .function i64 panda.Long.longValue(panda.Long a0) <external>
686 initobj.short panda.Long.longValue, v1
Dinitobj.yaml738 .function i64 panda.Long.longValue(panda.Long a0) <external>
741 initobj panda.Long.longValue
747 .function i64 panda.Long.longValue(panda.Long a0) <external>
753 initobj panda.Long.longValue, v1

12