| /netbsd-src/external/lgpl3/gmp/dist/tune/ |
| H A D | speed.h | 115 mp_size_t size; /* size of both arguments */ member 131 mp_size_t size; member 638 SPEED_RESTRICT_COND (s->size >= 0); \ 641 SPEED_TMP_ALLOC_LIMBS (wp, s->size, s->align_wp); \ 643 speed_operand_src (s, s->xp, s->size); \ 644 speed_operand_dst (s, wp, s->size); \ 658 SPEED_ROUTINE_MPN_COPY_CALL (function (wp, s->xp, s->size)) 667 SPEED_RESTRICT_COND (s->size >= 0); \ 670 s->r = s->size; /* default to a quadratic shape */ \ 673 SPEED_TMP_ALLOC_LIMBS (xp, s->size * s->r, s->align_xp); \ [all …]
|
| /netbsd-src/sys/external/bsd/sljit/dist/sljit_src/ |
| H A D | sljitExecAllocator.c | 86 static SLJIT_INLINE void* alloc_chunk(sljit_uw size) in alloc_chunk() argument 88 return VirtualAlloc(NULL, size, MEM_COMMIT | MEM_RESERVE, PAGE_EXECUTE_READWRITE); in alloc_chunk() 91 static SLJIT_INLINE void free_chunk(void *chunk, sljit_uw size) in free_chunk() argument 93 SLJIT_UNUSED_ARG(size); in free_chunk() 107 static SLJIT_INLINE void* alloc_chunk(sljit_uw size) in alloc_chunk() argument 110 return (void *)uvm_km_alloc(module_map, size, in alloc_chunk() 116 retval = mmap(NULL, size, PROT_READ | PROT_WRITE | PROT_EXEC, MAP_PRIVATE | MAP_ANON, -1, 0); in alloc_chunk() 122 retval = mmap(NULL, size, PROT_READ | PROT_WRITE | PROT_EXEC, MAP_PRIVATE, dev_zero, 0); in alloc_chunk() 129 static SLJIT_INLINE void free_chunk(void *chunk, sljit_uw size) in free_chunk() argument 132 uvm_km_free(module_map, (vaddr_t)chunk, size, UVM_KMF_WIRED); in free_chunk() [all …]
|
| H A D | sljitProtExecAllocator.c | 168 static SLJIT_INLINE struct chunk_header* alloc_chunk(sljit_uw size) in alloc_chunk() argument 177 if (ftruncate(fd, size)) { in alloc_chunk() 182 retval = (struct chunk_header *)mmap(NULL, size, PROT_READ | PROT_WRITE, MAP_SHARED, fd, 0); in alloc_chunk() 189 retval->executable = mmap(NULL, size, PROT_READ | PROT_EXEC, MAP_SHARED, fd, 0); in alloc_chunk() 192 munmap(retval, size); in alloc_chunk() 201 static SLJIT_INLINE void free_chunk(void *chunk, sljit_uw size) in free_chunk() argument 206 munmap(header->executable, size); in free_chunk() 207 munmap(header, size); in free_chunk() 218 sljit_uw size; member 227 sljit_uw size; member [all …]
|
| /netbsd-src/sys/external/gpl2/dts/dist/arch/arm/boot/dts/ |
| H A D | aspeed-bmc-facebook-cmm.dts | 334 #size-cells = <0>; 341 #size-cells = <0>; 347 #size-cells = <0>; 353 #size-cells = <0>; 358 #size-cells = <0>; 363 #size-cells = <0>; 368 #size-cells = <0>; 373 #size-cells = <0>; 378 #size-cells = <0>; 383 #size-cells = <0>; [all …]
|
| H A D | aspeed-bmc-facebook-fuji.dts | 219 data-size = <16>; 239 #size-cells = <0>; 245 #size-cells = <0>; 252 #size-cells = <0>; 259 #size-cells = <0>; 265 #size-cells = <0>; 271 #size-cells = <0>; 277 #size-cells = <0>; 283 #size-cells = <0>; 289 #size-cells = <0>; [all …]
|
| H A D | aspeed-bmc-facebook-minipack.dts | 249 #size-cells = <1>; 299 #size-cells = <1>; 350 #size-cells = <0>; 356 #size-cells = <0>; 362 #size-cells = <0>; 368 #size-cells = <0>; 374 #size-cells = <0>; 380 #size-cells = <0>; 386 #size-cells = <0>; 392 #size-cells = <0>; [all …]
|
| /netbsd-src/external/gpl3/gcc.old/dist/libbacktrace/ |
| H A D | mmap.c | 64 size_t size; member 70 backtrace_free_locked (struct backtrace_state *state, void *addr, size_t size) in backtrace_free_locked() argument 77 if (size >= sizeof (struct backtrace_freelist_struct)) in backtrace_free_locked() 88 if (ppsmall == NULL || (*pp)->size < (*ppsmall)->size) in backtrace_free_locked() 94 if (size <= (*ppsmall)->size) in backtrace_free_locked() 101 p->size = size; in backtrace_free_locked() 111 size_t size, backtrace_error_callback error_callback, in backtrace_alloc() argument 137 if ((*pp)->size >= size) in backtrace_alloc() 146 size = (size + 7) & ~ (size_t) 7; in backtrace_alloc() 147 if (size < p->size) in backtrace_alloc() [all …]
|
| /netbsd-src/external/gpl3/gcc/dist/libbacktrace/ |
| H A D | mmap.c | 68 size_t size; member 74 backtrace_free_locked (struct backtrace_state *state, void *addr, size_t size) in backtrace_free_locked() argument 81 if (size >= sizeof (struct backtrace_freelist_struct)) in backtrace_free_locked() 92 if (ppsmall == NULL || (*pp)->size < (*ppsmall)->size) in backtrace_free_locked() 98 if (size <= (*ppsmall)->size) in backtrace_free_locked() 105 p->size = size; in backtrace_free_locked() 115 size_t size, backtrace_error_callback error_callback, in backtrace_alloc() argument 141 if ((*pp)->size >= size) in backtrace_alloc() 150 size = (size + 7) & ~ (size_t) 7; in backtrace_alloc() 151 if (size < p->size) in backtrace_alloc() [all …]
|
| /netbsd-src/external/lgpl3/gmp/dist/mpn/generic/ |
| H A D | fib2_ui.c | 62 mp_size_t size; in mpn_fib2_ui() local 77 size = 1; in mpn_fib2_ui() 101 mask, size, alloc); in mpn_fib2_ui() 102 mpn_trace ("fp ", fp, size); in mpn_fib2_ui() 103 mpn_trace ("f1p", f1p, size)); in mpn_fib2_ui() 106 ASSERT (fp[size-1] != 0); in mpn_fib2_ui() 107 ASSERT (f1p[size-1] != 0 || f1p[size-2] != 0); in mpn_fib2_ui() 111 ASSERT (alloc >= 2*size); in mpn_fib2_ui() 112 mpn_sqr (xp, fp, size); in mpn_fib2_ui() 113 mpn_sqr (fp, f1p, size); in mpn_fib2_ui() [all …]
|
| /netbsd-src/external/lgpl3/gmp/dist/mpz/ |
| H A D | fib_ui.c | 60 mp_size_t size, xalloc; in mpz_fib_ui() local 78 size = mpn_fib2_ui (xp, yp, n2); in mpz_fib_ui() 81 n >> 1, size, n&1); in mpz_fib_ui() 82 mpn_trace ("xp", xp, size); in mpz_fib_ui() 83 mpn_trace ("yp", yp, size)); in mpz_fib_ui() 91 xp[size] = mpn_lshift (xp, xp, size, 1); in mpz_fib_ui() 92 yp[size] = 0; in mpz_fib_ui() 93 ASSERT_NOCARRY (mpn_add_n_sub_n (xp, yp, xp, yp, size+1)); in mpz_fib_ui() 94 xsize = size + (xp[size] != 0); in mpz_fib_ui() 95 ASSERT (yp[size] <= 1); in mpz_fib_ui() [all …]
|
| /netbsd-src/tests/lib/libc/db/ |
| H A D | h_lfsr.c | 83 key.size = (len & 0xff) + 1; in main() 85 memset(kb, c, key.size); in main() 86 val.size = (next(&len) & 0xff) + 1; in main() 90 key.size, val.size, c); in main() 94 key.size, val.size, c); in main() 97 key.size, val.size, c); in main() 105 key.size = (len & 0xff) + 1; in main() 107 memset(kb, c, key.size); in main() 112 key.size, val.size, c); in main() 116 key.size, val.size, c); in main() [all …]
|
| /netbsd-src/sys/external/bsd/drm2/dist/drm/selftests/ |
| H A D | test-drm_mm.c | 111 static bool assert_continuous(const struct drm_mm *mm, u64 size) in assert_continuous() argument 129 if (node->size != size) { in assert_continuous() 131 n, size, node->size); in assert_continuous() 141 drm_mm_for_each_node_in_range(check, mm, addr, addr + size) { in assert_continuous() 151 addr, size); in assert_continuous() 155 addr += size; in assert_continuous() 174 u64 size, u64 alignment, unsigned long color) in assert_node() argument 183 if (node->size != size) { in assert_node() 185 node->size, size); in assert_node() 210 const unsigned int size = 4096; in igt_init() local [all …]
|
| /netbsd-src/external/gpl3/binutils/dist/gold/ |
| H A D | s390.cc | 51 template<int size> 56 : Output_section_data_build(size/8), in Output_data_got_plt_s390() 61 : Output_section_data_build(data_size, size/8), in Output_data_got_plt_s390() 83 template<int size> 87 typedef Output_data_reloc<elfcpp::SHT_RELA, true, size, true> 91 Output_data_got<size, true>* got, in Output_data_plt_s390() argument 92 Output_data_got_plt_s390<size>* got_plt, in Output_data_plt_s390() 101 Output_data_got<size, true>* got, in Output_data_plt_s390() argument 102 Output_data_got_plt_s390<size>* got_plt, in Output_data_plt_s390() 129 Sized_relobj_file<size, true>*, unsigned int); [all …]
|
| H A D | x86_64.cc | 87 template<int size> 91 typedef Output_data_reloc<elfcpp::SHT_RELA, true, size, false> Reloc_section; 132 Sized_relobj_file<size, false>* relobj, 241 typename elfcpp::Elf_types<size>::Elf_Addr got_address, in fill_first_plt_entry() 242 typename elfcpp::Elf_types<size>::Elf_Addr plt_address) in fill_first_plt_entry() 249 typename elfcpp::Elf_types<size>::Elf_Addr got_address, in fill_plt_entry() 250 typename elfcpp::Elf_types<size>::Elf_Addr plt_address, in fill_plt_entry() 262 typename elfcpp::Elf_types<size>::Elf_Addr got_address, in fill_tlsdesc_entry() 263 typename elfcpp::Elf_types<size>::Elf_Addr plt_address, in fill_tlsdesc_entry() 264 typename elfcpp::Elf_types<size>::Elf_Addr got_base, in fill_tlsdesc_entry() [all …]
|
| H A D | sparc.cc | 50 template<int size, bool big_endian> 53 template<int size, bool big_endian> 54 class Target_sparc : public Sized_target<size, big_endian> 57 typedef Output_data_reloc<elfcpp::SHT_RELA, true, size, big_endian> Reloc_section; 60 : Sized_target<size, big_endian>(&sparc_info), in Target_sparc() 70 Sized_symbol<size>* 78 Sized_relobj_file<size, big_endian>* object, 92 Sized_relobj_file<size, big_endian>* object, 112 relocate_section(const Relocate_info<size, big_endian>*, 119 typename elfcpp::Elf_types<size>::Elf_Addr view_address, [all …]
|
| /netbsd-src/external/gpl3/binutils.old/dist/gold/ |
| H A D | s390.cc | 51 template<int size> 56 : Output_section_data_build(size/8), in Output_data_got_plt_s390() 61 : Output_section_data_build(data_size, size/8), in Output_data_got_plt_s390() 83 template<int size> 87 typedef Output_data_reloc<elfcpp::SHT_RELA, true, size, true> 91 Output_data_got<size, true>* got, in Output_data_plt_s390() argument 92 Output_data_got_plt_s390<size>* got_plt, in Output_data_plt_s390() 101 Output_data_got<size, true>* got, in Output_data_plt_s390() argument 102 Output_data_got_plt_s390<size>* got_plt, in Output_data_plt_s390() 129 Sized_relobj_file<size, true>*, unsigned int); [all …]
|
| H A D | x86_64.cc | 87 template<int size> 91 typedef Output_data_reloc<elfcpp::SHT_RELA, true, size, false> Reloc_section; 132 Sized_relobj_file<size, false>* relobj, 241 typename elfcpp::Elf_types<size>::Elf_Addr got_address, in fill_first_plt_entry() 242 typename elfcpp::Elf_types<size>::Elf_Addr plt_address) in fill_first_plt_entry() 249 typename elfcpp::Elf_types<size>::Elf_Addr got_address, in fill_plt_entry() 250 typename elfcpp::Elf_types<size>::Elf_Addr plt_address, in fill_plt_entry() 262 typename elfcpp::Elf_types<size>::Elf_Addr got_address, in fill_tlsdesc_entry() 263 typename elfcpp::Elf_types<size>::Elf_Addr plt_address, in fill_tlsdesc_entry() 264 typename elfcpp::Elf_types<size>::Elf_Addr got_base, in fill_tlsdesc_entry() [all …]
|
| H A D | sparc.cc | 50 template<int size, bool big_endian> 53 template<int size, bool big_endian> 54 class Target_sparc : public Sized_target<size, big_endian> 57 typedef Output_data_reloc<elfcpp::SHT_RELA, true, size, big_endian> Reloc_section; 60 : Sized_target<size, big_endian>(&sparc_info), in Target_sparc() 70 Sized_symbol<size>* 78 Sized_relobj_file<size, big_endian>* object, 92 Sized_relobj_file<size, big_endian>* object, 112 relocate_section(const Relocate_info<size, big_endian>*, 119 typename elfcpp::Elf_types<size>::Elf_Addr view_address, [all …]
|
| /netbsd-src/external/lgpl3/gmp/dist/tests/ |
| H A D | refmpn.c | 76 refmpn_overlap_low_to_high_p (mp_srcptr dst, mp_srcptr src, mp_size_t size) in refmpn_overlap_low_to_high_p() argument 78 return (dst <= src || ! refmpn_overlap_p (dst, size, src, size)); in refmpn_overlap_low_to_high_p() 83 refmpn_overlap_high_to_low_p (mp_srcptr dst, mp_srcptr src, mp_size_t size) in refmpn_overlap_high_to_low_p() argument 85 return (dst >= src || ! refmpn_overlap_p (dst, size, src, size)); in refmpn_overlap_high_to_low_p() 90 refmpn_overlap_fullonly_p (mp_srcptr dst, mp_srcptr src, mp_size_t size) in refmpn_overlap_fullonly_p() argument 92 return (dst == src || ! refmpn_overlap_p (dst, size, src, size)); in refmpn_overlap_fullonly_p() 96 mp_size_t size) in refmpn_overlap_fullonly_two_p() argument 98 return (refmpn_overlap_fullonly_p (dst, src1, size) in refmpn_overlap_fullonly_two_p() 99 && refmpn_overlap_fullonly_p (dst, src2, size)); in refmpn_overlap_fullonly_two_p() 104 refmpn_malloc_limbs (mp_size_t size) in refmpn_malloc_limbs() argument [all …]
|
| /netbsd-src/sys/external/bsd/compiler_rt/dist/lib/asan/tests/ |
| H A D | asan_mem_test.cc | 19 size_t size = Ident(sizeof(T) * length); in MemSetOOBTestTemplate() local 20 T *array = Ident((T*)malloc(size)); in MemSetOOBTestTemplate() 25 MEMSET(array, element, size); in MemSetOOBTestTemplate() 26 MEMSET(array, element, size - 1); in MemSetOOBTestTemplate() 38 EXPECT_DEATH(MEMSET(array, 0, size + 1), in MemSetOOBTestTemplate() 42 EXPECT_DEATH(MEMSET(array + 1, element, size + sizeof(T)), in MemSetOOBTestTemplate() 49 EXPECT_DEATH(MEMSET((char*)array - 1, element, size), in MemSetOOBTestTemplate() 55 EXPECT_DEATH(memset(array - 5, element, size + 5 * sizeof(T)), in MemSetOOBTestTemplate() 63 EXPECT_DEATH(MEMSET((char*)array - 2, element, size + 4), in MemSetOOBTestTemplate() 79 static bool AllocateTwoAdjacentArrays(char **x1, char **x2, size_t size) { in AllocateTwoAdjacentArrays() argument [all …]
|
| /netbsd-src/external/gpl3/gcc/dist/libsanitizer/asan/ |
| H A D | asan_interceptors_memintrinsics.h | 21 DECLARE_REAL(void*, memcpy, void *to, const void *from, uptr size) in DECLARE_REAL() argument 22 DECLARE_REAL(void*, memset, void *block, int c, uptr size) in DECLARE_REAL() 28 static inline bool QuickCheckForUnpoisonedRegion(uptr beg, uptr size) { in DECLARE_REAL() 29 if (size == 0) return true; in DECLARE_REAL() 30 if (size <= 32) in DECLARE_REAL() 32 !AddressIsPoisoned(beg + size - 1) && in DECLARE_REAL() 33 !AddressIsPoisoned(beg + size / 2); in DECLARE_REAL() 34 if (size <= 64) in DECLARE_REAL() 36 !AddressIsPoisoned(beg + size / 4) && in DECLARE_REAL() 37 !AddressIsPoisoned(beg + size - 1) && in DECLARE_REAL() [all …]
|
| /netbsd-src/external/gpl3/gcc.old/dist/libsanitizer/asan/ |
| H A D | asan_interceptors_memintrinsics.h | 20 DECLARE_REAL(void*, memcpy, void *to, const void *from, uptr size) in DECLARE_REAL() argument 21 DECLARE_REAL(void*, memset, void *block, int c, uptr size) in DECLARE_REAL() 27 static inline bool QuickCheckForUnpoisonedRegion(uptr beg, uptr size) { in DECLARE_REAL() 28 if (size == 0) return true; in DECLARE_REAL() 29 if (size <= 32) in DECLARE_REAL() 31 !AddressIsPoisoned(beg + size - 1) && in DECLARE_REAL() 32 !AddressIsPoisoned(beg + size / 2); in DECLARE_REAL() 33 if (size <= 64) in DECLARE_REAL() 35 !AddressIsPoisoned(beg + size / 4) && in DECLARE_REAL() 36 !AddressIsPoisoned(beg + size - 1) && in DECLARE_REAL() [all …]
|
| /netbsd-src/sys/external/bsd/compiler_rt/dist/lib/asan/ |
| H A D | asan_interceptors_memintrinsics.h | 22 DECLARE_REAL(void*, memcpy, void *to, const void *from, uptr size) in DECLARE_REAL() argument 23 DECLARE_REAL(void*, memset, void *block, int c, uptr size) in DECLARE_REAL() 29 static inline bool QuickCheckForUnpoisonedRegion(uptr beg, uptr size) { in DECLARE_REAL() 30 if (size == 0) return true; in DECLARE_REAL() 31 if (size <= 32) in DECLARE_REAL() 33 !AddressIsPoisoned(beg + size - 1) && in DECLARE_REAL() 34 !AddressIsPoisoned(beg + size / 2); in DECLARE_REAL() 35 if (size <= 64) in DECLARE_REAL() 37 !AddressIsPoisoned(beg + size / 4) && in DECLARE_REAL() 38 !AddressIsPoisoned(beg + size - 1) && in DECLARE_REAL() [all …]
|
| /netbsd-src/sys/arch/macppc/stand/ofwboot/ |
| H A D | loadfile_machdep.c | 51 ofw_claimphys(paddr_t pa, vsize_t size) in ofw_claimphys() argument 67 *p++ = ((uint64_t)size) >> 32; in ofw_claimphys() 68 *p++ = (uint32_t)size; in ofw_claimphys() 71 *p++ = (uint32_t)size; in ofw_claimphys() 100 ofw_releasephys(paddr_t pa, vsize_t size) in ofw_releasephys() argument 115 *p++ = ((uint64_t)size) >> 32; in ofw_releasephys() 116 *p++ = (uint32_t)size; in ofw_releasephys() 119 *p++ = (uint32_t)size; in ofw_releasephys() 131 ofw_claimvirt(vaddr_t va, vsize_t size) in ofw_claimvirt() argument 139 *p++ = size; in ofw_claimvirt() [all …]
|
| /netbsd-src/external/gpl3/gcc.old/dist/libsanitizer/sanitizer_common/ |
| H A D | sanitizer_allocator.cc | 29 extern "C" void *__libc_malloc(uptr size); 31 extern "C" void *__libc_memalign(uptr alignment, uptr size); 33 extern "C" void *__libc_realloc(void *ptr, uptr size); 39 static void *__libc_memalign(uptr alignment, uptr size) { in __libc_memalign() argument 41 uptr error = posix_memalign(&p, alignment, size); in __libc_memalign() 50 static void *RawInternalAlloc(uptr size, InternalAllocatorCache *cache, in RawInternalAlloc() argument 55 return __libc_malloc(size); in RawInternalAlloc() 57 return __libc_memalign(alignment, size); in RawInternalAlloc() 65 return __libc_malloc(size); in RawInternalAlloc() 69 static void *RawInternalRealloc(void *ptr, uptr size, in RawInternalRealloc() argument [all …]
|