| /netbsd/src/external/lgpl3/gmp/dist/tune/ |
| 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/ |
| 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 …]
|
| 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/external/lgpl3/gmp/dist/mpn/generic/ |
| 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/ |
| 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/ |
| 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/external/gpl3/binutils/dist/gold/ |
| 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 …]
|
| 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 …]
|
| 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 …]
|
| D | aarch64.cc | 58 template<int size, bool big_endian> 61 template<int size, bool big_endian> 64 template<int size, bool big_endian> 67 template<int size, bool big_endian> 429 template<int size, bool big_endian> 430 class Output_data_got_aarch64 : public Output_data_got<size, big_endian> 433 typedef typename elfcpp::Elf_types<size>::Elf_Addr Valtype; 435 : Output_data_got<size, big_endian>(), in Output_data_got_aarch64() 452 Sized_relobj_file<size, big_endian>* relobj, in add_static_reloc() argument 465 gold_assert(this->data_size() >= size / 8); in do_write() [all …]
|
| D | mips.cc | 54 template<int size, bool big_endian> 57 template<int size, bool big_endian> 60 template<int size, bool big_endian> 63 template<int size, bool big_endian> 66 template<int size, bool big_endian> 69 template<int size, bool big_endian> 72 template<int size, bool big_endian> 75 template<int size> 78 template<int size, bool big_endian> 81 template<int size, bool big_endian> [all …]
|
| D | tilegx.cc | 64 template<int size, bool big_endian> 68 typedef Output_data_reloc<elfcpp::SHT_RELA, true,size, big_endian> 72 Output_data_got<size, big_endian>* got, in Output_data_plt_tilegx() argument 82 Output_data_got<size, big_endian>* got, in Output_data_plt_tilegx() argument 110 Sized_relobj_file<size, big_endian>*, unsigned int); 171 typename elfcpp::Elf_types<size>::Elf_Addr, 173 typename elfcpp::Elf_types<size>::Elf_Addr, 202 Output_data_got<size, big_endian>* got_; 229 template<int size, bool big_endian> 230 class Target_tilegx : public Sized_target<size, big_endian> [all …]
|
| /netbsd/src/external/lgpl3/gmp/dist/tests/ |
| 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 …]
|
| D | refmpf.c | 30 mp_size_t hi, lo, size; in refmpf_add() local 41 size = ABSIZ (v); in refmpf_add() 42 wt = TMP_ALLOC_LIMBS (size + 1); in refmpf_add() 43 MPN_COPY (wt, PTR (v), size); in refmpf_add() 50 size = ABSIZ (u); in refmpf_add() 51 wt = TMP_ALLOC_LIMBS (size + 1); in refmpf_add() 52 MPN_COPY (wt, PTR (u), size); in refmpf_add() 71 size = hi - lo; in refmpf_add() 72 ut = TMP_ALLOC_LIMBS (size + 1); in refmpf_add() 73 vt = TMP_ALLOC_LIMBS (size + 1); in refmpf_add() [all …]
|
| /netbsd/src/sys/arch/macppc/stand/ofwboot/ |
| 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 …]
|
| D | alloc.c | 112 unsigned size; member 122 alloc(size_t size) in alloc() argument 132 printf("alloc(%zu)", size); in alloc() 139 size = ALIGN(size) + OVERHEAD; in alloc() 143 for (f = freelist.lh_first; f != NULL && (size_t)f->size < size; in alloc() 153 if ((size_t)f->size >= size) { in alloc() 154 if ((size_t)f->size == size) /* exact match */ in alloc() 157 if (f->size < bestsize) { in alloc() 160 bestsize = f->size; in alloc() 175 size = roundup(size, NBPG); in alloc() [all …]
|
| /netbsd/src/crypto/external/bsd/heimdal/dist/lib/asn1/ |
| D | der_get.c | 48 unsigned *ret, size_t *size) in der_get_unsigned() argument 61 if(size) *size = oldlen; in der_get_unsigned() 67 uint64_t *ret, size_t *size) in der_get_unsigned64() argument 80 if(size) *size = oldlen; in der_get_unsigned64() 86 int *ret, size_t *size) in der_get_integer() argument 103 if(size) *size = oldlen; in der_get_integer() 109 int64_t *ret, size_t *size) in der_get_integer64() argument 124 if(size) *size = oldlen; in der_get_integer64() 131 size_t *val, size_t *size) in der_get_length() argument 141 if(size) *size = 1; in der_get_length() [all …]
|
| /netbsd/src/external/lgpl3/gmp/dist/tests/mpn/ |
| D | t-instrument.c | 134 mp_size_t size = 100; in check() local 136 refmpn_zero (xp, size); in check() 137 refmpn_zero (yp, size); in check() 138 refmpn_zero (wp, size); in check() 141 mpn_add_n (wp, xp, yp, size); in check() 146 mpn_add_nc (wp, xp, yp, size, CNST_LIMB(0)); in check() 152 mpn_addlsh1_n (wp, xp, yp, size); in check() 158 mpn_and_n (wp, xp, yp, size); in check() 164 mpn_andn_n (wp, xp, yp, size); in check() 169 mpn_addmul_1 (wp, xp, size, yp[0]); in check() [all …]
|
| /netbsd/src/sys/arch/shark/stand/ofwboot/ |
| D | alloc.c | 113 unsigned size; member 123 alloc(size_t size) in alloc() argument 133 printf("alloc(%zu)", size); in alloc() 140 size = ALIGN(size) + OVERHEAD; in alloc() 144 for (f = freelist.lh_first; f != NULL && (size_t)f->size < size; in alloc() 154 if ((size_t)f->size >= size) { in alloc() 155 if ((size_t)f->size == size) /* exact match */ in alloc() 158 if (f->size < bestsize) { in alloc() 161 bestsize = f->size; in alloc() 176 size = roundup(size, NBPG); in alloc() [all …]
|
| /netbsd/src/sys/arch/sparc/stand/ofwboot/ |
| D | alloc.c | 113 unsigned size; member 123 alloc(size_t size) in alloc() argument 133 printf("alloc(%zu)", size); in alloc() 140 size = ALIGN(size) + OVERHEAD; in alloc() 144 for (f = freelist.lh_first; f != NULL && (size_t)f->size < size; in alloc() 154 if ((size_t)f->size >= size) { in alloc() 155 if ((size_t)f->size == size) /* exact match */ in alloc() 158 if (f->size < bestsize) { in alloc() 161 bestsize = f->size; in alloc() 176 size = roundup(size, NBPG); in alloc() [all …]
|
| /netbsd/src/external/gpl3/gdb/dist/sim/common/ |
| D | cgen-mem.h | 38 #define DECLARE_GETMEM_EXTERN(mode, size) \ argument 42 #define DECLARE_GETMEM(mode, size) \ argument 43 DECLARE_GETMEM_EXTERN (mode, size) \ 49 return XCONCAT2 (sim_core_read_unaligned_,size) (cpu, pc, read_map, a); \ 52 #define DECLARE_GETMEM(mode, size) DECLARE_GETMEM_EXTERN (mode, size) argument 69 #define DECLARE_SETMEM_EXTERN(mode, size) \ argument 73 #define DECLARE_SETMEM(mode, size) \ argument 74 DECLARE_SETMEM_EXTERN (mode, size) \ 80 XCONCAT2 (sim_core_write_unaligned_,size) (cpu, pc, write_map, a, val); \ 83 #define DECLARE_SETMEM(mode, size) DECLARE_SETMEM_EXTERN (mode, size) [all …]
|
| /netbsd/src/external/gpl3/binutils/dist/elfcpp/ |
| D | elfcpp.h | 57 template<int size> 634 template<int size> 636 elf_r_sym(typename Elf_types<size>::Elf_WXword); 652 template<int size> 654 elf_r_type(typename Elf_types<size>::Elf_WXword); 670 template<int size> 671 typename Elf_types<size>::Elf_WXword 1061 template<int size> 1065 static const int ehdr_size = sizeof(internal::Ehdr_data<size>); 1067 static const int phdr_size = sizeof(internal::Phdr_data<size>); [all …]
|
| /netbsd/src/sys/external/bsd/compiler_rt/dist/lib/lsan/ |
| D | lsan_allocator.cc | 54 static void RegisterAllocation(const StackTrace &stack, void *p, uptr size) { in RegisterAllocation() argument 60 m->requested_size = size; in RegisterAllocation() 71 static void *ReportAllocationSizeTooBig(uptr size, const StackTrace &stack) { in ReportAllocationSizeTooBig() argument 73 Report("WARNING: LeakSanitizer failed to allocate 0x%zx bytes\n", size); in ReportAllocationSizeTooBig() 76 ReportAllocationSizeTooBig(size, kMaxAllowedMallocSize, &stack); in ReportAllocationSizeTooBig() 79 void *Allocate(const StackTrace &stack, uptr size, uptr alignment, in Allocate() argument 81 if (size == 0) in Allocate() 82 size = 1; in Allocate() 83 if (size > kMaxAllowedMallocSize) in Allocate() 84 return ReportAllocationSizeTooBig(size, stack); in Allocate() [all …]
|
| /netbsd/src/sys/arch/ews4800mips/ews4800mips/ |
| D | sbd.c | 80 size_t size, total = 0; in sbd_memcluster_init() local 93 size = m & 0xf ? ((m & 0xf) << 4) : 0; in sbd_memcluster_init() 94 if (size == 0) in sbd_memcluster_init() 98 printf("M%d=%dMB(reserved)\n", i, size); in sbd_memcluster_init() 102 switch (size) { in sbd_memcluster_init() 105 mem_clusters[j].size = size * 1024 * 1024; in sbd_memcluster_init() 111 mem_clusters[j].size = 16 * 1024 * 1024; in sbd_memcluster_init() 114 mem_clusters[j].size = 16 * 1024 * 1024; in sbd_memcluster_init() 119 printf("UNKNOWN MEMORY CLUSTER SIZE%d\n", size); in sbd_memcluster_init() 123 total += size; in sbd_memcluster_init() [all …]
|
| /netbsd/src/dist/pf/sbin/pfctl/ |
| D | pfctl_radix.c | 75 pfr_add_tables(struct pfr_table *tbl, int size, int *nadd, int flags) in pfr_add_tables() argument 79 if (size < 0 || (size && tbl == NULL)) { in pfr_add_tables() 87 io.pfrio_size = size; in pfr_add_tables() 96 pfr_del_tables(struct pfr_table *tbl, int size, int *ndel, int flags) in pfr_del_tables() argument 100 if (size < 0 || (size && tbl == NULL)) { in pfr_del_tables() 108 io.pfrio_size = size; in pfr_del_tables() 117 pfr_get_tables(struct pfr_table *filter, struct pfr_table *tbl, int *size, in pfr_get_tables() argument 122 if (size == NULL || *size < 0 || (*size && tbl == NULL)) { in pfr_get_tables() 132 io.pfrio_size = *size; in pfr_get_tables() 135 *size = io.pfrio_size; in pfr_get_tables() [all …]
|