Home
last modified time | relevance | path

Searched refs:width (Results 1 – 25 of 61) sorted by relevance

123

/arkcompiler/runtime_core/libpandabase/utils/
Dbit_helpers.h29 template <size_t width>
32 width <= std::numeric_limits<uint8_t>::digits, uint8_t,
34 width <= std::numeric_limits<uint16_t>::digits, uint16_t,
35 std::conditional_t<width <= std::numeric_limits<uint32_t>::digits, uint32_t,
36 … std::conditional_t<width <= std::numeric_limits<uint64_t>::digits, uint64_t, void>>>>;
39 template <size_t width>
40 using UnsignedTypeHelperT = typename UnsignedTypeHelper<width>::type;
42 template <size_t width, bool is_signed>
45 …nditional_t<is_signed, std::make_signed_t<UnsignedTypeHelperT<width>>, UnsignedTypeHelperT<width>>;
48 template <size_t width, bool is_signed>
[all …]
Dbit_memory_region-inl.h33 size_t width = BITS_PER_WORD - (BITS_PER_HEX_DIGIT - Size() % BITS_PER_HEX_DIGIT); in Dump() local
34 for (ssize_t i = Size() - width; i >= 0; i -= width) { in Dump()
35 auto val = Read(i, width); in Dump()
38 … os << std::setw(static_cast<int>(width / BITS_PER_HEX_DIGIT)) << std::setfill('0'); in Dump()
46 width = std::min<size_t>(i, BITS_PER_WORD); in Dump()
/arkcompiler/ets_runtime/test/typeinfer/automatedcases/
DdestructuringAssignmentWithDefault.ts40 function f1(options?: { color?: string, width?: number }) {
41 let { color, width } = options || {};
43 AssertType(width, "union");
48 ({ color, width } = options || {});
49 AssertType(({ color, width } = options || {}), "{ color?: union; width?: union; }");
50 AssertType({ color, width } = options || {}, "{ color?: union; width?: union; }");
51 AssertType({ color, width }, "{ color: union; width: union; }");
53 AssertType(width, "union");
103 function f3(options?: { color: string, width: number }) {
104 let { color, width } = options || {};
[all …]
DcontextualTypeArrayReturnType.ts22 initialLeftPageTransforms?: (width: number) => NamedTransform[];
35 AssertType({ initialLeftPageTransforms: (width: number) => { return [ {'ry': n…
37 initialLeftPageTransforms: (width: number) => {
39 AssertType(width, "number");
40 AssertType((width: number) => { return [ {'ry': null } ]; }, "(number) …
DmappedTypes2.ts73 width: number; property
80 width?: number; property
87 readonly width: number; property
101 assign(s2, { width: 10, height: 20 });
102 AssertType(assign(s2, { width: 10, height: 20 }), "void");
105 AssertType({ width: 10, height: 20 }, "{ width: number; height: number; }");
106 AssertType(width, "number");
195 p.width.set(42);
196 AssertType(p.width.set(42), "void");
197 AssertType(p.width.set, "(number) => void");
[all …]
DparserCommaInTypeMemberList1.ts21 let v: { workItem: any, width: string };
24 AssertType(width, "string");
DtypeParameterAsTypeParameterConstraint.ts94 foo2(1, { width: 3, length: 2 });
95 AssertType(foo2(1, { width: 3, length: 2 }), "{ width: number; length: number; }");
98 AssertType({ width: 3, length: 2 }, "{ width: number; length: number; }");
99 AssertType(width, "number");
/arkcompiler/ets_frontend/
DREADME_zh.md70 <table><thead align="left"><tr id="row535415467591"><th class="cellrowborder" valign="top" width="1…
72 <th class="cellrowborder" valign="top" width="19.33806619338066%" id="mcps1.1.6.1.3"><p id="p157281…
74 <th class="cellrowborder" valign="top" width="25.82741725827417%" id="mcps1.1.6.1.4"><p id="p103276…
76 <th class="cellrowborder" valign="top" width="35.066493350664935%" id="mcps1.1.6.1.5"><p id="p18354…
80 <tbody><tr id="row1435412465598"><td class="cellrowborder" valign="top" width="12.898710128987101%"…
82 <td class="cellrowborder" valign="top" width="19.33806619338066%" headers="mcps1.1.6.1.3 "><p id="p…
84 <td class="cellrowborder" valign="top" width="25.82741725827417%" headers="mcps1.1.6.1.4 "><p id="p…
86 <td class="cellrowborder" valign="top" width="35.066493350664935%" headers="mcps1.1.6.1.5 "><p id="…
89 <tr id="row1435412465598"><td class="cellrowborder" valign="top" width="12.898710128987101%" header…
91 <td class="cellrowborder" valign="top" width="19.33806619338066%" headers="mcps1.1.6.1.3 "><p id="p…
[all …]
DREADME.md70 <table><thead align="left"><tr id="row535415467591"><th class="cellrowborder" valign="top" width="1…
72 <th class="cellrowborder" valign="top" width="19.33806619338066%" id="mcps1.1.6.1.3"><p id="p157281…
74 <th class="cellrowborder" valign="top" width="25.82741725827417%" id="mcps1.1.6.1.4"><p id="p103276…
76 <th class="cellrowborder" valign="top" width="35.066493350664935%" id="mcps1.1.6.1.5"><p id="p18354…
80 <tbody><tr id="row1435412465598"><td class="cellrowborder" valign="top" width="12.898710128987101%"…
82 <td class="cellrowborder" valign="top" width="19.33806619338066%" headers="mcps1.1.6.1.3 "><p id="p…
84 <td class="cellrowborder" valign="top" width="25.82741725827417%" headers="mcps1.1.6.1.4 "><p id="p…
86 <td class="cellrowborder" valign="top" width="35.066493350664935%" headers="mcps1.1.6.1.5 "><p id="…
89 <tr id="row1435412465598"><td class="cellrowborder" valign="top" width="12.898710128987101%" header…
91 <td class="cellrowborder" valign="top" width="19.33806619338066%" headers="mcps1.1.6.1.3 "><p id="p…
[all …]
/arkcompiler/ets_runtime/ecmascript/jspandafile/bytecode_inst/
Dinstruction.h69 void Write(uint32_t value, uint32_t offset, uint32_t width) in Write() argument
72 if (memcpy_s(dst, width, &value, width) != 0) { in Write()
83 inline auto ReadHelper(size_t byteoffset, size_t bytecount, size_t offset, size_t width) const in ReadHelper() argument
96 size_t left_shift = sizeof(R) * BYTE_WIDTH - width; in ReadHelper()
107 template <size_t offset, size_t width, bool is_signed = false>
112 constexpr size_t BYTE_OFFSET_END = (offset + width + BYTE_WIDTH - 1) / BYTE_WIDTH; in Read()
116 using return_type = helpers::TypeHelperT<width, is_signed>; in Read()
118 return ReadHelper<return_type, storage_type>(BYTE_OFFSET, BYTE_COUNT, offset, width); in Read()
122 inline auto Read64(size_t offset, size_t width) const in Read64() argument
127 ASSERT((offset % BYTE_WIDTH) + width <= BIT64); in Read64()
[all …]
/arkcompiler/ets_runtime/docs/
Dusing-the-toolchain.md24 <table><thead align="left"><tr id="row19706343164411"><th class="cellrowborder" valign="top" width=…
26 <th class="cellrowborder" valign="top" width="6.830683068306829%" id="mcps1.1.6.1.2"><p id="p954814…
28 <th class="cellrowborder" valign="top" width="44.34443444344434%" id="mcps1.1.6.1.3"><p id="p170614…
30 <th class="cellrowborder" valign="top" width="26.01260126012601%" id="mcps1.1.6.1.4"><p id="p184125…
32 <th class="cellrowborder" valign="top" width="7.520752075207521%" id="mcps1.1.6.1.5"><p id="p158941…
36 <tbody><tr id="row770684312444"><td class="cellrowborder" valign="top" width="15.29152915291529%" h…
38 <td class="cellrowborder" valign="top" width="6.830683068306829%" headers="mcps1.1.6.1.2 "><p id="p…
40 <td class="cellrowborder" valign="top" width="44.34443444344434%" headers="mcps1.1.6.1.3 "><p id="p…
42 <td class="cellrowborder" valign="top" width="26.01260126012601%" headers="mcps1.1.6.1.4 "><p id="p…
44 <td class="cellrowborder" valign="top" width="7.520752075207521%" headers="mcps1.1.6.1.5 "><p id="p…
[all …]
DREADME_zh.md222 <table><thead align="left"><tr id="row101462717303"><th class="cellrowborder" valign="top" width="5…
224 <th class="cellrowborder" valign="top" width="50%" id="mcps1.1.3.1.2"><p id="p11592710304"><a name=…
228 <tbody><tr id="row2015172763014"><td class="cellrowborder" valign="top" width="50%" headers="mcps1.…
230 <td class="cellrowborder" valign="top" width="50%" headers="mcps1.1.3.1.2 "><p id="p13151527133011"…
233 <tr id="row1015527173015"><td class="cellrowborder" valign="top" width="50%" headers="mcps1.1.3.1.1…
235 <td class="cellrowborder" valign="top" width="50%" headers="mcps1.1.3.1.2 "><p id="p9556101593120">…
238 <tr id="row1015112763020"><td class="cellrowborder" valign="top" width="50%" headers="mcps1.1.3.1.1…
240 <td class="cellrowborder" valign="top" width="50%" headers="mcps1.1.3.1.2 "><p id="p1615627173019">…
243 <tr id="row131515277307"><td class="cellrowborder" valign="top" width="50%" headers="mcps1.1.3.1.1 …
245 <td class="cellrowborder" valign="top" width="50%" headers="mcps1.1.3.1.2 "><p id="p1655718513105">…
[all …]
Ddevelopment-example.md151 <table><thead align="left"><tr id="row101462717303"><th class="cellrowborder" valign="top" width="5…
153 <th class="cellrowborder" valign="top" width="50%" id="mcps1.1.3.1.2"><p id="p11592710304"><a name=…
157 <tbody><tr id="row2015172763014"><td class="cellrowborder" valign="top" width="50%" headers="mcps1.…
159 <td class="cellrowborder" valign="top" width="50%" headers="mcps1.1.3.1.2 "><p id="p13151527133011"…
162 <tr id="row1015527173015"><td class="cellrowborder" valign="top" width="50%" headers="mcps1.1.3.1.1…
164 <td class="cellrowborder" valign="top" width="50%" headers="mcps1.1.3.1.2 "><p id="p9556101593120">…
167 <tr id="row1015112763020"><td class="cellrowborder" valign="top" width="50%" headers="mcps1.1.3.1.1…
169 <td class="cellrowborder" valign="top" width="50%" headers="mcps1.1.3.1.2 "><p id="p1615627173019">…
172 <tr id="row131515277307"><td class="cellrowborder" valign="top" width="50%" headers="mcps1.1.3.1.1 …
174 <td class="cellrowborder" valign="top" width="50%" headers="mcps1.1.3.1.2 "><p id="p1820821404711">…
[all …]
/arkcompiler/runtime_core/libpandafile/
Dbytecode_instruction-inl.h26 …ecodeInst<Mode>::ReadHelper(size_t byteoffset, size_t bytecount, size_t offset, size_t width) const in ReadHelper() argument
39 size_t left_shift = sizeof(R) * BYTE_WIDTH - width; in ReadHelper()
51 template <size_t offset, size_t width, bool is_signed /* = false */>
56 constexpr size_t BYTE_OFFSET_END = (offset + width + BYTE_WIDTH - 1) / BYTE_WIDTH; in Read()
60 using return_type = helpers::TypeHelperT<width, is_signed>; in Read()
62 return ReadHelper<return_type, storage_type>(BYTE_OFFSET, BYTE_COUNT, offset, width); in Read()
67 inline auto BytecodeInst<Mode>::Read64(size_t offset, size_t width) const in Read64() argument
72 ASSERT((offset % BYTE_WIDTH) + width <= BIT64); in Read64()
75 size_t byteoffset_end = (offset + width + BYTE_WIDTH - 1) / BYTE_WIDTH; in Read64()
81 return ReadHelper<return_type, storage_type>(byteoffset, bytecount, offset, width); in Read64()
Dpandafile_isapi.rb61 sig = format_ops(group.first.format).each { |o| o.width = storage_width(o.width) }
64 sig[i].width = [o.width, sig[i].width].max
69 o.type, o.name = is_jump ? ['const Label &', 'label'] : ["int#{o.width}_t", o.name]
71 o.type = "uint#{o.width}_t"
Dhelpers.h62 template <size_t width>
66 constexpr size_t BITWIDTH = BYTE_WIDTH * width; in Read()
70 THROW_IF(sp->Size() < width, INVALID_SPAN_OFFSET); in Read()
72 for (size_t i = 0; i < width; i++) { in Read()
76 *sp = sp->SubSpan(width); in Read()
114 template <size_t width>
117 return Read<width>(&sp); in Read()
/arkcompiler/ets_frontend/arkguard/test/grammar/interface_validation/
Dinterface_index_signature.ts20 width?: number; property
30 if (config.width) {
31 newSquare.area = config.width * config.width;
36 let mySquare = createSquare({colr: 'red', width: 100});
Dinterface_optional_attributes.ts20 width?: number; property
28 if (config.width) {
29 newSquare.area = config.width * config.width;
Dinterface_readonly_attributes.ts20 readonly width: number; property
23 let mySquare: Square = {color: 'black', width: 50};
26 assert(mySquare.width === 50, 'success');
Dinterface_merge.ts20 width: number; property
27 let box: Box = {height: 5, width: 6, scale: 10};
31 assert(box.width === 6, 'success');
/arkcompiler/ets_runtime/tools/circuit_viewer/src/engine/
DXDefine.js20 Scr.width = w;
26 if (Scr.logicw == w && Scr.width == w && Scr.logich == h && Scr.height == h)
30 Scr.width = w;
35 Scr.width = info.windowWidth;
41 Scr.width = 320;
/arkcompiler/ets_runtime/tools/circuit_viewer/src/
Dindex.js24 canvas.width = window.innerWidth - sideWidth;
29 canvas.width != window.innerWidth - sideWidth ||
32 canvas.width = window.innerWidth - sideWidth;
35 Scr.setLogicScreenSize(canvas.width, canvas.height);
56 Scr.setLogicScreenSize(canvas.width, canvas.height);
/arkcompiler/runtime_core/libpandafile/templates/tests/
Dbytecode_emitter_tests_gen.h.erb204 % def get_min(width, is_signed)
205 % if width < 8
207 % return '%d' % ((1 << (width - 1)) - (1 << width))
209 % return '%d' % ((1 << (width - 1)))
213 % return 'std::numeric_limits<int%d_t>::min()' % width
215 % return '%s + 1' % get_max(width / 2, false)
220 % def get_max(width, is_signed)
221 % if width < 8
223 % return '%d' % ((1 << (width - 1)) - 1)
225 % return '%d' % ((1 << width) - 1)
[all …]
/arkcompiler/ets_frontend/arkguard/test/grammar/advanced_type/
Ddiscriminated_unions.ts25 width: number; property
43 result = s.height * s.width;
/arkcompiler/runtime_core/assembler/
Dassembly-ins.h35 #define OPLIST(opcode, name, optype, width, flags, def_idx, use_idxs) opcode, argument
70 #define OPLIST(opcode, name, optype, width, flags, def_idx, use_idxs) flags, argument
75 #define OPLIST(opcode, name, optype, width, flags, def_idx, use_idxs) width, argument
80 #define OPLIST(opcode, name, optype, width, flags, def_idx, use_idxs) def_idx, argument
84 #define OPLIST(opcode, name, optype, width, flags, def_idx, use_idxs) use_idxs, argument

123