Home
last modified time | relevance | path

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

12345678910>>...12

/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/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/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/
DSamplerTest.sts81 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/ets_runtime/ecmascript/base/
Dnumber_helper.cpp29 enum class Sign { NONE, NEG, POS }; enum
109 static inline double SignedZero(Sign sign) in SignedZero() argument
111 return sign == Sign::NEG ? -0.0 : 0.0; in SignedZero()
302 … std::string& buf1, int buf1Size, int roundingMode, int *sign) in GetBaseForRoundingMode() argument
315 *sign = (buf1[0] == '-'); in GetBaseForRoundingMode()
327 …CustomEcvtIsFixed(double &valueNumber, int &digits, int *decimalPoint, std::string& buf, int *sign) in CustomEcvtIsFixed() argument
335 …RoundingMode(valueNumber, digits, decimalPoint, buf, buffer, JS_DTOA_BUF_SIZE, FE_TONEAREST, sign); in CustomEcvtIsFixed()
349 std::string& buf, bool isFixed, int *sign) in CustomEcvt() argument
354 CustomEcvtIsFixed(valueNumber, digits, decimalPoint, buf, sign); in CustomEcvt()
377 …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/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 …]
Dets_intrinsics_helpers.h65 enum class Sign { NONE, NEG, POS }; enum
73 int sign : 1; member
87 inline double SignedZero(Sign sign) in SignedZero() argument
89 return sign == Sign::NEG ? -0.0 : 0.0; in SignedZero()
193 Sign sign = Sign::NONE; in Strtod() local
198 sign = Sign::NEG; in Strtod()
224 return sign == Sign::NEG ? -result : result; in Strtod()
/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/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
/arkcompiler/ets_runtime/test/fuzztest/getwordsarray_fuzzer/
Dgetwordsarray_fuzzer.cpp33 bool sign = false; in GetWordsArrayFuzzTest() local
45 Local<JSValueRef> bigWordsValue = BigIntRef::CreateBigWords(vm, sign, wordsNum, words); in GetWordsArrayFuzzTest()
47 bigWords->GetWordsArray(vm, &sign, wordsNum, words); in GetWordsArrayFuzzTest()
/arkcompiler/ets_runtime/test/
Druntest.py65 parser.add_argument('--sign', metavar='name',
66 help='sign level, default is system_core, other is normal, system_basic')
287 if args.sign:
363 print(f'sign --------------------------------------------')
503 sign_dir = f'{name}.sign'
509 if not self.args.sign or self.args.sign == 'system_core':
512 elif self.args.sign == 'system_basic':
513 bundle_apl = self.args.sign
515 elif self.args.sign == 'normal':
516 bundle_apl = self.args.sign
[all …]
/arkcompiler/ets_runtime/compiler_service/src/
Daot_compiler_error_utils.cpp26 { ERR_AOT_COMPILER_SIGNATURE_FAILED, "local code sign failed" },
27 { ERR_AOT_COMPILER_SIGNATURE_DISABLE, "local code sign disable" },
/arkcompiler/ets_frontend/es2panda/lexer/token/
Dletters.h116 #define LEX_CHAR_PERCENT 0x25 /* percent sign */
121 #define LEX_CHAR_PLUS 0x2B /* plus sign */
129 #define LEX_CHAR_LESS_THAN 0x3C /* less-than sign */
130 #define LEX_CHAR_EQUALS 0x3D /* equals sign */
131 #define LEX_CHAR_GREATER_THAN 0x3E /* greater-than sign */
/arkcompiler/ets_frontend/ets2panda/test/runtime/ets/
DCastReference4.sts33 …// Instruction 'checkcast' will always throw an exception here. It may be a sign of possible error…
45 …// Instruction 'checkcast' will always throw an exception here. It may be a sign of possible error…
/arkcompiler/ets_runtime/test/fuzztest/createbigwords_fuzzer/
Dcreatebigwords_fuzzer.cpp33 bool sign = false; in CreateBigWordsFuzzTest() local
45 BigIntRef::CreateBigWords(vm, sign, wordsNum, words); in CreateBigWordsFuzzTest()
/arkcompiler/ets_runtime/test/fuzztest/bigintrefgetwordsarraysize_fuzzer/
Dbigintrefgetwordsarraysize_fuzzer.cpp37 bool sign = false; in BigIntRefGetWordsArraySize() local
48 Local<JSValueRef> bigWords = BigIntRef::CreateBigWords(vm, sign, wordsNum, words); in BigIntRefGetWordsArraySize()
/arkcompiler/runtime_core/static_core/isa/
Disa.yaml57 passing a value, which is zero or sign-extended to i32.
72 - Sign ("`+`" or "`-`")
77 - Exponent sign
309 …Move integer immediate into a register. For short formats immediate is sign extended to operand si…
375 Load immediate into accumulator. For short formats immediate is sign extended to operand size.
582 instruction. Offset is sign extended to the size of instruction address.
600 …object references in accumulator and source register compare as specified. Offset is sign extended…
634 …object reference in accumulator compares with null as specified. Offset is sign extended to the si…
667 …signed 32-bit integer in accumulator compares with 0 as specified. Offset is sign extended to the …
732 …32-bit integers in accumulator and register compare as specified. Offset is sign extended to the s…
[all …]

12345678910>>...12