Home
last modified time | relevance | path

Searched refs:sign (Results 1 – 25 of 90) sorted by relevance

1234

/arkcompiler/ets_runtime/ecmascript/compiler/codegen/maple/maple_util/src/
Dmpl_int_val.cpp22 …DEBUG_ASSERT(width == divisor.width && sign == divisor.sign, "bit-width and sign must be the same"… in operator /()
24 …DEBUG_ASSERT(!sign || (!IsMinValue() || !divisor.AreAllBitsOne()), "minValue / -1 leads to overflo… in operator /()
26 bool isNeg = sign && GetSignBit(); in operator /()
27 bool isDivisorNeg = divisor.sign && divisor.GetSignBit(); in operator /()
32 return isNeg != isDivisorNeg ? -IntVal(dividendVal / divisorVal, width, sign) in operator /()
33 : IntVal(dividendVal / divisorVal, width, sign); in operator /()
38 …DEBUG_ASSERT(width == divisor.width && sign == divisor.sign, "bit-width and sign must be the same"… in operator %()
40 …DEBUG_ASSERT(!sign || (!IsMinValue() || !divisor.AreAllBitsOne()), "minValue % -1 leads to overflo… in operator %()
42 bool isNeg = sign && GetSignBit(); in operator %()
43 bool isDivisorNeg = divisor.sign && divisor.GetSignBit(); in operator %()
[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()
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()
94 return sign ? GetSXTValue(size) : GetZXTValue(size);
126 return sign ? value == ((uint64(1) << (width - 1)) - 1) : AreAllBitsOne(); in IsMaxValue()
132 return sign ? value == (uint64(1) << (width - 1)) : value == 0; in IsMinValue()
138 DEBUG_ASSERT(width == rhs.width && sign == rhs.sign, "bit-width and sign must be the same");
[all …]
/arkcompiler/runtime_core/static_core/plugins/ets/tests/runtime/tooling/sampler/
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/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()
Dheader_writer.h61 … void ProcessProtoType(panda_file::Type type, panda_file::File::EntityId klass, std::string &sign,
/arkcompiler/runtime_core/static_core/plugins/ets/runtime/intrinsics/helpers/
Dets_intrinsics_helpers.cpp45 Sign sign = Sign::NONE; in StringToDouble() local
48 sign = Sign::POS; in StringToDouble()
51 sign = Sign::NEG; in StringToDouble()
68 return sign == Sign::NEG ? -POSITIVE_INFINITY : POSITIVE_INFINITY; in StringToDouble()
75 RETURN_IF_CONVERSION_END(++p, end, SignedZero(sign)); in StringToDouble()
78 return ignoreTrailing ? SignedZero(sign) : NAN_VALUE; in StringToDouble()
81 if (sign != Sign::NONE) { in StringToDouble()
88 return ignoreTrailing ? SignedZero(sign) : NAN_VALUE; in StringToDouble()
91 if (sign != Sign::NONE) { in StringToDouble()
98 return ignoreTrailing ? SignedZero(sign) : NAN_VALUE; in StringToDouble()
[all …]
Dets_intrinsics_helpers.h72 int sign : 1; member
86 inline double SignedZero(Sign sign) in SignedZero() argument
88 return sign == Sign::NEG ? -0.0 : 0.0; in SignedZero()
188 Sign sign = Sign::NONE; in Strtod() local
193 sign = Sign::NEG; in Strtod()
219 return sign == Sign::NEG ? -result : result; in Strtod()
/arkcompiler/ets_runtime/ecmascript/base/
Dnumber_helper.cpp112 static inline double SignedZero(Sign sign) in SignedZero() argument
114 return sign == Sign::NEG ? -0.0 : 0.0; in SignedZero()
277 … std::string& buf1, int buf1Size, int roundingMode, int *sign) in GetBaseForRoundingMode() argument
290 *sign = (buf1[0] == '-'); in GetBaseForRoundingMode()
302 …CustomEcvtIsFixed(double &valueNumber, int &digits, int *decimalPoint, std::string& buf, int *sign) in CustomEcvtIsFixed() argument
310 …RoundingMode(valueNumber, digits, decimalPoint, buf, buffer, JS_DTOA_BUF_SIZE, FE_TONEAREST, sign); in CustomEcvtIsFixed()
324 std::string& buf, bool isFixed, int *sign) in CustomEcvt() argument
329 CustomEcvtIsFixed(valueNumber, digits, decimalPoint, buf, sign); in CustomEcvt()
352 …RoundingMode(valueNumber, digits, decimalPoint, buf, buffer, JS_DTOA_BUF_SIZE, roundingMode, sign); in CustomEcvt()
401 int sign = 0; in DoubleToExponential() local
[all …]
/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(&sign, wordsNum, words); in GetWordsArrayFuzzTest()
/arkcompiler/runtime_core/static_core/plugins/ets/stdlib/escompat/
DBigInt.ets30 private sign: boolean;
54 this.sign = true;
60 this.sign = bigint.sign;
66 this.sign = bigint.sign;
72 this.sign = bigint.sign;
78 this.sign = bigint.sign;
84 this.sign = bigint.sign;
99 this.sign = bigint.sign;
178 return this.sign == false;
182 return this.sign == true;
[all …]
/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
42 Local<JSValueRef> bigWords = BigIntRef::CreateBigWords(vm, sign, (uint32_t)size, words); in BigIntRefGetWordsArraySize()
/arkcompiler/ets_runtime/ecmascript/
Djs_bigint.cpp527 bool sign = number < 0; in Int32ToBigInt() local
528 if (sign) { in Int32ToBigInt()
534 bigint->SetSign(sign); in Int32ToBigInt()
549 bool sign = number < 0; in Int64ToBigInt() local
550 if (sign) { in Int64ToBigInt()
557 bigint->SetSign(sign); in Int64ToBigInt()
628 JSHandle<BigInt> BigInt::CreateBigWords(JSThread *thread, bool sign, uint32_t size, const uint64_t … in CreateBigWords() argument
648 bigint->SetSign(sign); in CreateBigWords()
844 JSHandle<BigInt> BigInt::ReturnIfRightShiftOverMax(JSThread *thread, bool sign) in ReturnIfRightShiftOverMax() argument
846 if (sign) { in ReturnIfRightShiftOverMax()
[all …]
Ddate_parse.cpp46 DateUnit sign = proxy->NextDate(); in IsIsoDateTime() local
51 if (sign.IsSymbol('-') && signYear == 0) { in IsIsoDateTime()
54 if (sign.IsSymbol('-')) { in IsIsoDateTime()
Ddate_parse.h353 void SetSign(int sign) in SetSign() argument
355 sign_ = sign; in SetSign()
/arkcompiler/toolchain/build/third_party_gn/protobuf/
DBUILD.gn71 cflags_cc = [ "-Wno-sign-compare" ]
73 "-Wno-sign-compare",
130 "-Wno-sign-compare",
135 "-Wno-sign-compare",
208 "-Wno-sign-compare",
212 "-Wno-sign-compare",
289 "-Wno-sign-compare",
293 "-Wno-sign-compare",
396 "-Wno-sign-compare",
402 "-Wno-sign-compare",
[all …]
/arkcompiler/ets_frontend/ets2panda/test/runtime/ets/
DCastReference4.ets33 …// 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…
DCastReference3.ets38 // It may be a sign of possible error here.
/arkcompiler/ets_runtime/test/
Druntest.py289 if args.sign:
511 if not self.args.sign or self.args.sign == 'system_core':
514 elif self.args.sign == 'system_basic':
515 bundle_apl = self.args.sign
517 elif self.args.sign == 'normal':
518 bundle_apl = self.args.sign
/arkcompiler/ets_runtime/test/aottest/compiler_test/
Dcompiler_test.ts80 Math.sign("12");
/arkcompiler/runtime_core/static_core/plugins/ets/tests/ets-templates/07.expressions/30.string_interpolation_expressions/
Dsiexp.ets20 sign '$' and curly braces. The type of a string interpolation expression
Dsiexp_n.ets20 sign '$' and curly braces. The type of a string interpolation expression
/arkcompiler/runtime_core/static_core/plugins/ets/runtime/types/
Dets_string_builder.cpp195 auto sign = static_cast<uint32_t>(v < 0); in LongToCharArray() local
196 auto nDigits = CountDigits(std::abs(v)) + sign; in LongToCharArray()
199 utf::UInt64ToUtf16Array(std::abs(v), arrData, nDigits, sign != 0U); in LongToCharArray()
/arkcompiler/runtime_core/static_core/tests/cts-assembly/
Dfloatcast-test-0.pa59 # (sign bit set to 1 so if we sum float(MIN_INT32) with 1F
85 # (sign bit set to 1 so if we sum float(MIN_INT64) with 1F
/arkcompiler/runtime_core/static_core/plugins/ets/tests/ets-templates/02.lexical_elements/09.literals/06.template_literals/
Dtempl_01.ets36 // escape dollar sign

1234