Home
last modified time | relevance | path

Searched refs:sign (Results 1 - 25 of 41) sorted by relevance

12

/arkcompiler/ets_runtime/ecmascript/compiler/codegen/maple/maple_util/include/
H A 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 in operator =()
55 // Otherwise, assign only new value, but sign and width must be the same in operator =()
56 DEBUG_ASSERT(width == other.width && sign == other.sign, "different bit-width or sign"); in operator =()
76 sign = other.sign; in Assign()
[all...]
/arkcompiler/runtime_core/static_core/plugins/ets/arkts_header/
H A Dheader_writer.cpp94 void HeaderWriter::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()
H A Dheader_writer.h61 void ProcessProtoType(panda_file::Type type, panda_file::File::EntityId klass, std::string &sign,
/arkcompiler/ets_runtime/ecmascript/base/
H A Dnumber_helper.cpp111 static inline double SignedZero(Sign sign) in SignedZero() argument
113 return sign == Sign::NEG ? -0.0 : 0.0; in SignedZero()
304 std::string& buf1, int buf1Size, int roundingMode, int *sign)
317 *sign = (buf1[0] == '-');
329 void NumberHelper::CustomEcvtIsFixed(double &valueNumber, int &digits, int *decimalPoint, std::string& buf, int *sign)
337 GetBaseForRoundingMode(valueNumber, digits, decimalPoint, buf, buffer, JS_DTOA_BUF_SIZE, FE_TONEAREST, sign);
351 std::string& buf, bool isFixed, int *sign)
356 CustomEcvtIsFixed(valueNumber, digits, decimalPoint, buf, sign);
379 GetBaseForRoundingMode(valueNumber, digits, decimalPoint, buf, buffer, JS_DTOA_BUF_SIZE, roundingMode, sign);
500 int sign
[all...]
/arkcompiler/ets_runtime/test/fuzztest/getwordsarray_fuzzer/
H A 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/runtime_core/static_core/plugins/ets/runtime/intrinsics/helpers/
H A 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 ! in StringToDouble()
[all...]
H A Dets_intrinsics_helpers.h73 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/ets_runtime/test/fuzztest/createbigwords_fuzzer/
H A 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/
H A Dbigintrefgetwordsarraysize_fuzzer.cpp37 bool sign = false; in BigIntRefGetWordsArraySize() local
48 Local<JSValueRef> bigWords = BigIntRef::CreateBigWords(vm, sign, wordsNum, words); in BigIntRefGetWordsArraySize()
/arkcompiler/ets_runtime/ecmascript/
H A Djs_bigint.cpp551 bool sign = number < 0; in Int32ToBigInt() local
552 if (sign) { in Int32ToBigInt()
558 bigint->SetSign(sign); in Int32ToBigInt()
573 bool sign = number < 0; in Int64ToBigInt() local
574 if (sign) { in Int64ToBigInt()
581 bigint->SetSign(sign); in Int64ToBigInt()
664 JSHandle<BigInt> BigInt::CreateBigWords(JSThread *thread, bool sign, uint32_t size, const uint64_t *words) in CreateBigWords() argument
684 bigint->SetSign(sign); in CreateBigWords()
882 JSHandle<BigInt> BigInt::ReturnIfRightShiftOverMax(JSThread *thread, bool sign) in ReturnIfRightShiftOverMax() argument
884 if (sign) { in ReturnIfRightShiftOverMax()
938 bool sign = x->GetSign(); RightShiftHelper() local
1463 bool sign = x->GetSign() != y->GetSign(); Divide() local
1582 CalculateNumber(const uint64_t &sign, const uint64_t &mantissa, uint64_t &exponent) CalculateNumber() argument
1594 Rounding(const uint64_t &sign, uint64_t &mantissa, uint64_t &exponent, bool needRound) Rounding() argument
1624 uint64_t sign = bigintSign ? 1ULL << 63 : 0; // 63 : Set the sign bit of sign to 1 BigIntToNumber() local
[all...]
H A Ddate_parse.cpp48 DateUnit sign = proxy->NextDate(); in IsIsoDateTime() local
53 if (sign.IsSymbol('-') && signYear == 0) { in IsIsoDateTime()
56 if (sign.IsSymbol('-')) { in IsIsoDateTime()
H A Djs_number_format.cpp701 // The default sign in ICU is UNUM_SIGN_AUTO which is mapped from in InitializeNumberFormat()
711 icuNumberFormatter = icuNumberFormatter.sign(UNumberSignDisplay::UNUM_SIGN_ACCOUNTING); in InitializeNumberFormat()
713 icuNumberFormatter = icuNumberFormatter.sign(UNumberSignDisplay::UNUM_SIGN_AUTO); in InitializeNumberFormat()
717 icuNumberFormatter = icuNumberFormatter.sign(UNumberSignDisplay::UNUM_SIGN_NEVER); in InitializeNumberFormat()
722 icuNumberFormatter = icuNumberFormatter.sign(UNumberSignDisplay::UNUM_SIGN_ACCOUNTING_ALWAYS); in InitializeNumberFormat()
724 icuNumberFormatter = icuNumberFormatter.sign(UNumberSignDisplay::UNUM_SIGN_ALWAYS); in InitializeNumberFormat()
730 icuNumberFormatter = icuNumberFormatter.sign(UNumberSignDisplay::UNUM_SIGN_ACCOUNTING_EXCEPT_ZERO); in InitializeNumberFormat()
732 icuNumberFormatter = icuNumberFormatter.sign(UNumberSignDisplay::UNUM_SIGN_EXCEPT_ZERO); in InitializeNumberFormat()
H A Ddate_parse.h354 void SetSign(int sign) in SetSign() argument
356 sign_ = sign; in SetSign()
H A Djs_bigint.h93 static JSHandle<BigInt> ReturnIfRightShiftOverMax(JSThread *thread, bool sign);
114 static JSHandle<BigInt> CreateBigWords(JSThread *thread, bool sign, uint32_t size, const uint64_t* words);
/arkcompiler/runtime_core/static_core/compiler/tests/
H A Dencoder_test_common.h110 int8_t sign = (gen % 2U) == 0 ? 1 : -1; in RandomGen() local
113 return sign * disNum(g_randomGenerator) * std::pow(2.0F, dis(g_randomGenerator)); in RandomGen()
116 return sign * disNum(g_randomGenerator) * std::pow(2.0F, dis(g_randomGenerator)); in RandomGen()
/arkcompiler/runtime_core/static_core/plugins/ets/runtime/interop_js/
H A Dinterop_common.h198 int sign = 1; in GeBigIntSign() local
200 sign = 0; in GeBigIntSign()
204 return sign; in GeBigIntSign()
H A Djs_convert.h300 auto size = etsVal->GetBytes()->GetActualLength(); // size includes extra sign element in JSCONVERT_WRAP()
310 int sign = 0; in JSCONVERT_WRAP() local
312 sign = GeBigIntSign(etsArray); in JSCONVERT_WRAP()
313 if (sign == 1) { in JSCONVERT_WRAP()
322 NAPI_CHECK_FATAL(napi_create_bigint_words(env, sign, jsArray.size(), jsArray.data(), &jsVal)); in JSCONVERT_WRAP()
/arkcompiler/ets_runtime/test/
H A 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
[all...]
/arkcompiler/runtime_core/static_core/runtime/tooling/inspector/types/
H A Dremote_object_type.h33 int8_t sign; member
H A Dremote_object.cpp37 return (bigint.sign >= 0 ? "" : "-") + std::to_string(bigint.value); in GetDescription()
/arkcompiler/runtime_core/assembler/
H A Dassembly-parser.cpp1334 bool Parser::ParseOperandSignature(std::string *sign) in ParseOperandSignature() argument
1350 *sign += ":("; in ParseOperandSignature()
1352 if (!ParseOperandSignatureTypesList(sign)) { in ParseOperandSignature()
1361 *sign += ")"; in ParseOperandSignature()
1368 bool Parser::ParseOperandSignatureTypesList(std::string *sign) in ParseOperandSignatureTypesList() argument
1382 *sign += ","; in ParseOperandSignatureTypesList()
1404 *sign += type.GetName(); in ParseOperandSignatureTypesList()
2335 std::string sign {}; in BuildMetaListAttr()
2339 if (!ParseOperandSignature(&sign)) { in BuildMetaListAttr()
2344 attribute_value += sign; in BuildMetaListAttr()
[all...]
H A Dassembly-parser.h193 bool ParseOperandSignature(std::string *sign);
194 bool ParseOperandSignatureTypesList(std::string *sign);
/arkcompiler/runtime_core/static_core/assembler/
H A Dassembly-parser.h195 bool ParseOperandSignature(std::string *sign);
196 bool ParseOperandSignatureTypesList(std::string *sign);
H A Dassembly-parser.cpp1401 bool Parser::ParseOperandSignature(std::string *sign) in ParseOperandSignature() argument
1417 *sign += ":("; in ParseOperandSignature()
1419 if (!ParseOperandSignatureTypesList(sign)) { in ParseOperandSignature()
1428 *sign += ")"; in ParseOperandSignature()
1435 bool Parser::ParseOperandSignatureTypesList(std::string *sign) in ParseOperandSignatureTypesList() argument
1449 *sign += ","; in ParseOperandSignatureTypesList()
1471 *sign += type.GetName(); in ParseOperandSignatureTypesList()
2439 std::string sign {}; in BuildMetaListAttr()
2443 if (!ParseOperandSignature(&sign)) { in BuildMetaListAttr()
2448 attributeValue += sign; in BuildMetaListAttr()
[all...]
/arkcompiler/ets_runtime/ecmascript/compiler/codegen/maple/maple_be/src/cg/aarch64/
H A Daarch64_insn.cpp113 /* fetch the sign bit of this value */ in Visit()
114 std::string sign = static_cast<uint64>(value) & 0x80 ? "-" : ""; in Visit() local
115 (void)emitter.Emit(sign + integer + "." + fraction + "e+").Emit(static_cast<int64>(dot) - 1); in Visit()

Completed in 22 milliseconds

12