/dports/databases/xtrabackup8/percona-xtrabackup-8.0.14/storage/ndb/src/kernel/vm/ |
H A D | ComposedSlotPool.hpp | 60 unsigned int slot_size, 68 bool startup(Uint32 slot_size); 180 Uint32 slot_size, Uint32 entry_count) in getMemoryNeed() argument 209 if (!seize_pool2(p, slot_size)) in seize() 226 if (!m_pool2.seize(p, slot_size)) in seize_pool2() 242 m_pool1.release(p, slot_size); in release() 247 m_pool2.release(p, slot_size); in release() 274 m_slot_size = slot_size; in init() 325 Ptr<Slot>& p, Uint32 slot_size) const in getUncheckedPtrRO() 340 Ptr<Slot>& p, Uint32 slot_size) const in getUncheckedPtrRO_pool2() [all …]
|
H A D | StaticSlotPool.hpp | 62 Uint32 slot_size, 65 bool startup(Uint32* startup_count_ptr, Uint32 slot_size); 67 bool release(Ptr<Slot> p, Uint32 slot_size); 68 bool seize(Ptr<Slot>& p, Uint32 slot_size); 69 Slot* getPtr(Uint32 i, Uint32 slot_size) const; 70 void getPtr(Ptr<Slot>& p, Uint32 slot_size) const; 78 Uint32 slot_size) const; 115 LocalSlotPool<StaticSlotPool> pool(this, slot_size); in seize() 129 LocalSlotPool<StaticSlotPool> pool(this, slot_size); in release() 163 slot_size, in getPtr() [all …]
|
H A D | TransientSlotPool.hpp | 76 Uint32 slot_size, 80 bool seize(Ptr<Type> &p, Uint32 slot_size); 81 void release(Ptr<Type> p, Uint32 slot_size); 82 Type *getPtr(Uint32 i, Uint32 slot_size) const; 83 void getPtr(Ptr<Type> &p, Uint32 slot_size) const; 85 bool getUncheckedPtrRO(Ptr<Type> &p, Uint32 slot_size) const; 86 bool getUncheckedPtrRW(Ptr<Type> &p, Uint32 slot_size) const; 91 static Uint64 getMemoryNeed(Uint32 slot_size, Uint32 entry_count); 97 bool expand(Uint32 slot_size); 98 bool shrink(Uint32 slot_size); [all …]
|
H A D | TransientSlotPool.inline.hpp.inc | 62 if (unlikely(!expand(slot_size))) 68 LocalSlotPool<TransientSlotPool> pool(this, slot_size); 90 Page* page = get_page_from_slot(p, slot_size); 130 Page* page = get_page_from_slot(p, slot_size); 144 shrink(slot_size); 145 shrink(slot_size); 177 slot_size, 189 p.p = getPtr(p.i, slot_size); 209 &page->m_data[page_index * slot_size]); 234 &page->m_data[page_index * slot_size]); [all …]
|
H A D | TransientSlotPool.cpp | 47 Uint32 slot_size, in init() argument 72 bool TransientSlotPool::expand(Uint32 slot_size) in expand() argument 89 LocalSlotPool<TransientSlotPool> pool(this, slot_size); in expand() 112 Uint32 slot_size) const in getUncheckedPtrs() 138 Uint32 *slot_ptr = &page->m_data[page_index * slot_size]; in getUncheckedPtrs() 141 page_index++, index++, ptrs_cnt++, slot_ptr += slot_size) in getUncheckedPtrs() 183 if (likely(seize(ptr[j], slot_size))) in rearrange_free_list_and_shrink() 191 release(ptr[j], slot_size); in rearrange_free_list_and_shrink() 197 if (!shrink(slot_size)) in rearrange_free_list_and_shrink() 206 bool TransientSlotPool::shrink(Uint32 slot_size) in shrink() argument [all …]
|
H A D | StaticSlotPool.cpp | 37 Uint32 slot_size, in init() argument 42 const Uint32 slots_per_page = Page::DATA_WORDS_PER_PAGE / slot_size; in init() 75 Uint32 slot_size) in startup() argument 83 const Uint32 slots_per_page = Page::DATA_WORDS_PER_PAGE / slot_size; in startup() 89 LocalSlotPool<StaticSlotPool> pool(this, slot_size); in startup() 94 void* pv = static_cast<void*>(&page.p->m_data[(slots_per_page - i - 1)* slot_size]); in startup()
|
/dports/lang/v/v-0.1.29/vlib/bitfield/ |
H A D | bitfield.v | 25 slot_size = 32 215 if (output_size - 1) % slot_size < (input2.size - 1) % slot_size { 220 } else if (output_size - 1) % slot_size > (input2.size - 1) % slot_size { 258 tail := size % slot_size 261 for j in 0..slot_size { 317 start_offset := start % slot_size 319 start_slot := start / slot_size 320 end_slot := (end - 1) / slot_size 351 if end_offset == slot_size - 1 { 377 for j in 0..slot_size { [all …]
|
/dports/security/seal/SEAL-3.7.2/native/tests/seal/ |
H A D | evaluator.cpp | 187 size_t slot_size = 32; in TEST() local 226 size_t slot_size = 32; in TEST() local 286 size_t slot_size = 8; in TEST() local 350 size_t slot_size = 32; in TEST() local 389 size_t slot_size = 32; in TEST() local 447 size_t slot_size = 32; in TEST() local 505 size_t slot_size = 8; in TEST() local 568 size_t slot_size = 32; in TEST() local 607 size_t slot_size = 32; in TEST() local 665 size_t slot_size = 8; in TEST() local [all …]
|
H A D | encryptor.cpp | 569 size_t slot_size = 32; in TEST() local 599 for (size_t i = 0; i < slot_size; i++) in TEST() 607 size_t slot_size = 32; in TEST() local 637 for (size_t i = 0; i < slot_size; i++) in TEST() 645 size_t slot_size = 64; in TEST() local 694 size_t slot_size = 32; in TEST() local 743 size_t slot_size = 32; in TEST() local 779 for (size_t i = 0; i < slot_size; i++) in TEST() 793 for (size_t i = 0; i < slot_size; i++) in TEST() 801 size_t slot_size = 32; in TEST() local [all …]
|
/dports/lang/mono/mono-5.10.1.57/mono/utils/ |
H A D | lock-free-alloc.c | 104 unsigned int slot_size; member 367 addr = (char*)desc->sb + old_anchor.data.avail * desc->slot_size; in alloc_from_active_or_partial() 393 unsigned int slot_size, block_size, count, i; in alloc_from_new_sb() local 396 slot_size = desc->slot_size = heap->sc->slot_size; in alloc_from_new_sb() 398 count = LOCK_FREE_ALLOC_SB_USABLE_SIZE (block_size) / slot_size; in alloc_from_new_sb() 406 desc->slot_size = heap->sc->slot_size; in alloc_from_new_sb() 416 *(unsigned int*)((char*)desc->sb + i * slot_size) = i + 1; in alloc_from_new_sb() 418 *(unsigned int*)((char*)desc->sb + (count - 1) * slot_size) = 0; in alloc_from_new_sb() 544 …g_assert_OR_PRINT (desc->slot_size == desc->heap->sc->slot_size, "slot size doesn't match size cla… in descriptor_check_consistency() 575 gpointer addr = (char*)desc->sb + index * desc->slot_size; in descriptor_check_consistency() [all …]
|
/dports/www/chromium-legacy/chromium-88.0.4324.182/base/allocator/partition_allocator/ |
H A D | partition_bucket.h | 29 uint32_t slot_size; member 78 return static_cast<uint16_t>(get_bytes_per_span() / slot_size); in get_slots_per_span() 117 PA_DCHECK(slot_size <= kMaxBucketed); in GetSlotOffset() 125 offset_in_slot = (offset_in_slot * slot_size) >> kReciprocalShift; in GetSlotOffset() 126 PA_DCHECK(offset_in_slot_span % slot_size == offset_in_slot); in GetSlotOffset() 135 PA_DCHECK(slot_size <= kMaxBucketed); in GetSlotNumber() 139 PA_DCHECK(offset_in_slot_span / slot_size == offset_in_slot); in GetSlotNumber()
|
H A D | partition_root.cc | 23 size_t slot_size = bucket->slot_size; in PartitionPurgeSlotSpan() local 33 discardable_bytes = bucket->slot_size - used_bytes; in PartitionPurgeSlotSpan() 100 char* begin_ptr = ptr + (num_slots * slot_size); in PartitionPurgeSlotSpan() 127 ptr + (slot_size * slot_index)); in PartitionPurgeSlotSpan() 160 char* begin_ptr = ptr + (i * slot_size); in PartitionPurgeSlotSpan() 161 char* end_ptr = begin_ptr + slot_size; in PartitionPurgeSlotSpan() 254 stats_out->bucket_slot_size = bucket->slot_size; in PartitionDumpBucketStats() 499 slot_span->bucket->slot_size = new_slot_size; in ReallocDirectMappedInPlace() 617 if (bucket->slot_size >= SystemPageSize()) in PurgeMemory() 679 size_t slot_size = extent->bucket->slot_size; in DumpStats() local [all …]
|
H A D | partition_bucket.cc | 35 size_t slot_size = in PartitionDirectMap() local 47 size_t reserved_size = slot_size + PartitionPageSize(); in PartitionDirectMap() 57 PA_DCHECK(slot_size <= map_size); in PartitionDirectMap() 74 size_t committed_page_size = slot_size + SystemPageSize(); in PartitionDirectMap() 120 metadata->bucket.slot_size = slot_size; in PartitionDirectMap() 160 if (slot_size > MaxSystemPagesPerSlotSpan() * SystemPageSize()) { in get_system_pages_per_slot_span() 163 PA_DCHECK(!(slot_size % SystemPageSize())); in get_system_pages_per_slot_span() 175 size_t num_slots = page_size / slot_size; in get_system_pages_per_slot_span() 176 size_t waste = page_size - (num_slots * slot_size); in get_system_pages_per_slot_span() 204 slot_size = new_slot_size; in Init() [all …]
|
/dports/x11/stalonetray/stalonetray-0.8.3/src/ |
H A D | layout.c | 129 *width = grid_sz.x * settings.slot_size; in layout_get_size() 130 *height = grid_sz.y * settings.slot_size; in layout_get_size() 173 …ti->l.grd_rect.w = ti->l.wnd_sz.x / settings.slot_size + (ti->l.wnd_sz.x % settings.slot_size != 0… in grid_translate_from_window() 174 …ti->l.grd_rect.h = ti->l.wnd_sz.y / settings.slot_size + (ti->l.wnd_sz.y % settings.slot_size != 0… in grid_translate_from_window() 190 ti->l.icn_rect.x = ti->l.grd_rect.x * settings.slot_size; in layout_translate_to_window() 194 ti->l.icn_rect.y = ti->l.grd_rect.y * settings.slot_size; in layout_translate_to_window() 197 ti->l.icn_rect.w = ti->l.grd_rect.w * settings.slot_size; in layout_translate_to_window() 198 ti->l.icn_rect.h = ti->l.grd_rect.h * settings.slot_size; in layout_translate_to_window() 384 …grid_sz.x + pmt->sz_delta.x) * settings.slot_size - tray_data.xsh.width, 0, pmt->sz_delta.x * sett… in icon_placement_choose_best() 385 …grid_sz.y + pmt->sz_delta.y) * settings.slot_size - tray_data.xsh.height, 0, pmt->sz_delta.y * set… in icon_placement_choose_best() [all …]
|
/dports/devel/gdb/gdb-11.1/gdb/ |
H A D | trad-frame.c | 127 int slot_size = regmap->size; in trad_frame_set_reg_regmap() local 129 if (slot_size == 0 && regno != REGCACHE_MAP_SKIP) in trad_frame_set_reg_regmap() 130 slot_size = register_size (gdbarch, regno); in trad_frame_set_reg_regmap() 132 if (offs + slot_size > size) in trad_frame_set_reg_regmap() 136 offs += count * slot_size; in trad_frame_set_reg_regmap() 138 for (; count--; regno++, offs += slot_size) in trad_frame_set_reg_regmap() 154 if (slot_size >= register_size (gdbarch, regno)) in trad_frame_set_reg_regmap() 159 gdb_byte buf[slot_size]; in trad_frame_set_reg_regmap()
|
/dports/misc/libpostal/libpostal-1.1-alpha/src/sparkey/ |
H A D | hashwriter.c | 90 uint64_t pos = wanted_slot * slot_size; in hash_delete() 125 uint64_t next_pos = next_slot * slot_size; in hash_delete() 136 uint64_t pos3 = slot * slot_size; in hash_delete() 143 uint64_t pos3 = slot * slot_size; in hash_delete() 157 pos += slot_size; in hash_delete() 171 uint64_t pos = wanted_slot * slot_size; in hash_put() 223 pos += slot_size; in hash_put() 238 int slot_size = hash_header->address_size + hash_size; in calculate_max_displacement() local 300 for (unsigned int i = 0; i < buffer_size; i += slot_size) { in hash_copy() 324 uint64_t buffer_size = slot_size * 1024; in fill_hash() [all …]
|
/dports/emulators/yuzu/yuzu-0b47f7a46/src/common/ |
H A D | ring_buffer.h | 26 static constexpr std::size_t slot_size = granularity * sizeof(T); variable 50 std::memcpy(m_data.data() + pos * granularity, in, first_copy * slot_size); in Push() 51 in += first_copy * slot_size; in Push() 52 std::memcpy(m_data.data(), in, second_copy * slot_size); in Push() 77 std::memcpy(out, m_data.data() + pos * granularity, first_copy * slot_size); 78 out += first_copy * slot_size; 79 std::memcpy(out, m_data.data(), second_copy * slot_size);
|
/dports/emulators/citra/citra-ac98458e0/src/common/ |
H A D | ring_buffer.h | 27 static constexpr std::size_t slot_size = granularity * sizeof(T); variable 51 std::memcpy(m_data.data() + pos * granularity, in, first_copy * slot_size); in Push() 52 in += first_copy * slot_size; in Push() 53 std::memcpy(m_data.data(), in, second_copy * slot_size); in Push() 78 std::memcpy(out, m_data.data() + pos * granularity, first_copy * slot_size); 79 out += first_copy * slot_size; 80 std::memcpy(out, m_data.data(), second_copy * slot_size);
|
/dports/emulators/citra-qt5/citra-ac98458e0/src/common/ |
H A D | ring_buffer.h | 27 static constexpr std::size_t slot_size = granularity * sizeof(T); variable 51 std::memcpy(m_data.data() + pos * granularity, in, first_copy * slot_size); in Push() 52 in += first_copy * slot_size; in Push() 53 std::memcpy(m_data.data(), in, second_copy * slot_size); in Push() 78 std::memcpy(out, m_data.data() + pos * granularity, first_copy * slot_size); 79 out += first_copy * slot_size; 80 std::memcpy(out, m_data.data(), second_copy * slot_size);
|
/dports/mail/ifile/ifile-1.3.8/ |
H A D | hash_table.c | 167 long int slot_size = sizeof(hash_elem); in htable_init_traversal() local 170 long int limit = slots*slot_size + base; in htable_init_traversal() 174 elem += slot_size); in htable_init_traversal() 191 long int slot_size = sizeof(hash_elem); in htable_next_traversal() local 193 long int limit = slots*slot_size + base; in htable_next_traversal() 197 for (elem_ptr = (long int) elem + slot_size; in htable_next_traversal() 199 elem_ptr += slot_size); in htable_next_traversal()
|
/dports/lang/rust/rustc-1.58.1-src/compiler/rustc_codegen_llvm/src/ |
H A D | va_arg.rs | 32 slot_size: Align, in emit_direct_ptr_va_arg() 45 let (addr, addr_align) = if allow_higher_align && align > slot_size { in emit_direct_ptr_va_arg() 48 (ptr, slot_size) in emit_direct_ptr_va_arg() 51 let aligned_size = size.align_to(slot_size).bytes() as i32; in emit_direct_ptr_va_arg() 56 if size.bytes() < slot_size.bytes() && bx.tcx().sess.target.endian == Endian::Big { in emit_direct_ptr_va_arg() 57 let adjusted_size = bx.cx().const_i32((slot_size.bytes() - size.bytes()) as i32); in emit_direct_ptr_va_arg() 70 slot_size: Align, in emit_ptr_va_arg() 113 let (reg_off, reg_top_index, slot_size) = if gr_type { in emit_aapcs_va_arg() 138 let new_reg_off_v = maybe_reg.add(reg_off_v, bx.const_i32(slot_size as i32)); in emit_aapcs_va_arg() 153 if bx.tcx().sess.target.endian == Endian::Big && layout.size.bytes() != slot_size { in emit_aapcs_va_arg() [all …]
|
/dports/www/qt5-webengine/qtwebengine-everywhere-src-5.15.2/src/3rdparty/chromium/base/allocator/partition_allocator/ |
H A D | partition_page.h | 194 page->bucket->slot_size)); in FromPointer() 202 if (bucket->slot_size <= kMaxSystemPagesPerSlotSpan * kSystemPageSize) in get_raw_size_ptr() 205 DCHECK((bucket->slot_size % kSystemPageSize) == 0); in get_raw_size_ptr() 221 size_t slot_size = bucket->slot_size; in Free() local 224 slot_size = raw_size; in Free() 229 PartitionCookieCheckValue(reinterpret_cast<char*>(ptr) + slot_size - in Free() 232 memset(ptr, kFreedByte, slot_size); in Free()
|
H A D | partition_alloc.cc | 310 size_t current_size = page->bucket->slot_size; in PartitionReallocDirectMappedInPlace() 353 page->bucket->slot_size = new_size; in PartitionReallocDirectMappedInPlace() 461 size_t slot_size = bucket->slot_size; in PartitionPurgePage() local 471 discardable_bytes = bucket->slot_size - used_bytes; in PartitionPurgePage() 525 char* begin_ptr = ptr + (num_slots * slot_size); in PartitionPurgePage() 551 ptr + (slot_size * slot_index)); in PartitionPurgePage() 584 char* begin_ptr = ptr + (i * slot_size); in PartitionPurgePage() 585 char* end_ptr = begin_ptr + slot_size; in PartitionPurgePage() 633 if (bucket->slot_size >= kSystemPageSize) in PurgeMemory() 690 stats_out->bucket_slot_size = bucket->slot_size; in PartitionDumpBucketStats() [all …]
|
/dports/www/chromium-legacy/chromium-88.0.4324.182/third_party/pdfium/third_party/base/allocator/partition_allocator/ |
H A D | partition_page.h | 195 page->bucket->slot_size)); in FromPointer() 203 if (bucket->slot_size <= MaxSystemPagesPerSlotSpan() * SystemPageSize()) in get_raw_size_ptr() 206 DCHECK((bucket->slot_size % SystemPageSize()) == 0); in get_raw_size_ptr() 222 size_t slot_size = bucket->slot_size; in Free() local 225 slot_size = raw_size; in Free() 230 PartitionCookieCheckValue(reinterpret_cast<char*>(ptr) + slot_size - in Free() 233 memset(ptr, kFreedByte, slot_size); in Free()
|
/dports/www/qt5-webengine/qtwebengine-everywhere-src-5.15.2/src/3rdparty/chromium/third_party/pdfium/third_party/base/allocator/partition_allocator/ |
H A D | partition_page.h | 179 page->bucket->slot_size)); in FromPointer() 187 if (bucket->slot_size <= kMaxSystemPagesPerSlotSpan * kSystemPageSize) in get_raw_size_ptr() 190 DCHECK((bucket->slot_size % kSystemPageSize) == 0); in get_raw_size_ptr() 206 size_t slot_size = bucket->slot_size; in Free() local 209 slot_size = raw_size; in Free() 214 PartitionCookieCheckValue(reinterpret_cast<char*>(ptr) + slot_size - in Free() 217 memset(ptr, kFreedByte, slot_size); in Free()
|