Home
last modified time | relevance | path

Searched refs:negative (Results 1 - 24 of 24) sorted by relevance

/arkcompiler/ets_frontend/ets2panda/checker/types/ts/
H A DbigintLiteralType.h24 BigintLiteralType(util::StringView value, bool negative) in BigintLiteralType() argument
25 : Type(TypeFlag::BIGINT_LITERAL), value_(value), negative_(negative) in BigintLiteralType()
/arkcompiler/ets_frontend/es2panda/typescript/types/
H A DbigintLiteralType.h25 BigintLiteralType(util::StringView value, bool negative) in BigintLiteralType() argument
26 : Type(TypeFlag::BIGINT_LITERAL), value_(value), negative_(negative) in BigintLiteralType()
/arkcompiler/runtime_core/static_core/plugins/ets/runtime/intrinsics/helpers/
H A Dets_intrinsics_helpers.cpp275 bool negative = false; in StringToDoubleWithRadix() local
277 negative = true; in StringToDoubleWithRadix()
340 return negative ? -result : result; in StringToDoubleWithRadix()
542 char *SmallFpToString(FpType number, bool negative, char *buffer) in SmallFpToString() argument
545 if (negative) { in SmallFpToString()
571 Span<char> FpToStringDecimalRadixMainCase(FpType number, bool negative, Span<char> buffer) in FpToStringDecimalRadixMainCase() argument
618 // unit 0x002D (HYPHEN-MINUS) according to whether n−1 is positive or negative, followed by the code units of in FpToStringDecimalRadixMainCase()
626 if (negative) { in FpToStringDecimalRadixMainCase()
633 template char *SmallFpToString<double>(double number, bool negative, char *buffer);
634 template char *SmallFpToString<float>(float number, bool negative, cha
[all...]
H A Dets_intrinsics_helpers.h322 char *SmallFpToString(FpType number, bool negative, char *buffer);
325 Span<char> FpToStringDecimalRadixMainCase(FpType number, bool negative, Span<char> buffer);
349 bool negative = false; in FpToStringDecimalRadix() local
351 negative = true; in FpToStringDecimalRadix()
356 auto bufferEnd = SmallFpToString(number, negative, buffer.begin()); in FpToStringDecimalRadix()
360 auto newBuffer = FpToStringDecimalRadixMainCase(number, negative, Span(buffer)); in FpToStringDecimalRadix()
/arkcompiler/ets_runtime/ecmascript/base/tests/
H A Dnumber_helper_test.cpp362 * When it is negative,it is rounded up.
581 bool negative = false; in HWTEST_F_L0() local
583 EXPECT_EQ(NumberHelper::StringToDoubleWithRadix(sp.begin(), sp.end(), radix, &negative).GetDouble(), -5); in HWTEST_F_L0()
588 negative = false; in HWTEST_F_L0()
590 EXPECT_EQ(NumberHelper::StringToDoubleWithRadix(sp.begin(), sp.end(), radix, &negative).GetDouble(), 27); in HWTEST_F_L0()
594 negative = false; in HWTEST_F_L0()
595 EXPECT_EQ(NumberHelper::StringToDoubleWithRadix(sp.begin(), sp.end(), radix, &negative).GetDouble(), 27); in HWTEST_F_L0()
600 negative = false; in HWTEST_F_L0()
601 EXPECT_EQ(NumberHelper::StringToDoubleWithRadix(sp.begin(), sp.end(), radix, &negative).GetDouble(), 255); in HWTEST_F_L0()
605 negative in HWTEST_F_L0()
[all...]
/arkcompiler/ets_runtime/ecmascript/base/
H A Dnumber_helper.cpp182 bool negative = number < 0.0;
183 if (negative) {
238 if (negative) {
255 bool negative = false;
262 negative = true;
286 if (negative) {
560 bool negative = false;
563 if (EcmaStringAccessor(string).ToInt(&elementIndex, &negative)) {
564 if (elementIndex == 0 && negative == true) {
573 JSTaggedValue result = NumberHelper::StringToDoubleWithRadix(str.begin(), str.end(), radix, &negative);
[all...]
H A Djson_parser.h155 JSTaggedValue ConvertToNumber(const std::string &str, bool negative, bool hasExponent, bool hasDecimal);
H A Djson_parser.cpp529 bool negative = false; in ParseNumber() local
536 negative = true; in ParseNumber()
552 return ConvertToNumber(strNum, negative, hasExponent, hasDecimal); in ParseNumber()
556 JSTaggedValue JsonParser<T>::ConvertToNumber(const std::string &str, bool negative, bool hasExponent, bool hasDecimal) in ConvertToNumber() argument
569 if (negative && v == 0) { in ConvertToNumber()
/arkcompiler/runtime_core/static_core/tests/tests-u-runner/runner/
H A Ddescriptor.py31 self.negative = re.compile(
32 r"negative:.*phase:\s+(?P<phase>\w+).*type:\s+(?P<type>\w+)",
68 match = self.negative.search(header)
/arkcompiler/ets_frontend/es2panda/test/
H A Dtest262util.py32 self.negative = re.compile(
33 r"negative:.*phase:\s+(?P<phase>\w+).*type:\s+(?P<type>\w+)",
143 match = self.negative.search(header)
161 return False, False # negative test passed
176 return False # negative test passed
/arkcompiler/ets_frontend/es2panda/typescript/core/
H A DtypeCreation.cpp33 Type *Checker::CreateBigintLiteralType(const util::StringView &str, bool negative) in CreateBigintLiteralType() argument
40 auto *newBigiLiteralType = allocator_->New<BigintLiteralType>(str, negative); in CreateBigintLiteralType()
/arkcompiler/ets_frontend/ets2panda/checker/ts/
H A DtypeCreation.cpp32 Type *TSChecker::CreateBigintLiteralType(const util::StringView &str, bool negative) in CreateBigintLiteralType() argument
39 auto *newBigintLiteralType = Allocator()->New<BigintLiteralType>(str, negative); in CreateBigintLiteralType()
/arkcompiler/runtime_core/static_core/tests/cts-generator/
H A Dgenerate-cts.rb36 if chunk_size > tests.length || chunk_size < 1 || chunk.negative?
/arkcompiler/runtime_core/tests/cts-generator/
H A Dgenerate-cts.rb36 if chunk_size > tests.length || chunk_size < 1 || chunk.negative?
/arkcompiler/runtime_core/static_core/tests/tests-u-runner/runner/plugins/ets/ets_templates/
H A Dtest_metadata.py39 NEGATIVE = "negative"
52 def negative(self) -> bool: member in Tags
/arkcompiler/runtime_core/static_core/libpandabase/utils/
H A Dutf.cpp611 void UInt64ToUtf16Array(uint64_t v, uint16_t *outUtf16Buf, uint32_t nDigits, bool negative) in UInt64ToUtf16Array() argument
631 outSpan[negative ? 1U : 0] = v + '0'; in UInt64ToUtf16Array()
633 if (negative) { in UInt64ToUtf16Array()
H A Dutf.h148 PANDA_PUBLIC_API void UInt64ToUtf16Array(uint64_t v, uint16_t *outUtf16Buf, uint32_t nDigits, bool negative);
/arkcompiler/runtime_core/static_core/tests/tests-u-runner/runner/plugins/ets/
H A Dtest_ets.py56 negative_runtime_metadata = self.metadata.tags.negative and not self.metadata.tags.compile_only
62 return self.metadata.tags.negative and self.metadata.tags.compile_only
/arkcompiler/ets_frontend/ets2panda/checker/
H A DTSchecker.h301 Type *CreateBigintLiteralType(const util::StringView &str, bool negative);
/arkcompiler/ets_runtime/ecmascript/
H A Decma_string.cpp1105 bool EcmaString::ToInt(int32_t *index, bool *negative) in ToInt() argument
1124 *negative = true; in ToInt()
1129 *index = *negative ? -n : n; in ToInt()
H A Decma_string.h616 bool ToInt(int32_t *index, bool *negative);
1445 bool ToInt(int32_t *index, bool *negative) in ToInt() argument
1447 return string_->ToInt(index, negative); in ToInt()
/arkcompiler/ets_frontend/es2panda/typescript/
H A Dchecker.h374 Type *CreateBigintLiteralType(const util::StringView &str, bool negative);
/arkcompiler/runtime_core/static_core/libllvmbackend/lowering/
H A Dllvm_ir_constructor.cpp1839 // Check if rounded value less than zero (if not negative rounding is done) in CreateRoundArm64()
1840 auto negative = llvm::BasicBlock::Create(ctx, CreateBasicBlockName(inst, "neg"), func_); in CreateRoundArm64() local
1843 builder_.CreateCondBr(lessThan, negative, done); in CreateRoundArm64()
1846 SetCurrentBasicBlock(negative); in CreateRoundArm64()
1860 roundPhi->addIncoming(roundMayInc, negative); in CreateRoundArm64()
/arkcompiler/ets_frontend/es2panda/test/compiler/js/
H A Dcocos_worker_test.js12020 negative() {
15226 negative() {
15680 negative() {
[all...]

Completed in 55 milliseconds