Home
last modified time | relevance | path

Searched full:unsigned (Results 1 – 25 of 444) sorted by relevance

12345678910>>...18

/arkcompiler/runtime_core/compiler/optimizer/optimizations/regalloc/
Dinterference_graph.h39 … ColorNode(unsigned number, T alloc) : cs_point_set_(alloc), number_(number), physical_(), fixed_() in ColorNode()
43 unsigned GetNumber() const noexcept in GetNumber()
105 unsigned GetCallsiteIntersectCount() const noexcept in GetCallsiteIntersectCount()
113 unsigned number_;
123 void SetCapacity(unsigned capacity) in SetCapacity()
130 bool AddEdge(unsigned a, unsigned b);
132 bool HasEdge(unsigned a, unsigned b) const in HasEdge()
137 bool AddAffinityEdge(unsigned a, unsigned b);
139 bool HasAffinityEdge(unsigned a, unsigned b) const in HasAffinityEdge()
144 unsigned GetCapacity() const noexcept in GetCapacity()
[all …]
Dinterference_graph.cpp21 bool GraphMatrix::AddEdge(unsigned a, unsigned b) in AddEdge()
29 bool GraphMatrix::AddAffinityEdge(unsigned a, unsigned b) in AddAffinityEdge()
41 unsigned cur = nodes_.size(); in AllocNode()
58 void InterferenceGraph::AddEdge(unsigned a, unsigned b) in AddEdge()
63 bool InterferenceGraph::HasEdge(unsigned a, unsigned b) const in HasEdge()
68 void InterferenceGraph::AddAffinityEdge(unsigned a, unsigned b) in AddAffinityEdge()
73 bool InterferenceGraph::HasAffinityEdge(unsigned a, unsigned b) const in HasAffinityEdge()
83 ArenaVector<unsigned> InterferenceGraph::LexBFS() const in LexBFS()
86 unsigned num = nodes_.size(); in LexBFS()
87 ArenaVector<unsigned> out(num, nodes_.get_allocator()); in LexBFS()
[all …]
/arkcompiler/runtime_core/static_core/compiler/optimizer/optimizations/regalloc/
Dinterference_graph.cpp27 unsigned cur = nodes_.size(); in AllocNode()
44 void InterferenceGraph::AddEdge(unsigned a, unsigned b) in AddEdge()
49 bool InterferenceGraph::HasEdge(unsigned a, unsigned b) const in HasEdge()
54 void InterferenceGraph::AddAffinityEdge(unsigned a, unsigned b) in AddAffinityEdge()
59 bool InterferenceGraph::HasAffinityEdge(unsigned a, unsigned b) const in HasAffinityEdge()
69 ArenaVector<unsigned> InterferenceGraph::LexBFS() const in LexBFS()
72 unsigned num = nodes_.size(); in LexBFS()
73 ArenaVector<unsigned> out(num, nodes_.get_allocator()); in LexBFS()
82 SmallVector<unsigned, DEFAULT_BOUNDARY_STACK> boundaryStack; in LexBFS()
85 unsigned pos = 0; // Initialy we have set S of all elements in LexBFS()
[all …]
Dinterference_graph.h43 ColorNode(unsigned number, T alloc) : csPointSet_(alloc), number_(number) in ColorNode()
47 unsigned GetNumber() const noexcept in GetNumber()
113 unsigned GetCallsiteIntersectCount() const noexcept in GetCallsiteIntersectCount()
131 unsigned number_;
142 void SetCapacity(unsigned capacity) in SetCapacity()
151 bool AddEdge(unsigned a, unsigned b) in AddEdge()
161 bool AddAffinityEdge(unsigned a, unsigned b) in AddAffinityEdge()
171 bool HasEdge(unsigned a, unsigned b) const in HasEdge()
176 bool HasAffinityEdge(unsigned a, unsigned b) const in HasAffinityEdge()
181 unsigned GetCapacity() const noexcept in GetCapacity()
[all …]
/arkcompiler/ets_runtime/ecmascript/compiler/codegen/maple/mempool/include/
Dmaple_sparse_bitvector.h27 template <unsigned bitVectorSize = 64>
29 using BitWord = unsigned long long;
32 explicit MapleSparseBitVectorElement(unsigned idx) : index(idx), bitVector {0} {} in MapleSparseBitVectorElement()
34 BitWord GetWord(unsigned idx) const in GetWord()
39 unsigned GetIndex() const in GetIndex()
44 void Set(unsigned idx) in Set()
49 void Reset(unsigned idx) in Reset()
54 bool Test(unsigned idx) const in Test()
61 for (unsigned i = 0; i < kBitWordNum; i++) { in Empty()
69 void ConvertToSet(MapleSet<uint32> &res, unsigned base) const in ConvertToSet()
[all …]
/arkcompiler/ets_runtime/ecmascript/compiler/codegen/maple/maple_util/include/
Dgcov_profile.h24 typedef unsigned gcov_unsigned_t;
27 typedef unsigned location_t;
40 GcovFuncInfo(MapleAllocator *alloc, unsigned funcIdent, unsigned lineno_cs, unsigned cfg_cs) in GcovFuncInfo()
98 unsigned ident;
99 unsigned lineno_checksum;
100 unsigned cfg_checksum;
103 unsigned num_counts;
114 GcovFuncInfo *GetFuncProfile(unsigned puidx) in GetFuncProfile()
121 void AddFuncProfile(unsigned puidx, GcovFuncInfo *funcData) in AddFuncProfile()
126 MapleUnorderedMap<unsigned, GcovFuncInfo *> funcsCounter; // use puidx as key
/arkcompiler/runtime_core/compiler/tests/
Dreg_alloc_interference_graph_test.cpp26 constexpr unsigned DEFAULT_CAPACITY1 = 10;
27 unsigned test_edges1[2][2] = {{0, 1}, {7, 4}};
28 auto IsInSet = [](unsigned a, unsigned b) { in __anon600fc67a0202()
44 for (unsigned i = 0; i < DEFAULT_CAPACITY1; i++) { in TEST_F()
45 for (unsigned j = 0; j < DEFAULT_CAPACITY1; j++) { in TEST_F()
58 for (unsigned i = 0; i < DEFAULT_CAPACITY1; i++) { in TEST_F()
59 for (unsigned j = 0; j < DEFAULT_CAPACITY1; j++) { in TEST_F()
117 const unsigned DEFAULT_CAPACITY2 = 5;
118 const unsigned DEFAULT_EDGES2 = 6;
119 ::std::pair<unsigned, unsigned> test_edges2[DEFAULT_EDGES2] = {{0, 1}, {1, 2}, {2, 0}, {0, 3}, {2, …
[all …]
/arkcompiler/runtime_core/verifier/tests/
Dverify_constant_pool_tests.cpp95 std::vector<unsigned char> buffer(std::istreambuf_iterator<char>(base_file), {});
102 buffer[i] = static_cast<unsigned char>(new_method_id[0]);
103 buffer[i + 1] = static_cast<unsigned char>(new_method_id[1]);
122 std::vector<unsigned char> buffer_0(std::istreambuf_iterator<char>(base_file_02), {});
125 … buffer_0[12] = static_cast<unsigned char>(panda_file::LAST_CONTAINS_LITERAL_IN_HEADER_VERSION[0]);
126 … buffer_0[13] = static_cast<unsigned char>(panda_file::LAST_CONTAINS_LITERAL_IN_HEADER_VERSION[1]);
127 … buffer_0[14] = static_cast<unsigned char>(panda_file::LAST_CONTAINS_LITERAL_IN_HEADER_VERSION[2]);
128 … buffer_0[15] = static_cast<unsigned char>(panda_file::LAST_CONTAINS_LITERAL_IN_HEADER_VERSION[3]);
155 std::vector<unsigned char> buffer(std::istreambuf_iterator<char>(base_file), {});
162 buffer[i] = static_cast<unsigned char>(new_literal_id[0]);
[all …]
Dutils.cpp23 void GenerateModifiedAbc(const std::vector<unsigned char> &buffer, const std::string &filename) in GenerateModifiedAbc()
35 void ConvertToLittleEndian(std::vector<unsigned char> &inner_id, const uint32_t &id) in ConvertToLittleEndian()
37 std::vector<unsigned char> bytes; in ConvertToLittleEndian()
39 unsigned char byte = static_cast<unsigned char>((id >> (i * 8)) & 0xff); in ConvertToLittleEndian()
44 void ModifyBuffer(std::unordered_map<uint32_t, uint32_t> &literal_map, std::vector<unsigned char> &… in ModifyBuffer()
48 std::vector<unsigned char> inner_id; in ModifyBuffer()
/arkcompiler/runtime_core/static_core/compiler/tests/
Dreg_alloc_interference_graph_test.cpp26 …InterferenceGraph BuildSubgraph(InterferenceGraph &origGr, unsigned count, ArenaVector<unsigned> &…
27 unsigned peoCount);
32 constexpr unsigned DEFAULT_CAPACITY1 = 10U;
33 unsigned g_testEdgeS1[2U][2U] = {{0U, 1U}, {7U, 4U}}; // NOLINT(modernize-avoid-c-arrays)
34 auto g_isInSet = [](unsigned a, unsigned b) { in __anon61136cb90202()
52 for (unsigned i = 0; i < DEFAULT_CAPACITY1; i++) { in TEST_F()
53 for (unsigned j = 0; j < DEFAULT_CAPACITY1; j++) { in TEST_F()
66 for (unsigned i = 0; i < DEFAULT_CAPACITY1; i++) { in TEST_F()
67 for (unsigned j = 0; j < DEFAULT_CAPACITY1; j++) { in TEST_F()
125 const unsigned DEFAULT_CAPACITY2 = 5;
[all …]
/arkcompiler/runtime_core/static_core/irtoc/backend/
Ddwarf_builder.h38 unsigned type;
39 unsigned flags;
40 unsigned link;
41 unsigned info;
49 …bool BuildGraphNestedFunction(unsigned symbol, const Function *func, Dwarf_Error &error, Dwarf_P_D…
51 bool BuildGraph(const Function *func, uint32_t codeOffset, unsigned symbol);
82 std::unordered_map<unsigned, unsigned> indexMap_;
83 std::unordered_map<unsigned, ELFIO::relocation_section_accessor> relMap_;
/arkcompiler/runtime_core/libpandabase/
Dglobals.h23 static constexpr unsigned BITS_PER_BYTE = 8;
24 static constexpr unsigned BITS_PER_UINT16 = sizeof(uint16_t) * BITS_PER_BYTE;
25 static constexpr unsigned BITS_PER_UINT32 = sizeof(uint32_t) * BITS_PER_BYTE;
26 static constexpr unsigned BITS_PER_UINT64 = sizeof(uint64_t) * BITS_PER_BYTE;
27 static constexpr unsigned BITS_PER_INTPTR = sizeof(intptr_t) * BITS_PER_BYTE;
29 static constexpr unsigned BITS_PER_BYTE_LOG2 = 3;
/arkcompiler/runtime_core/static_core/libpandabase/
Dglobals.h23 static constexpr unsigned BITS_PER_BYTE = 8;
24 static constexpr unsigned BITS_PER_UINT16 = sizeof(uint16_t) * BITS_PER_BYTE;
25 static constexpr unsigned BITS_PER_UINT32 = sizeof(uint32_t) * BITS_PER_BYTE;
26 static constexpr unsigned BITS_PER_UINT64 = sizeof(uint64_t) * BITS_PER_BYTE;
27 static constexpr unsigned BITS_PER_INTPTR = sizeof(intptr_t) * BITS_PER_BYTE;
29 static constexpr unsigned BITS_PER_BYTE_LOG2 = 3;
/arkcompiler/toolchain/websocket/
Dhandshake_helper.cpp21 bool WebSocketKeyEncoder::EncodeKey(std::string_view key, unsigned char (&destination)[ENCODED_KEY_… in EncodeKey()
27 return EncodeKey(reinterpret_cast<unsigned char *>(buffer.data()), buffer.size(), destination); in EncodeKey()
31 bool WebSocketKeyEncoder::EncodeKey(const unsigned char(&key)[KEY_LENGTH + 1], in EncodeKey()
32 unsigned char (&destination)[ENCODED_KEY_LEN + 1]) in EncodeKey()
35 unsigned char buffer[bufferSize]; in EncodeKey()
43 bool WebSocketKeyEncoder::EncodeKey(const unsigned char *source, size_t length, in EncodeKey()
44 unsigned char (&destination)[ENCODED_KEY_LEN + 1]) in EncodeKey()
46 unsigned char hash[SHA_DIGEST_LENGTH]; in EncodeKey()
Dhandshake_helper.h36 static bool EncodeKey(std::string_view key, unsigned char (&destination)[ENCODED_KEY_LEN + 1]);
37 …static bool EncodeKey(const unsigned char(&key)[KEY_LENGTH + 1], unsigned char (&destination)[ENCO…
40 static bool EncodeKey(const unsigned char *source, size_t length,
41 unsigned char (&destination)[ENCODED_KEY_LEN + 1]);
79 const unsigned char (&encodedKey)[WebSocketKeyEncoder::ENCODED_KEY_LEN + 1]) in ProtocolUpgradeBuilder()
85 … constexpr void SetKey(const unsigned char (&encodedKey)[WebSocketKeyEncoder::ENCODED_KEY_LEN + 1]) in SetKey()
/arkcompiler/ets_runtime/ecmascript/compiler/codegen/maple/maple_ir/include/
Dopcode_info.h41 constexpr unsigned long OPCODEISSTMT = 1ULL << kOpcodePropIsStmt;
42 constexpr unsigned long OPCODEISVARSIZE = 1ULL << kOpcodePropIsVarSize;
43 constexpr unsigned long OPCODENOTMMPL = 1ULL << kOpcodePropNotMMPL;
44 constexpr unsigned long OPCODEISCOMPARE = 1ULL << kOpcodePropIsCompare;
45 constexpr unsigned long OPCODEISTYPECVT = 1ULL << kOpcodePropIsTypeCvt;
46 constexpr unsigned long OPCODEHASSSAUSE = 1ULL << kOpcodePropHasSSAUse;
47 constexpr unsigned long OPCODEHASSSADEF = 1ULL << kOpcodePropHasSSADef;
48 constexpr unsigned long OPCODEISCALL = 1ULL << kOpcodePropIsCall;
49 constexpr unsigned long OPCODEISCALLASSIGNED = 1ULL << kOpcodePropIsCallAssigned;
50 constexpr unsigned long OPCODENOTPURE = 1ULL << kOpcodePropNotPure;
[all …]
/arkcompiler/ets_frontend/es2panda/util/
Dbase64.cpp32 encodedRes[i] = base64CharSet[(static_cast<unsigned int>(inputString[j]) & 0xff) >> 2]; in Base64Encode()
34 encodedRes[i + 1] = base64CharSet[(static_cast<unsigned int>(inputString[j]) & 0x03) << 4 | in Base64Encode()
35 (static_cast<unsigned int>(inputString[j + 1]) & 0xf0) >> 4]; in Base64Encode()
37 … encodedRes[i + 2] = base64CharSet[(static_cast<unsigned int>(inputString[j + 1]) & 0x0f) << 2 | in Base64Encode()
38 (static_cast<unsigned int>(inputString[j + 2]) & 0xc0) >> 6]; in Base64Encode()
40 encodedRes[i + 3] = base64CharSet[static_cast<unsigned int>(inputString[j + 2]) & 0x3f]; in Base64Encode()
93 firstChar = decodeTable[static_cast<unsigned char>(base64String[i])]; in Base64Decode()
94 secondChar = decodeTable[static_cast<unsigned char>(base64String[i + 1])]; in Base64Decode()
95 thirdChar = decodeTable[static_cast<unsigned char>(base64String[i + 2])]; in Base64Decode()
96 fourthChar = decodeTable[static_cast<unsigned char>(base64String[i + 3])]; in Base64Decode()
[all …]
/arkcompiler/runtime_core/static_core/runtime/
Dthread_manager.h59 …bool EnumerateThreads(const Callback &cb, unsigned int incMask = static_cast<unsigned int>(Enumera…
60unsigned int xorMask = static_cast<unsigned int>(EnumerationFlag::NONE)) const
83 bool SatisfyTheMask(ManagedThread *t, unsigned int mask) const in SatisfyTheMask()
85 if ((mask & static_cast<unsigned int>(EnumerationFlag::ALL)) != 0) { in SatisfyTheMask()
96 if ((mask & static_cast<unsigned int>(EnumerationFlag::MANAGED_CODE_THREAD)) != 0) { in SatisfyTheMask()
98 if ((mask & static_cast<unsigned int>(EnumerationFlag::NON_CORE_THREAD)) != 0) { in SatisfyTheMask()
105 if ((mask & static_cast<unsigned int>(EnumerationFlag::VM_THREAD)) != 0) { in SatisfyTheMask()
112 …bool ApplyCallbackToThread(const Callback &cb, ManagedThread *t, unsigned int incMask, unsigned in… in ApplyCallbackToThread()
124 …virtual bool EnumerateThreadsImpl(const Callback &cb, unsigned int incMask, unsigned int xorMask) …
143unsigned int incMask = static_cast<unsigned int>(EnumerationFlag::ALL),
[all …]
/arkcompiler/ets_runtime/ecmascript/compiler/codegen/maple/maple_util/src/
Dnamemangler.cpp73 unsigned char c = static_cast<unsigned char>(namePtr[i]); in DecodeName()
85 c = static_cast<unsigned char>(namePtr[i++]); in DecodeName()
87 c = static_cast<unsigned char>(namePtr[i++]); in DecodeName()
89 c = static_cast<unsigned char>(namePtr[i++]); in DecodeName()
91 c = static_cast<unsigned char>(namePtr[i++]); in DecodeName()
95unsigned int count = UTF16ToUTF8(str, str16, 1, false) >> 16; // shift 16 to get count in DecodeName()
110 c = static_cast<unsigned char>(namePtr[i++]); in DecodeName()
111 unsigned int v = (c <= '9') ? c - '0' : c - 'A' + kNumLimit; in DecodeName()
112 unsigned int asc = v << kCodeOffset; in DecodeName()
116 c = static_cast<unsigned char>(namePtr[i++]); in DecodeName()
[all …]
/arkcompiler/jsvm/src/inspector/
Dinspector_utils.cpp89 …outputBuffer[i] = BASE64_CHAR_SET[(static_cast<unsigned int>(inputString[j]) & 0xff) >> ByteOffset… in Base64Encode()
92 … BASE64_CHAR_SET[(static_cast<unsigned int>(inputString[j]) & 0x03) << ByteOffset::BIT_4 | in Base64Encode()
93 … (static_cast<unsigned int>(inputString[j + ByteOffset::BYTE_1]) & 0xf0) >> in Base64Encode()
97 … BASE64_CHAR_SET[(static_cast<unsigned int>(inputString[j + ByteOffset::BYTE_1]) & 0x0f) << in Base64Encode()
99 … (static_cast<unsigned int>(inputString[j + ByteOffset::BYTE_2]) & 0xc0) >> in Base64Encode()
103 BASE64_CHAR_SET[static_cast<unsigned int>(inputString[j + ByteOffset::BYTE_2]) & 0x3f]; in Base64Encode()
110 … BASE64_CHAR_SET[(static_cast<unsigned int>(inputString[strLen - ByteOffset::BYTE_1]) & 0xff) >> in Base64Encode()
113 … BASE64_CHAR_SET[(static_cast<unsigned int>(inputString[strLen - ByteOffset::BYTE_1]) & 0x03) << in Base64Encode()
121 … BASE64_CHAR_SET[(static_cast<unsigned int>(inputString[strLen - ByteOffset::BYTE_2]) & 0xff) >> in Base64Encode()
124 … BASE64_CHAR_SET[(static_cast<unsigned int>(inputString[strLen - ByteOffset::BYTE_2]) & 0x03) << in Base64Encode()
[all …]
/arkcompiler/runtime_core/static_core/compiler/optimizer/ir/
Dvisitor.inc22 TABLE[static_cast<unsigned>(inst->GetOpcode())](this, inst);
33 TABLE[static_cast<unsigned>(inst->GetOpcode())](this, inst);
42 TABLE[static_cast<unsigned>(inst->GetOpcode())](this, inst);
47 TABLE[static_cast<unsigned>(inst->GetOpcode())](this, inst);
52 static constexpr VisitFunc TABLE[static_cast<unsigned>(Opcode::NUM_OPCODES)] = {
/arkcompiler/runtime_core/libpandafile/
Dtypes.yaml31 - unsigned
47 - unsigned
63 - unsigned
79 - unsigned
111 - unsigned
/arkcompiler/runtime_core/static_core/libpandafile/
Dtypes.yaml31 - unsigned
47 - unsigned
63 - unsigned
79 - unsigned
111 - unsigned
/arkcompiler/runtime_core/compiler/optimizer/ir/
Dvisitor.inc21 TABLE[static_cast<unsigned>(inst->GetOpcode())](this, inst);
31 TABLE[static_cast<unsigned>(inst->GetOpcode())](this, inst);
39 TABLE[static_cast<unsigned>(inst->GetOpcode())](this, inst);
43 TABLE[static_cast<unsigned>(inst->GetOpcode())](this, inst);
48 static constexpr VisitFunc TABLE[static_cast<unsigned>(Opcode::NUM_OPCODES)] = {
/arkcompiler/ets_runtime/ecmascript/compiler/aot_file/
Delf_checker.cpp35 static constexpr unsigned int iByteMuskOff0 = 0xffu; in ByteSwap()
36 static constexpr unsigned int iByteMuskOff1 = iByteMuskOff0 << 8; in ByteSwap()
37 static constexpr unsigned int iByteMuskOff2 = iByteMuskOff1 << 8; in ByteSwap()
38 static constexpr unsigned int iByteMuskOff3 = iByteMuskOff2 << 8; in ByteSwap()
39 static constexpr unsigned long long llByteMuskOff0 = 0xffuLL; in ByteSwap()
40 static constexpr unsigned long long llByteMuskOff1 = llByteMuskOff0 << 8; in ByteSwap()
41 static constexpr unsigned long long llByteMuskOff2 = llByteMuskOff1 << 8; in ByteSwap()
42 static constexpr unsigned long long llByteMuskOff3 = llByteMuskOff2 << 8; in ByteSwap()
43 static constexpr unsigned long long llByteMuskOff4 = llByteMuskOff3 << 8; in ByteSwap()
44 static constexpr unsigned long long llByteMuskOff5 = llByteMuskOff4 << 8; in ByteSwap()
[all …]

12345678910>>...18