/freebsd-current/lib/libc/gen/ |
H A D | memalign.c | 33 memalign(size_t align, size_t size) argument 36 * glibc allows align == 0, but that is not valid for roundup. 39 if (align != 0) 40 return (aligned_alloc(align, roundup(size, align)));
|
/freebsd-current/contrib/ofed/opensm/include/complib/ |
H A D | cl_math.h | 115 * ROUNDUP( val, align ); 123 * align 128 * the nearest multiple of align. 134 #define ROUNDUP(val, align) \ 135 ((((val) / (align))*(align)) + (((val) % (align)) ? (align) : 0))
|
/freebsd-current/sys/contrib/openzfs/lib/libspl/include/os/linux/sys/ |
H A D | sysmacros.h | 56 // #define P2ALIGN(x, align) ((x) & -(align)) 57 #define P2CROSS(x, y, align) (((x) ^ (y)) > (align) - 1) 58 #define P2ROUNDUP(x, align) ((((x) - 1) | ((align) - 1)) + 1) 59 #define P2BOUNDARY(off, len, align) \ 60 (((off) ^ ((off) + (len) - 1)) > (align) - 1) 61 #define P2PHASE(x, align) ((x) & ((align) [all...] |
/freebsd-current/contrib/netbsd-tests/lib/libc/stdlib/ |
H A D | t_posix_memalign.c | 56 static const size_t align[] = { local 68 align[i], size[i]); 69 ret = posix_memalign(&p, align[i], size[i]); 71 if ( align[i] < sizeof(void *)) 77 ATF_REQUIRE_EQ_MSG(((intptr_t)p) & (align[i] - 1), 0, 95 static const size_t align[] = { local 104 align[i], size[i]); 105 p = aligned_alloc(align[i], size[i]); 107 if (align[i] == 0 || ((align[ [all...] |
/freebsd-current/sys/riscv/riscv/ |
H A D | cpufunc_asm.S | 37 .align 2
|
/freebsd-current/sys/contrib/openzfs/include/os/freebsd/spl/sys/ |
H A D | ccompile.h | 142 // #define P2ALIGN(x, align) ((x) & -(align)) 143 #define P2CROSS(x, y, align) (((x) ^ (y)) > (align) - 1) 144 #define P2ROUNDUP(x, align) ((((x) - 1) | ((align) - 1)) + 1) 145 #define P2PHASE(x, align) ((x) & ((align) - 1)) 146 #define P2NPHASE(x, align) (-(x) & ((align) [all...] |
H A D | sysmacros.h | 183 * Macros for various sorts of alignment and rounding. The "align" must 188 * return x rounded down to an align boundary 189 * eg, P2ALIGN(1200, 1024) == 1024 (1*align) 190 * eg, P2ALIGN(1024, 1024) == 1024 (1*align) 191 * eg, P2ALIGN(0x1234, 0x100) == 0x1200 (0x12*align) 192 * eg, P2ALIGN(0x5600, 0x100) == 0x5600 (0x56*align) 195 // #define P2ALIGN(x, align) ((x) & -(align)) 198 * return x % (mod) align 199 * eg, P2PHASE(0x1234, 0x100) == 0x34 (x-0x12*align) [all...] |
/freebsd-current/sys/contrib/openzfs/include/os/linux/spl/sys/ |
H A D | sysmacros.h | 163 // #define P2ALIGN(x, align) ((x) & -(align)) 164 #define P2CROSS(x, y, align) (((x) ^ (y)) > (align) - 1) 165 #define P2ROUNDUP(x, align) ((((x) - 1) | ((align) - 1)) + 1) 166 #define P2PHASE(x, align) ((x) & ((align) - 1)) 167 #define P2NPHASE(x, align) (-(x) & ((align) [all...] |
/freebsd-current/sys/arm64/arm64/ |
H A D | hyp_stub.S | 30 .align 7 39 .align 7 44 .align 11
|
H A D | sigtramp.S | 35 .align 2 51 .align 3 56 .align 3
|
/freebsd-current/contrib/netbsd-tests/lib/libc/arch/arm/ |
H A D | return_one.S | 8 .align 0
|
/freebsd-current/contrib/wpa/src/utils/ |
H A D | radiotap.c | 20 [IEEE80211_RADIOTAP_TSFT] = { .align = 8, .size = 8, }, 21 [IEEE80211_RADIOTAP_FLAGS] = { .align = 1, .size = 1, }, 22 [IEEE80211_RADIOTAP_RATE] = { .align = 1, .size = 1, }, 23 [IEEE80211_RADIOTAP_CHANNEL] = { .align = 2, .size = 4, }, 24 [IEEE80211_RADIOTAP_FHSS] = { .align = 2, .size = 2, }, 25 [IEEE80211_RADIOTAP_DBM_ANTSIGNAL] = { .align = 1, .size = 1, }, 26 [IEEE80211_RADIOTAP_DBM_ANTNOISE] = { .align = 1, .size = 1, }, 27 [IEEE80211_RADIOTAP_LOCK_QUALITY] = { .align = 2, .size = 2, }, 28 [IEEE80211_RADIOTAP_TX_ATTENUATION] = { .align = 2, .size = 2, }, 29 [IEEE80211_RADIOTAP_DB_TX_ATTENUATION] = { .align 188 find_override(struct ieee80211_radiotap_iterator *iterator, int *align, int *size) argument 239 int pad, align, size, subns; local [all...] |
/freebsd-current/libexec/rtld-elf/arm/ |
H A D | rtld_machdep.h | 71 #define round(size, align) \ 72 (((size) + (align) - 1) & ~((align) - 1)) 73 #define calculate_first_tls_offset(size, align, offset) \ 74 round(8, align) 75 #define calculate_tls_offset(prev_offset, prev_size, size, align, offset) \ 76 round(prev_offset + prev_size, align) 77 #define calculate_tls_post_size(align) \ 78 round(TLS_TCB_SIZE, align) - TLS_TCB_SIZE
|
/freebsd-current/sys/arm64/vmm/ |
H A D | vmm_hyp_el2.S | 34 .align PAGE_SHIFT
|
/freebsd-current/libexec/rtld-elf/aarch64/ |
H A D | rtld_machdep.h | 79 #define round(size, align) \ 80 (((size) + (align) - 1) & ~((align) - 1)) 81 #define calculate_first_tls_offset(size, align, offset) \ 82 round(16, align) 83 #define calculate_tls_offset(prev_offset, prev_size, size, align, offset) \ 84 round(prev_offset + prev_size, align) 85 #define calculate_tls_post_size(align) \ 86 round(TLS_TCB_SIZE, align) - TLS_TCB_SIZE
|
/freebsd-current/contrib/llvm-project/lld/Common/ |
H A D | Memory.cpp | 16 lld::SpecificAllocBase::getOrCreate(void *tag, size_t size, size_t align, argument 21 void *storage = context().bAlloc.Allocate(size, align);
|
/freebsd-current/contrib/elftoolchain/libpe/ |
H A D | libpe_utils.c | 38 libpe_align(PE *pe, off_t off, size_t align) argument 42 assert(align > 0 && (align & (align - 1)) == 0); 44 n = roundup(off, align);
|
/freebsd-current/libexec/rtld-elf/ |
H A D | xmalloc.c | 78 xmalloc_aligned(size_t size, size_t align, size_t offset) argument 82 offset &= align - 1; 83 if (align < sizeof(void *)) 84 align = sizeof(void *); 86 res = __crt_aligned_alloc_offset(align, size, offset);
|
/freebsd-current/contrib/llvm-project/compiler-rt/lib/memprof/ |
H A D | memprof_new_delete.cpp | 41 void *res = memprof_memalign((uptr)align, size, &stack, type); \ 63 void *operator new(size_t size, std::align_val_t align) { argument 67 void *operator new[](size_t size, std::align_val_t align) { argument 71 void *operator new(size_t size, std::align_val_t align, argument 76 void *operator new[](size_t size, std::align_val_t align, argument 91 memprof_delete(ptr, 0, static_cast<uptr>(align), &stack, type); 95 memprof_delete(ptr, size, static_cast<uptr>(align), &stack, type); 120 void operator delete(void *ptr, std::align_val_t align)NOEXCEPT { 124 void operator delete[](void *ptr, std::align_val_t align) NOEXCEPT { 128 void operator delete(void *ptr, std::align_val_t align, argument 133 operator delete[](void *ptr, std::align_val_t align, std::nothrow_t const &) argument [all...] |
/freebsd-current/libexec/rtld-elf/powerpc/ |
H A D | rtld_machdep.h | 83 #define round(size, align) \ 84 (((size) + (align) - 1) & ~((align) - 1)) 85 #define calculate_first_tls_offset(size, align, offset) \ 87 #define calculate_tls_offset(prev_offset, prev_size, size, align, offset) \ 88 round(prev_offset + prev_size, align) 89 #define calculate_tls_post_size(align) 0
|
/freebsd-current/libexec/rtld-elf/powerpc64/ |
H A D | rtld_machdep.h | 75 #define round(size, align) \ 76 (((size) + (align) - 1) & ~((align) - 1)) 77 #define calculate_first_tls_offset(size, align, offset) \ 79 #define calculate_tls_offset(prev_offset, prev_size, size, align, offset) \ 80 round(prev_offset + prev_size, align) 81 #define calculate_tls_post_size(align) 0
|
/freebsd-current/libexec/rtld-elf/riscv/ |
H A D | rtld_machdep.h | 93 #define round(size, align) \ 94 (((size) + (align) - 1) & ~((align) - 1)) 95 #define calculate_first_tls_offset(size, align, offset) \ 97 #define calculate_tls_offset(prev_offset, prev_size, size, align, offset) \ 98 round(prev_offset + prev_size, align) 99 #define calculate_tls_post_size(align) 0
|
/freebsd-current/contrib/llvm-project/compiler-rt/lib/sanitizer_common/ |
H A D | sanitizer_coverage_win_sections.cpp | 32 // align the start of the 8-bit counters array. The array will always start 8 37 // Even though we said not to align __stop__sancov_cntrs (using the "align" 38 // declspec), MSVC's linker may try to align the section, .SCOV$CZ, containing 41 // padding would be added to align .SCOVP$Z, However, if .SCOV$CZ section is 1 42 // byte, the linker won't try to align it on an 8-byte boundary, so use a 45 __declspec(allocate(".SCOV$CZ")) __declspec(align(1)) uint8_t 51 __declspec(allocate(".SCOV$GZ")) __declspec(align(1)) uint8_t 62 __declspec(allocate(".SCOVP$Z")) __declspec(align(1)) uint8_t
|
/freebsd-current/sys/contrib/ncsw/etc/ |
H A D | mm.h | 55 #define MAKE_ALIGNED(addr, align) \ 56 (((uint64_t)(addr) + ((align) - 1)) & (~(((uint64_t)align) - 1)))
|
/freebsd-current/contrib/llvm-project/compiler-rt/lib/builtins/avr/ |
H A D | exit.S | 10 .align 2
|