/arkcompiler/ets_runtime/ecmascript/compiler/codegen/maple/maple_util/src/ |
D | mpl_int_val.cpp | 22 …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/ |
D | mpl_int_val.h | 27 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/ |
D | SamplerTest.ets | 81 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/ |
D | header_writer.cpp | 94 …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()
|
D | header_writer.h | 61 … void ProcessProtoType(panda_file::Type type, panda_file::File::EntityId klass, std::string &sign,
|
/arkcompiler/runtime_core/static_core/plugins/ets/runtime/intrinsics/helpers/ |
D | ets_intrinsics_helpers.cpp | 45 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 …]
|
D | ets_intrinsics_helpers.h | 72 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/ |
D | number_helper.cpp | 112 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/ |
D | getwordsarray_fuzzer.cpp | 33 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/ |
D | BigInt.ets | 30 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/ |
D | createbigwords_fuzzer.cpp | 33 bool sign = false; in CreateBigWordsFuzzTest() local 45 BigIntRef::CreateBigWords(vm, sign, wordsNum, words); in CreateBigWordsFuzzTest()
|
/arkcompiler/ets_runtime/test/fuzztest/bigintrefgetwordsarraysize_fuzzer/ |
D | bigintrefgetwordsarraysize_fuzzer.cpp | 37 bool sign = false; in BigIntRefGetWordsArraySize() local 42 Local<JSValueRef> bigWords = BigIntRef::CreateBigWords(vm, sign, (uint32_t)size, words); in BigIntRefGetWordsArraySize()
|
/arkcompiler/ets_runtime/ecmascript/ |
D | js_bigint.cpp | 527 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 …]
|
D | date_parse.cpp | 46 DateUnit sign = proxy->NextDate(); in IsIsoDateTime() local 51 if (sign.IsSymbol('-') && signYear == 0) { in IsIsoDateTime() 54 if (sign.IsSymbol('-')) { in IsIsoDateTime()
|
D | date_parse.h | 353 void SetSign(int sign) in SetSign() argument 355 sign_ = sign; in SetSign()
|
/arkcompiler/toolchain/build/third_party_gn/protobuf/ |
D | BUILD.gn | 71 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/ |
D | CastReference4.ets | 33 …// 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…
|
D | CastReference3.ets | 38 // It may be a sign of possible error here.
|
/arkcompiler/ets_runtime/test/ |
D | runtest.py | 289 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/ |
D | compiler_test.ts | 80 Math.sign("12");
|
/arkcompiler/runtime_core/static_core/plugins/ets/tests/ets-templates/07.expressions/30.string_interpolation_expressions/ |
D | siexp.ets | 20 sign '$' and curly braces. The type of a string interpolation expression
|
D | siexp_n.ets | 20 sign '$' and curly braces. The type of a string interpolation expression
|
/arkcompiler/runtime_core/static_core/plugins/ets/runtime/types/ |
D | ets_string_builder.cpp | 195 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/ |
D | floatcast-test-0.pa | 59 # (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/ |
D | templ_01.ets | 36 // escape dollar sign
|