Home
last modified time | relevance | path

Searched full:sign (Results 1 – 25 of 307) sorted by relevance

12345678910>>...13

/arkcompiler/runtime_core/static_core/plugins/ets/tests/ets-templates/07.expressions/33.constant_expression/check_array/
Dconstant_calculation.params.yaml15 - { type: byte, value: 26, sign: '*', expected: 260 }
16 - { type: byte, value: 26, sign: '/', expected: 2 }
17 - { type: byte, value: 26, sign: '%', expected: 6 }
18 - { type: byte, value: 26, sign: '+', expected: 36 }
19 - { type: byte, value: 26, sign: '-', expected: 16 }
21 - { type: short, value: 26, sign: '*', expected: 260 }
22 - { type: short, value: 260, sign: '/', expected: 26 }
23 - { type: short, value: 260, sign: '%', expected: 0 }
24 - { type: short, value: 260, sign: '+', expected: 270 }
25 - { type: short, value: 260, sign: '-', expected: 250 }
[all …]
Dconstant_shift.params.yaml15 - { type: byte, value: 10, sign: '<<', expected: 80 }
16 - { type: byte, value: 10, sign: '>>', expected: 1 }
17 - { type: byte, value: 10, sign: '>>>', expected: 1 }
19 - { type: short, value: 20, sign: '<<', expected: 160 }
20 - { type: short, value: 20, sign: '>>', expected: 2 }
21 - { type: short, value: 20, sign: '>>>', expected: 2 }
23 - { type: char, value: c'p', sign: '<<', expected: 896 }
24 - { type: char, value: c'p', sign: '>>', expected: 14 }
25 - { type: char, value: c'p', sign: '>>>', expected: 14 }
27 - { type: int, value: 38, sign: '<<', expected: 304 }
[all …]
/arkcompiler/runtime_core/static_core/plugins/ets/tests/ets-templates/07.expressions/33.constant_expression/check_enum/
Dconstant_calculation.params.yaml15 - { type: byte, value: 26, sign: '*', expected: 260 }
16 - { type: byte, value: 26, sign: '/', expected: 2 }
17 - { type: byte, value: 26, sign: '%', expected: 6 }
18 - { type: byte, value: 26, sign: '+', expected: 36 }
19 - { type: byte, value: 26, sign: '-', expected: 16 }
21 - { type: short, value: 260, sign: '*', expected: 2600 }
22 - { type: short, value: 260, sign: '/', expected: 26 }
23 - { type: short, value: 260, sign: '%', expected: 0 }
24 - { type: short, value: 260, sign: '+', expected: 270 }
25 - { type: short, value: 260, sign: '-', expected: 250 }
[all …]
Dconstant_shift.params.yaml15 - { type: byte, value: 3, sign: '<<', expected: 24 }
16 - { type: byte, value: 26, sign: '>>', expected: 3 }
17 - { type: byte, value: 26, sign: '>>>', expected: 3 }
18 - { type: byte, value: -3, sign: '<<', expected: -24 }
19 - { type: byte, value: -26, sign: '>>', expected: -4 }
20 - { type: byte, value: -26, sign: '>>>', expected: 536870908 }
22 - { type: short, value: 8, sign: '<<', expected: 64 }
23 - { type: short, value: 260, sign: '>>', expected: 32 }
24 - { type: short, value: 260, sign: '>>>', expected: 32 }
25 - { type: short, value: -8, sign: '<<', expected: -64 }
[all …]
/arkcompiler/ets_runtime/test/aottest/builtin_inlining/math/Sign/
DbuiltinMathSign.ts26 //aot: [trace] aot inline builtin: Math.sign, caller function name:func_main_0@builtinMathSign
27 print(Math.sign(3, -0.12)) //: 1
28 //aot: [trace] aot inline builtin: Math.sign, caller function name:func_main_0@builtinMathSign
29 print(Math.sign(-3, 0.12)) //: -1
30 //aot: [trace] aot inline builtin: Math.sign, caller function name:func_main_0@builtinMathSign
31 print(Math.sign(-3, 0.12, -0.0)) //: -1
32 //aot: [trace] aot inline builtin: Math.sign, caller function name:func_main_0@builtinMathSign
33 print(Math.sign(-4, 0.12, -0.0, 0.0)) //: -1
35 //aot: [trace] aot inline builtin: Math.sign, caller function name:func_main_0@builtinMathSign
36 print(Math.sign(3)) //: 1
[all …]
/arkcompiler/runtime_core/static_core/plugins/ets/tests/ets-templates/07.expressions/33.constant_expression/check_annotation/
Dconstant_unary_operation.params.yaml15 - { type: byte, value: 16, sign: '+' }
16 - { type: short, value: 300, sign: '+' }
17 - { type: char, value: c'p', sign: '+' }
18 - { type: int, value: 3000, sign: '+' }
19 - { type: long, value: 50000, sign: '+' }
20 - { type: float, value: 120.2f, sign: '+', asInt: ' as int' }
21 - { type: number, value: 5050.9, sign: '+', asInt: ' as int' }
23 - { type: byte, value: 16, sign: '-' }
24 - { type: short, value: 300, sign: '-' }
25 - { type: int, value: 3000, sign: '-' }
[all …]
/arkcompiler/ets_runtime/ecmascript/compiler/codegen/maple/maple_util/include/
Dmpl_int_val.h27 IntVal() : value(0), width(0), sign(false) {} in IntVal()
29 IntVal(uint64 val, uint8 bitWidth, bool isSigned) : value(val), width(bitWidth), sign(isSigned) in IntVal()
40 IntVal(const IntVal &val) : IntVal(val.value, val.width, val.sign) {} in IntVal()
51 // Allow 'this' to be assigned with new bit-width and sign iff
55 // Otherwise, assign only new value, but sign and width must be the same
56 DEBUG_ASSERT(width == other.width && sign == other.sign, "different bit-width or sign");
76 sign = other.sign; in Assign()
88 return sign; in IsSigned()
91 /// @return sign or zero extended value depending on its signedness
94 return sign ? GetSXTValue(size) : GetZXTValue(size);
[all …]
/arkcompiler/runtime_core/static_core/plugins/ets/tests/ets_sdk/arkts/@arkts/math/Decimal/
DsignTests.ets25 arktest.assertEQ(Decimal.sign(Infinity), 1);
26 arktest.assertEQ(Decimal.sign(-Infinity), -1);
27 arktest.assertEQ(Decimal.sign('Infinity'), 1);
28 arktest.assertEQ(Decimal.sign('-Infinity'), -1);
30 arktest.assertTrue(Number.isNaN(Decimal.sign(NaN)));
31 arktest.assertTrue(Number.isNaN(Decimal.sign('NaN')));
32 arktest.assertTrue(1 / Decimal.sign('0') === Infinity);
33 arktest.assertTrue(1 / Decimal.sign(new Decimal('0')) === Infinity);
34 arktest.assertTrue(1 / Decimal.sign('-0') === -Infinity);
35 arktest.assertTrue(1 / Decimal.sign(new Decimal('-0')) === -Infinity);
[all …]
/arkcompiler/runtime_core/static_core/verification/
Dverification.yaml31 sign: Sign mismatch. Possible overflow/underflow issues and other quirks in data-flow.
33 sign_size: Sign and size mismatch. Possible overflow/underflow and truncation issues.
124 sign: u8
142 sign: i8
160 sign: u16
176 sign: i16
192 sign: u32
206 sign: i32
249 sign: u64
257 sign: i64
[all …]
/arkcompiler/runtime_core/static_core/plugins/ets/tests/runtime/tooling/sampler/sampler_ani/
Dcreate_vm_sampler.ets75 let sign: int = 1;
77 ret += sign / (2.0 * i + 1);
78 sign *= -1;
85 let sign: int = 1;
87 ret += sign / (2.0 * i + 1);
88 sign *= -1;
95 let sign: int = 1;
97 ret += sign / (2.0 * i + 1);
98 sign *= -1;
105 let sign: int = 1;
[all …]
/arkcompiler/runtime_core/static_core/plugins/ets/tests/runtime/tooling/sampler/managed/
DSamplerTest.ets81 let sign: int = 1;
83 ret += sign / (2.0 * i + 1);
84 sign *= -1;
91 let sign: int = 1;
93 ret += sign / (2.0 * i + 1);
94 sign *= -1;
101 let sign: int = 1;
103 ret += sign / (2.0 * i + 1);
104 sign *= -1;
111 let sign: int = 1;
[all …]
/arkcompiler/runtime_core/static_core/plugins/ets/tests/ets-templates/06.contexts_and_conversions/04.casting_contexts_and_conversions/03.casting_conversions_from_object/
Dfunc_type_from_object.params.yaml17 sign: '(a: int, b: int): int'
22 sign: '(a, b: int): string'
27 sign: '(a: int, b: int): int'
32 sign: '(a: string, b: int): string'
37 sign: '(a, b): int'
42 sign: '(a, b: int): string'
47 sign: '(a, b): int'
52 sign: '(a, b): string'
/arkcompiler/runtime_core/static_core/plugins/ets/tests/debugger/src/tests/
Dtest_profiler.py30 let sign: int = 1;
32 ret += sign / (2.0 * i + 1);
33 sign *= -1;
38 let sign: int = 1;
40 ret += sign / (2.0 * i + 1);
41 sign *= -1;
/arkcompiler/ets_runtime/ecmascript/base/
Dnumber_helper.cpp34 enum class Sign { NONE, NEG, POS }; enum
114 static inline double SignedZero(Sign sign) in SignedZero() argument
116 return sign == Sign::NEG ? -0.0 : 0.0; in SignedZero()
307 … std::string& buf1, int buf1Size, int roundingMode, int *sign) in GetBaseForRoundingMode() argument
320 *sign = (buf1[0] == '-'); in GetBaseForRoundingMode()
332 …CustomEcvtIsFixed(double &valueNumber, int &digits, int *decimalPoint, std::string& buf, int *sign) in CustomEcvtIsFixed() argument
340 …RoundingMode(valueNumber, digits, decimalPoint, buf, buffer, JS_DTOA_BUF_SIZE, FE_TONEAREST, sign); in CustomEcvtIsFixed()
354 std::string& buf, bool isFixed, int *sign) in CustomEcvt() argument
359 CustomEcvtIsFixed(valueNumber, digits, decimalPoint, buf, sign); in CustomEcvt()
382 …RoundingMode(valueNumber, digits, decimalPoint, buf, buffer, JS_DTOA_BUF_SIZE, roundingMode, sign); in CustomEcvt()
[all …]
/arkcompiler/runtime_core/static_core/plugins/ets/arkts_header/
Dheader_writer.cpp94 …riter::ProcessProtoType(panda_file::Type type, panda_file::File::EntityId klass, std::string &sign, in ProcessProtoType() argument
98 sign.append(panda_file::Type::GetSignatureByTypeId(type)); in ProcessProtoType()
102 sign.append(name); in ProcessProtoType()
115 std::string sign; in PrintPrototype() local
139 ProcessProtoType(argType, klassId, sign, args); in PrintPrototype()
144 mangledName = MangleMethodNameWithSignature(mangledName, sign); in PrintPrototype()
147 sign.append(":"); in PrintPrototype()
148 sign.append(returnSign); in PrintPrototype()
152 << " Signature: " << sign << "\n */\n" in PrintPrototype()
/arkcompiler/runtime_core/static_core/plugins/ets/stdlib/escompat/
DBigInt.ets55 private readonly sign: int
70 internal static fromLongHelper(val: long, bitLen: int, sign: int): FixedArray<int> {
82 if (sign < 0) {
95 this.sign = d < 0 ? -1 : (d == 0 ? 0 : 1)
96 …this.bytes = this.sign == 0 ? [] as FixedArray<int> : BigInt.fromLongHelper(d.toLong(), 8, this.si…
100 this.sign = d < 0 ? -1 : (d == 0 ? 0 : 1)
101 …this.bytes = this.sign == 0 ? [] as FixedArray<int> : BigInt.fromLongHelper(d.toLong(), 16, this.s…
105 this.sign = d < 0 ? -1 : (d == 0 ? 0 : 1)
106 …this.bytes = this.sign == 0 ? [] as FixedArray<int> : BigInt.fromLongHelper(d.toLong(), 32, this.s…
110 this.sign = d < 0 ? -1 : (d == 0 ? 0 : 1)
[all …]
/arkcompiler/runtime_core/static_core/plugins/ets/runtime/intrinsics/helpers/
Dets_intrinsics_helpers.cpp103 // 2. get number sign in StringToDouble()
104 Sign sign = Sign::NONE; in StringToDouble() local
107 sign = Sign::POS; in StringToDouble()
110 sign = Sign::NEG; in StringToDouble()
127 return sign == Sign::NEG ? -POSITIVE_INFINITY : POSITIVE_INFINITY; in StringToDouble()
134 RETURN_IF_CONVERSION_END(++p, end, SignedZero(sign)); in StringToDouble()
137 return ignoreTrailing ? SignedZero(sign) : NAN_VALUE; in StringToDouble()
140 if (sign != Sign::NONE) { in StringToDouble()
147 return ignoreTrailing ? SignedZero(sign) : NAN_VALUE; in StringToDouble()
150 if (sign != Sign::NONE) { in StringToDouble()
[all …]
/arkcompiler/runtime_core/tests/cts-generator/cts-template/
Dfsub2.yaml147 …The sum of two infinities of the same sign or the difference of two infinities of opposite sign is…
148 The sign of result matches the sign of accumulator value.
150 The sign of result matches the sign of infinity.
209 …The sum of two infinities of the same sign or the difference of two infinities of opposite sign is…
210 The sign of result matches the sign of accumulator value.
212 The sign of result matches the sign of infinity.
282 The sum of opposite infinities or the difference of the same sign infinities is NaN.
289 # Sub of same sign Inf-s
309 The sign of result matches the sign of infinity.
378 The sign of result matches the sign of infinity.
[all …]
Dfadd2.yaml164 …The sum of two infinities of the same sign or the difference of two infinities of opposite sign is…
165 The sign of result matches the sign of accumulator value.
167 The sign of result matches the sign of infinity.
231 …The sum of two infinities of the same sign or the difference of two infinities of opposite sign is…
232 The sign of result matches the sign of accumulator value.
234 The sign of result matches the sign of infinity.
310 The sum of opposite infinities or the difference of the same sign infinities is NaN.
336 The sign of result matches the sign of infinity.
395 The sign of result matches the sign of infinity.
456 The sign of result matches the sign of infinity.
[all …]
Dfsub2.64.yaml147 …The sum of two infinities of the same sign or the difference of two infinities of opposite sign is…
148 The sign of result matches the sign of accumulator value.
150 The sign of result matches the sign of infinity.
209 …The sum of two infinities of the same sign or the difference of two infinities of opposite sign is…
210 The sign of result matches the sign of accumulator value.
212 The sign of result matches the sign of infinity.
282 The sum of opposite infinities or the difference of the same sign infinities is NaN.
289 # Sub of same sign Inf-s
309 The sign of result matches the sign of infinity.
378 The sign of result matches the sign of infinity.
[all …]
/arkcompiler/runtime_core/static_core/tests/cts-generator/cts-template/
Dfsub2.yaml147 …The sum of two infinities of the same sign or the difference of two infinities of opposite sign is…
148 The sign of result matches the sign of accumulator value.
150 The sign of result matches the sign of infinity.
209 …The sum of two infinities of the same sign or the difference of two infinities of opposite sign is…
210 The sign of result matches the sign of accumulator value.
212 The sign of result matches the sign of infinity.
282 The sum of opposite infinities or the difference of the same sign infinities is NaN.
289 # Sub of same sign Inf-s
309 The sign of result matches the sign of infinity.
378 The sign of result matches the sign of infinity.
[all …]
Dfadd2.yaml164 …The sum of two infinities of the same sign or the difference of two infinities of opposite sign is…
165 The sign of result matches the sign of accumulator value.
167 The sign of result matches the sign of infinity.
231 …The sum of two infinities of the same sign or the difference of two infinities of opposite sign is…
232 The sign of result matches the sign of accumulator value.
234 The sign of result matches the sign of infinity.
310 The sum of opposite infinities or the difference of the same sign infinities is NaN.
336 The sign of result matches the sign of infinity.
395 The sign of result matches the sign of infinity.
456 The sign of result matches the sign of infinity.
[all …]
Dfsub2.64.yaml147 …The sum of two infinities of the same sign or the difference of two infinities of opposite sign is…
148 The sign of result matches the sign of accumulator value.
150 The sign of result matches the sign of infinity.
209 …The sum of two infinities of the same sign or the difference of two infinities of opposite sign is…
210 The sign of result matches the sign of accumulator value.
212 The sign of result matches the sign of infinity.
282 The sum of opposite infinities or the difference of the same sign infinities is NaN.
289 # Sub of same sign Inf-s
309 The sign of result matches the sign of infinity.
378 The sign of result matches the sign of infinity.
[all …]
Dfadd2.64.yaml164 …The sum of two infinities of the same sign or the difference of two infinities of opposite sign is…
165 The sign of result matches the sign of accumulator value.
167 The sign of result matches the sign of infinity.
231 …The sum of two infinities of the same sign or the difference of two infinities of opposite sign is…
232 The sign of result matches the sign of accumulator value.
234 The sign of result matches the sign of infinity.
310 The sum of opposite infinities or the difference of the same sign infinities is NaN.
336 The sign of result matches the sign of infinity.
395 The sign of result matches the sign of infinity.
456 The sign of result matches the sign of infinity.
[all …]
/arkcompiler/runtime_core/static_core/plugins/ets/tests/ets-templates/02.lexical_elements/06.identifiers/
Didentifiers.params.yaml35 - '��' # Pahawh Hmong Sign Ib Yam, U+16B43
50 - '��' # Cuneiform Numeric Sign Elamite Fifty, U+12468
69 - '\u{11127}' # Chakma Vowel Sign A
73 - '\u093B' # Devanagari Vowel Sign Ooe
99 - '��' # Pahawh Hmong Sign Ib Yam, U+16B43
114 - '��' # Cuneiform Numeric Sign Elamite Fifty, U+12468

12345678910>>...13