Home
last modified time | relevance | path

Searched refs:diff (Results 1 - 25 of 28) sorted by relevance

12

/arkcompiler/ets_frontend/ets2panda/lexer/token/
H A DsourceLocation.cpp25 size_t diff = offset - offset_; in AddCol() local
29 ranges.emplace_back(Range {diff}); in AddCol()
35 if (diff == range.byteSize) { in AddCol()
38 ranges.emplace_back(Range {diff}); in AddCol()
88 size_t diff = pos.index - entry.lineStart; variable
91 if (diff < range.cnt) {
92 col += diff;
96 diff -= range.cnt * range.byteSize;
/arkcompiler/ets_frontend/es2panda/lexer/token/
H A DsourceLocation.cpp26 size_t diff = offset - offset_; in AddCol() local
30 ranges.emplace_back(Range {diff}); in AddCol()
36 if (diff == range.byteSize) { in AddCol()
39 ranges.emplace_back(Range {diff}); in AddCol()
88 size_t diff = pos.index - entry.lineStart; variable
91 if (diff < (range.cnt * range.byteSize)) {
92 col += (diff / range.byteSize) ;
96 diff -= range.cnt * range.byteSize;
/arkcompiler/ets_runtime/ecmascript/compiler/codegen/maple/maple_be/src/cg/aarch64/
H A Daarch64_imm_valid.cpp77 int64 diff = p1 - p0; in IsBitmaskImmediate() local
79 /* check if diff is a power of two; return false if not. */ in IsBitmaskImmediate()
80 CHECK_FATAL(static_cast<uint64>(diff) >= 1, "value overflow"); in IsBitmaskImmediate()
81 if ((static_cast<uint64>(diff) & (static_cast<uint64>(diff) - 1)) != 0) { in IsBitmaskImmediate()
86 uint32 logDiff = static_cast<uint32>(__builtin_ctzll(static_cast<uint64>(diff))); in IsBitmaskImmediate()
87 uint64 pattern = val & ((1ULL << static_cast<uint64>(diff)) - 1); in IsBitmaskImmediate()
/arkcompiler/runtime_core/static_core/libpandabase/utils/
H A Dsequence.h34 // diff := x - mean in Add()
35 // incr := alpha * diff in Add()
37 // variance := (1 - alpha) * (variance + diff * incr) in Add()
39 double diff = val - mean_; in Add() local
40 double incr = DEFAULT_INCREMENTAL_FACTOR * diff; in Add()
42 variance_ = (1.0 - DEFAULT_INCREMENTAL_FACTOR) * (variance_ + diff * incr); in Add()
H A Dbit_vector.h229 difference_type diff = offset_ + n; in Increase() local
231 data_ += diff / helpers::ToSigned(WORD_BITS); in Increase()
232 diff = diff % helpers::ToSigned(WORD_BITS); in Increase()
233 if (diff < 0) { in Increase()
234 diff += helpers::ToSigned(WORD_BITS); in Increase()
238 offset_ = diff; in Increase()
/arkcompiler/runtime_core/bytecode_optimizer/tests/benchmark/
H A Dcompare.py77 diff = old_size - new_size
79 "new_size": new_size, "diff": diff}
80 if diff > 0:
84 elif diff < 0:
99 if result[r]["diff"] > 0:
103 result[r]["diff"],
/arkcompiler/runtime_core/static_core/bytecode_optimizer/tests/benchmark/
H A Dcompare.py78 diff = old_size - new_size
81 "new_size": new_size, "diff": diff
83 if diff > 0:
87 elif diff < 0:
102 if result[r]["diff"] > 0:
106 result[r]["diff"],
/arkcompiler/runtime_core/static_core/runtime/mem/gc/
H A Dcard_table-inl.h61 size_t diff = endCard - startCard + 1; in FillRanges() local
62 size_t splitSize = std::min(diff / 2, MAX_CARDS_COUNT); // divide 2 to get smaller split_size in FillRanges()
67 if (diff - splitSize > MAX_CARDS_COUNT) { in FillRanges()
69 } else if (memcmp(ToNativePtr<Card>(ToUintPtr(startCard) + splitSize), &zeroArray, diff - splitSize) != 0) { in FillRanges()
/arkcompiler/ets_runtime/ecmascript/compiler/assembler/aarch64/
H A Dmacro_assembler_aarch64.cpp279 int64_t diff = p1 - p0; in IsBitmaskImmediate() local
281 /* check if diff is a power of two; return false if not. */ in IsBitmaskImmediate()
282 if (static_cast<uint64_t>(diff) < 1 || static_cast<uint64_t>(diff) > UINT64_MAX) { in IsBitmaskImmediate()
283 std::cout << "diff value overflow!" << std::endl; in IsBitmaskImmediate()
286 if ((static_cast<uint64_t>(diff) & (static_cast<uint64_t>(diff) - 1)) != 0) { in IsBitmaskImmediate()
290 uint32_t logDiff = static_cast<uint32_t>(__builtin_ctzll(static_cast<uint64_t>(diff))); in IsBitmaskImmediate()
291 uint64_t pattern = val & ((1ULL << static_cast<uint64_t>(diff)) - 1); in IsBitmaskImmediate()
/arkcompiler/runtime_core/static_core/tests/vm-benchmarks/src/vmb/
H A Dreport.py62 def add(self, t, diff) -> None:
63 self.tests[t] = diff
77 for name, diff in self.tests.items():
78 if not full and diff.status not in ('new fail', 'missed'):
80 print(f'{name:<{self._name_len}}; {diff}')
277 def add(self, t, diff):
278 self.tests[t] = diff
287 def add(self, t, diff):
288 self.libs[t] = diff
296 def add(self, opt, summary, diff)
[all...]
/arkcompiler/runtime_core/static_core/plugins/ets/tests/debugger/src/arkdb/compiler_verification/
H A Dbytecode.py97 diff = difflib.ndiff(expected_func_body, patch_func_body)
98 error_list = [x for x in diff if x[0] not in ExpressionEvaluationNames.NON_DIFF_MARKS]
H A Dast.py201 diff = difflib.ndiff(dump_ast(patched_output), dump_ast(expected_output))
202 error_list = [x for x in diff if x[0] not in ExpressionEvaluationNames.NON_DIFF_MARKS]
/arkcompiler/runtime_core/libpandabase/utils/
H A Dbit_vector.h219 difference_type diff = offset_ + n; in Increase() local
221 data_ += diff / helpers::ToSigned(WORD_BITS); in Increase()
222 diff = diff % helpers::ToSigned(WORD_BITS); in Increase()
223 if (diff < 0) { in Increase()
224 diff += helpers::ToSigned(WORD_BITS); in Increase()
228 offset_ = diff; in Increase()
/arkcompiler/ets_frontend/ets2panda/test/tsconfig/
H A Dtest.sh54 diff "$EXPECTED" "$ACTUAL"
65 echo "diff $(realpath $EXPECTED) $(pwd)/actual.txt"
/arkcompiler/ets_frontend/arkguard/scripts/
H A Dexecute_result_statistics.js18 const diff = require('diff');
106 const differences = diff.diffLines(actual, expectation);
H A Dgrammar_test.py413 diff = difflib.ndiff(actual.splitlines(), expectation.splitlines())
418 logging.info("\n".join(diff))
/arkcompiler/runtime_core/static_core/compiler/optimizer/analysis/
H A Dcountable_loop_parser.cpp179 uint64_t diff = testValue - initValue; in GetLoopIterations() local
180 uint64_t count = diff + loopInfo.constStep; in GetLoopIterations()
181 if (diff > std::numeric_limits<uint64_t>::max() - loopInfo.constStep) { in GetLoopIterations()
/arkcompiler/runtime_core/static_core/irtoc/backend/
H A Dcompilation.cpp154 auto diff = usedRegisters_.gpr ^ GetCalleeRegsMask(arch_, false, true); in CheckUsedRegisters() local
155 if (diff.Any()) { in CheckUsedRegisters()
165 auto diff = usedRegisters_.fp ^ GetCalleeRegsMask(arch_, true, true); in CheckUsedRegisters() local
166 if (diff.Any()) { in CheckUsedRegisters()
/arkcompiler/runtime_core/static_core/compiler/optimizer/optimizations/
H A Dmemory_coalescing.cpp41 int64_t diff; member
77 base_[var] = {initVal, derived_[update].diff}; in VariableAnalysis()
90 << "v" << entry.first->GetId() << " = v" << entry.second.base->GetId() << " + " << entry.second.diff; in VariableAnalysis()
111 return base_.at(var.base).initial + var.diff; in GetInitial()
116 return derived_.at(inst).diff; in GetDiff()
142 acc += derived_[inst].diff; in AddUsers()
/arkcompiler/ets_runtime/ecmascript/compiler/
H A Dlcr_circuit_builder.h281 GateRef diff = DoubleEqual(x, x); in DoubleIsNAN() local
282 return Equal(SExtInt1ToInt32(diff), Int32(0)); in DoubleIsNAN()
H A Dcircuit_builder.cpp310 void CircuitBuilder::LoopExit(const std::vector<Variable *> &vars, size_t diff) in LoopExit() argument
316 for (size_t i = 0; i < diff; ++i) { in LoopExit()
/arkcompiler/ets_runtime/ecmascript/builtins/
H A Dbuiltins_math.cpp656 const double diff = 0.5; in Round() local
667 if (value < 0 && value >= -diff) { in Round()
671 if (value > 0 && value < diff) { in Round()
676 if (result - value > diff) { in Round()
/arkcompiler/runtime_core/assembler/
H A Dassembly-parser.cpp706 size_t diff = 1; in ParseResetFunctionTable() local
725 if (insn_it->OperandListLength() - diff < program_.function_table.at(insn_it->ids[0]).GetParamsNum()) { in ParseResetFunctionTable()
727 (static_cast<int>(insn_it->regs.size()) - static_cast<int>(diff) >= 0)) { in ParseResetFunctionTable()
/arkcompiler/runtime_core/static_core/compiler/tests/aarch64/
H A Dencoder64_test_1.cpp1101 auto diff = tmp1 - tmp2; in TestSub() local
1102 if (!test->CallCode<T>(tmp1, tmp2, diff)) { in TestSub()
1165 auto diff = tmp1 - param2; in TestSubImm() local
1166 if (!test->CallCode<T>(tmp1, diff)) { in TestSubImm()
/arkcompiler/runtime_core/static_core/assembler/
H A Dassembly-parser.cpp737 size_t diff = isInitobj ? 0 : 1; in ParseInsFromFuncTable() local
758 if (insn.OperandListLength() - diff < program_.functionTable.at(insn.ids[0]).GetParamsNum()) { in ParseInsFromFuncTable()
759 if (insn.IsCallRange() && (static_cast<int>(insn.regs.size()) - static_cast<int>(diff) >= 0)) { in ParseInsFromFuncTable()

Completed in 27 milliseconds

12