Home
last modified time | relevance | path

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

12345678910>>...20

/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 __anonc719969c0202()
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 __anon5ff47fdb0202()
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/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/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/toolchain/websocket/
Dhandshake_helper.cpp23 std::array<unsigned char, SEC_WEBSOCKET_KEY_BYTES_LEN> bytes {}; in GenerateRandomSecWSKey()
29 std::array<unsigned char, KEY_LENGTH + 1> encoded {}; in GenerateRandomSecWSKey()
40 bool WebSocketKeyEncoder::EncodeKey(std::string_view key, unsigned char (&destination)[ENCODED_KEY_… in EncodeKey()
46 return EncodeKey(reinterpret_cast<unsigned char *>(buffer.data()), buffer.size(), destination); in EncodeKey()
50 bool WebSocketKeyEncoder::EncodeKey(const unsigned char(&key)[KEY_LENGTH + 1], in EncodeKey()
51 unsigned char (&destination)[ENCODED_KEY_LEN + 1]) in EncodeKey()
54 unsigned char buffer[bufferSize]; in EncodeKey()
62 bool WebSocketKeyEncoder::EncodeKey(const unsigned char *source, size_t length, in EncodeKey()
63 unsigned char (&destination)[ENCODED_KEY_LEN + 1]) in EncodeKey()
65 unsigned char hash[SHA_DIGEST_LENGTH]; in EncodeKey()
Dhandshake_helper.h38 static bool EncodeKey(std::string_view key, unsigned char (&destination)[ENCODED_KEY_LEN + 1]);
39 …static bool EncodeKey(const unsigned char(&key)[KEY_LENGTH + 1], unsigned char (&destination)[ENCO…
42 static bool EncodeKey(const unsigned char *source, size_t length,
43 unsigned char (&destination)[ENCODED_KEY_LEN + 1]);
81 const unsigned char (&encodedKey)[WebSocketKeyEncoder::ENCODED_KEY_LEN + 1]) in ProtocolUpgradeBuilder()
87 … 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/ets_runtime/ecmascript/dfx/stackinfo/tests/
Djs_stackinfo_test2.cpp26 bool is_entry_frame(unsigned int frame_type) in is_entry_frame()
33 bool is_js_function_frame(unsigned int frame_type) in is_js_function_frame()
42 bool is_native_function_frame(unsigned int frame_type) in is_native_function_frame()
62 uintptr_t calc_pc_addr_from_fp_addr(uintptr_t fp_addr, unsigned int frame_type) in calc_pc_addr_from_fp_addr()
70 uintptr_t calc_fp_addr_from_fp_addr(uintptr_t fp_addr, unsigned int frame_type) in calc_fp_addr_from_fp_addr()
83 int next_ark_frame(unwind_user_context_s *ctx, uintptr_t fp_addr, unsigned int curr_frame_type, in next_ark_frame()
117 unwind_stack_frame_s *frame, unsigned int *ret_frame_type) in next_ark_frame()
133 err = next_ark_frame(ctx, fp_addr, (unsigned int)frame_type, frame, &frame_avail); in next_ark_frame()
138 *ret_frame_type = (unsigned int)frame_type; in next_ark_frame()
150 unsigned int frame_type = 0U; in step_ark_frame()
/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/runtime_core/static_core/libpandafile/
Dtypes.yaml31 - unsigned
47 - unsigned
63 - unsigned
79 - unsigned
111 - unsigned
/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/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/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/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 …]

12345678910>>...20