Home
last modified time | relevance | path

Searched refs:align (Results 1 – 25 of 847) sorted by relevance

12345678910>>...34

/freebsd-13-stable/sys/contrib/openzfs/lib/libspl/include/os/linux/sys/
HDsysmacros.h55 #define P2ALIGN(x, align) ((x) & -(align)) argument
56 #define P2CROSS(x, y, align) (((x) ^ (y)) > (align) - 1) argument
57 #define P2ROUNDUP(x, align) ((((x) - 1) | ((align) - 1)) + 1) argument
58 #define P2BOUNDARY(off, len, align) \ argument
59 (((off) ^ ((off) + (len) - 1)) > (align) - 1)
60 #define P2PHASE(x, align) ((x) & ((align) - 1)) argument
61 #define P2NPHASE(x, align) (-(x) & ((align) - 1)) argument
62 #define P2NPHASE_TYPED(x, align, type) \ argument
63 (-(type)(x) & ((type)(align) - 1))
78 #define P2ALIGN_TYPED(x, align, type) \ argument
[all …]
/freebsd-13-stable/contrib/wpa/src/utils/
HDradiotap.c20 [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 = 2, .size = 2, },
[all …]
/freebsd-13-stable/sys/contrib/openzfs/include/os/linux/spl/sys/
HDsysmacros.h153 #define P2ALIGN(x, align) ((x) & -(align)) argument
154 #define P2CROSS(x, y, align) (((x) ^ (y)) > (align) - 1) argument
155 #define P2ROUNDUP(x, align) ((((x) - 1) | ((align) - 1)) + 1) argument
156 #define P2PHASE(x, align) ((x) & ((align) - 1)) argument
157 #define P2NPHASE(x, align) (-(x) & ((align) - 1)) argument
160 #define P2BOUNDARY(off, len, align) \ argument
161 (((off) ^ ((off) + (len) - 1)) > (align) - 1)
175 #define P2ALIGN_TYPED(x, align, type) \ argument
176 ((type)(x) & -(type)(align))
177 #define P2PHASE_TYPED(x, align, type) \ argument
[all …]
/freebsd-13-stable/contrib/netbsd-tests/lib/libc/stdlib/
HDt_posix_memalign.c56 static const size_t align[] = { in ATF_TC_BODY() local
68 align[i], size[i]); in ATF_TC_BODY()
69 ret = posix_memalign(&p, align[i], size[i]); in ATF_TC_BODY()
71 if ( align[i] < sizeof(void *)) in ATF_TC_BODY()
77 ATF_REQUIRE_EQ_MSG(((intptr_t)p) & (align[i] - 1), 0, in ATF_TC_BODY()
95 static const size_t align[] = { in ATF_TC_BODY() local
104 align[i], size[i]); in ATF_TC_BODY()
105 p = aligned_alloc(align[i], size[i]); in ATF_TC_BODY()
107 if (align[i] == 0 || ((align[i] - 1) & align[i]) != 0 || in ATF_TC_BODY()
108 size[i] % align[i] != 0) { in ATF_TC_BODY()
[all …]
/freebsd-13-stable/sys/contrib/openzfs/include/os/freebsd/spl/sys/
HDccompile.h233 #define P2ALIGN(x, align) ((x) & -(align)) argument
234 #define P2CROSS(x, y, align) (((x) ^ (y)) > (align) - 1) argument
235 #define P2ROUNDUP(x, align) ((((x) - 1) | ((align) - 1)) + 1) argument
236 #define P2PHASE(x, align) ((x) & ((align) - 1)) argument
237 #define P2NPHASE(x, align) (-(x) & ((align) - 1)) argument
240 #define P2BOUNDARY(off, len, align) \ argument
241 (((off) ^ ((off) + (len) - 1)) > (align) - 1)
255 #define P2ALIGN_TYPED(x, align, type) \ argument
256 ((type)(x) & -(type)(align))
257 #define P2PHASE_TYPED(x, align, type) \ argument
[all …]
HDsysmacros.h194 #define P2ALIGN(x, align) ((x) & -(align)) argument
201 #define P2PHASE(x, align) ((x) & ((align) - 1)) argument
209 #define P2NPHASE(x, align) (-(x) & ((align) - 1)) argument
216 #define P2ROUNDUP(x, align) (-(-(x) & -(align))) argument
223 #define P2END(x, align) (-(~(x) & -(align))) argument
231 #define P2PHASEUP(x, align, phase) ((phase) - (((phase) - (x)) & -(align))) argument
239 #define P2BOUNDARY(off, len, align) \ argument
240 (((off) ^ ((off) + (len) - 1)) > (align) - 1)
260 #define P2ALIGN_TYPED(x, align, type) \ argument
261 ((type)(x) & -(type)(align))
[all …]
/freebsd-13-stable/contrib/llvm-project/compiler-rt/lib/tsan/rtl/
HDtsan_new_delete.cpp48 return InternalAlloc(size, nullptr, (uptr)align); \
52 p = user_memalign(thr, pc, (uptr)align, size); \
86 void *operator new(__sanitizer::uptr size, std::align_val_t align);
87 void *operator new(__sanitizer::uptr size, std::align_val_t align) { in operator new() argument
92 void *operator new[](__sanitizer::uptr size, std::align_val_t align);
93 void *operator new[](__sanitizer::uptr size, std::align_val_t align) { in operator new[]() argument
98 void *operator new(__sanitizer::uptr size, std::align_val_t align,
100 void *operator new(__sanitizer::uptr size, std::align_val_t align, in operator new() argument
107 void *operator new[](__sanitizer::uptr size, std::align_val_t align,
109 void *operator new[](__sanitizer::uptr size, std::align_val_t align, in operator new[]() argument
[all …]
/freebsd-13-stable/contrib/ntp/html/drivers/scripts/
HDstyle.css4 text-align: justify;
8 li.inline {text-align: left; margin-top: 0; margin-bottom: 0}
15 div.header {text-align: center;
18 div.footer {text-align: center;
21 img.cell {align: left;}
23 td.sidebar {width: 40px; align: center; valign: top;}
24 img.sidebar {align: center; margin-top: 5px;}
25 h4.sidebar {align: center;}
31 text-align: center;}
46 div {text-align: center;}
[all …]
/freebsd-13-stable/contrib/ntp/html/scripts/
HDstyle.css4 text-align: justify;
8 li.inline {text-align: left; margin-top: 0; margin-bottom: 0}
15 div.header {text-align: center;
18 div.footer {text-align: center;
21 img.cell {align: left;}
23 td.sidebar {width: 40px; align: center; valign: top;}
24 img.sidebar {align: center; margin-top: 5px;}
25 h4.sidebar {align: center;}
31 text-align: center;}
46 div {text-align: center;}
[all …]
/freebsd-13-stable/sys/cddl/contrib/opensolaris/uts/common/sys/
HDsysmacros.h250 #define P2ALIGN(x, align) ((x) & -(align)) argument
257 #define P2PHASE(x, align) ((x) & ((align) - 1)) argument
265 #define P2NPHASE(x, align) (-(x) & ((align) - 1)) argument
272 #define P2ROUNDUP(x, align) (-(-(x) & -(align))) argument
279 #define P2END(x, align) (-(~(x) & -(align))) argument
287 #define P2PHASEUP(x, align, phase) ((phase) - (((phase) - (x)) & -(align))) argument
295 #define P2BOUNDARY(off, len, align) \ argument
296 (((off) ^ ((off) + (len) - 1)) > (align) - 1)
316 #define P2ALIGN_TYPED(x, align, type) \ argument
317 ((type)(x) & -(type)(align))
[all …]
/freebsd-13-stable/contrib/llvm-project/libcxx/src/
HDmemory_resource.cpp32 static bool is_aligned_to(void* ptr, size_t align) { in is_aligned_to() argument
35 void* result = std::align(align, 1, p2, space); in is_aligned_to()
41 void* do_allocate(size_t bytes, size_t align) override { in do_allocate() argument
43 return std::__libcpp_allocate(bytes, align); in do_allocate()
47 void* result = std::__libcpp_allocate(bytes, align); in do_allocate()
48 if (!is_aligned_to(result, align)) { in do_allocate()
49 std::__libcpp_deallocate(result, bytes, align); in do_allocate()
56 …id do_deallocate(void* p, size_t bytes, size_t align) override { std::__libcpp_deallocate(p, bytes… in do_deallocate() argument
157 …pool_resource::__adhoc_pool::__do_allocate(memory_resource* upstream, size_t bytes, size_t align) { in __do_allocate() argument
161 if (align < footer_align) in __do_allocate()
[all …]
/freebsd-13-stable/contrib/llvm-project/compiler-rt/lib/scudo/standalone/
HDwrappers_cpp.cpp60 INTERFACE WEAK void *operator new(size_t size, std::align_val_t align) { in operator new() argument
62 static_cast<scudo::uptr>(align)); in operator new()
66 INTERFACE WEAK void *operator new[](size_t size, std::align_val_t align) { in operator new[]() argument
68 static_cast<scudo::uptr>(align)); in operator new[]()
72 INTERFACE WEAK void *operator new(size_t size, std::align_val_t align, in operator new() argument
75 static_cast<scudo::uptr>(align)); in operator new()
79 INTERFACE WEAK void *operator new[](size_t size, std::align_val_t align, in operator new[]() argument
82 static_cast<scudo::uptr>(align)); in operator new[]()
114 std::align_val_t align) NOEXCEPT { in operator delete() argument
117 static_cast<scudo::uptr>(align)); in operator delete()
[all …]
/freebsd-13-stable/contrib/llvm-project/compiler-rt/lib/memprof/
HDmemprof_new_delete.cpp41 void *res = memprof_memalign((uptr)align, size, &stack, type); \
63 void *operator new(size_t size, std::align_val_t align) { in operator new() argument
67 void *operator new[](size_t size, std::align_val_t align) { in operator new[]() argument
71 void *operator new(size_t size, std::align_val_t align, in operator new() argument
76 void *operator new[](size_t size, std::align_val_t align, in operator new[]() 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 { in operator delete() argument
124 void operator delete[](void *ptr, std::align_val_t align) NOEXCEPT { in operator delete[]() argument
128 void operator delete(void *ptr, std::align_val_t align, in operator delete() argument
[all …]
/freebsd-13-stable/libexec/rtld-elf/aarch64/
HDrtld_machdep.h74 #define round(size, align) \ argument
75 (((size) + (align) - 1) & ~((align) - 1))
76 #define calculate_first_tls_offset(size, align, offset) \ argument
77 round(16, align)
78 #define calculate_tls_offset(prev_offset, prev_size, size, align, offset) \ argument
79 round(prev_offset + prev_size, align)
80 #define calculate_tls_post_size(align) \ argument
81 round(TLS_TCB_SIZE, align) - TLS_TCB_SIZE
/freebsd-13-stable/libexec/rtld-elf/arm/
HDrtld_machdep.h65 #define round(size, align) \ argument
66 (((size) + (align) - 1) & ~((align) - 1))
67 #define calculate_first_tls_offset(size, align, offset) \ argument
68 round(8, align)
69 #define calculate_tls_offset(prev_offset, prev_size, size, align, offset) \ argument
70 round(prev_offset + prev_size, align)
71 #define calculate_tls_post_size(align) \ argument
72 round(TLS_TCB_SIZE, align) - TLS_TCB_SIZE
/freebsd-13-stable/contrib/llvm-project/compiler-rt/lib/dfsan/
HDdfsan_new_delete.cpp38 void *res = dfsan_memalign((uptr)align, size); \
58 void *operator new(size_t size, std::align_val_t align) { in operator new() argument
62 void *operator new[](size_t size, std::align_val_t align) { in operator new[]() argument
66 void *operator new(size_t size, std::align_val_t align, in operator new() argument
71 void *operator new[](size_t size, std::align_val_t align, in operator new[]() argument
99 void operator delete(void *ptr, std::align_val_t align)NOEXCEPT { in operator delete() argument
103 void operator delete[](void *ptr, std::align_val_t align) NOEXCEPT { in operator delete[]() argument
107 void operator delete(void *ptr, std::align_val_t align, in operator delete() argument
112 void operator delete[](void *ptr, std::align_val_t align, in operator delete[]() argument
117 void operator delete(void *ptr, size_t size, std::align_val_t align)NOEXCEPT { in operator delete() argument
[all …]
/freebsd-13-stable/contrib/llvm-project/compiler-rt/lib/msan/
HDmsan_new_delete.cpp43 void *res = msan_memalign((uptr)align, size, &stack); \
63 void *operator new(size_t size, std::align_val_t align) in operator new() argument
66 void *operator new[](size_t size, std::align_val_t align) in operator new[]() argument
69 void *operator new(size_t size, std::align_val_t align, std::nothrow_t const&) in operator new() argument
72 void *operator new[](size_t size, std::align_val_t align, std::nothrow_t const&) in operator new[]() argument
95 void operator delete(void *ptr, std::align_val_t align) NOEXCEPT in operator delete() argument
98 void operator delete[](void *ptr, std::align_val_t align) NOEXCEPT in operator delete[]() argument
101 void operator delete(void *ptr, std::align_val_t align, std::nothrow_t const&) in operator delete() argument
104 void operator delete[](void *ptr, std::align_val_t align, std::nothrow_t const&) in operator delete[]() argument
107 void operator delete(void *ptr, size_t size, std::align_val_t align) NOEXCEPT in operator delete() argument
[all …]
/freebsd-13-stable/contrib/llvm-project/compiler-rt/lib/asan/
HDasan_new_delete.cpp71 void *res = asan_memalign((uptr)align, size, &stack, type); \
97 void *operator new(size_t size, std::align_val_t align) in operator new() argument
100 void *operator new[](size_t size, std::align_val_t align) in operator new[]() argument
103 void *operator new(size_t size, std::align_val_t align, std::nothrow_t const&) in operator new() argument
106 void *operator new[](size_t size, std::align_val_t align, std::nothrow_t const&) in operator new[]() argument
134 asan_delete(ptr, 0, static_cast<uptr>(align), &stack, type);
138 asan_delete(ptr, size, static_cast<uptr>(align), &stack, type);
160 void operator delete(void *ptr, std::align_val_t align) NOEXCEPT in operator delete() argument
163 void operator delete[](void *ptr, std::align_val_t align) NOEXCEPT in operator delete[]() argument
166 void operator delete(void *ptr, std::align_val_t align, std::nothrow_t const&) in operator delete() argument
[all …]
/freebsd-13-stable/sys/net80211/
HDieee80211_radiotap.c279 size_t align, width; in radiotap_offset() member
282 .align = sizeof(uint64_t), in radiotap_offset()
286 .align = sizeof(uint8_t), in radiotap_offset()
290 .align = sizeof(uint8_t), in radiotap_offset()
294 .align = sizeof(uint16_t), in radiotap_offset()
298 .align = sizeof(uint16_t), in radiotap_offset()
302 .align = sizeof(uint8_t), in radiotap_offset()
306 .align = sizeof(uint8_t), in radiotap_offset()
310 .align = sizeof(uint16_t), in radiotap_offset()
314 .align = sizeof(uint16_t), in radiotap_offset()
[all …]
/freebsd-13-stable/sys/crypto/openssl/powerpc/
HDppccpuid.S7 .align 4
16 .align 4
27 .align 4
37 .align 4
48 .align 4
59 .align 4
93 .align 4
108 .align 4
118 .align 4
128 .align 4
[all …]
HDaesp8-ppc.S6 .align 7
22 .align 2
26 .align 5
80 .align 4
145 .align 4
220 .align 4
271 .align 4
290 .align 5
338 .align 5
406 .align 5
[all …]
/freebsd-13-stable/sys/crypto/openssl/powerpc64/
HDppccpuid.S8 .align 4
19 .align 4
32 .align 4
44 .align 4
57 .align 4
70 .align 4
106 .align 4
123 .align 4
135 .align 4
147 .align 4
[all …]
HDaesp8-ppc.S7 .align 7
23 .align 2
27 .align 5
83 .align 4
148 .align 4
223 .align 4
274 .align 4
293 .align 5
343 .align 5
413 .align 5
[all …]
/freebsd-13-stable/sys/crypto/openssl/powerpc64le/
HDppccpuid.S8 .align 4
19 .align 4
32 .align 4
44 .align 4
57 .align 4
70 .align 4
106 .align 4
123 .align 4
135 .align 4
147 .align 4
[all …]
/freebsd-13-stable/libexec/rtld-elf/mips/
HDrtld_machdep.h65 #define round(size, align) \ argument
66 (((size) + (align) - 1) & ~((align) - 1))
67 #define calculate_first_tls_offset(size, align, offset) \ argument
69 #define calculate_tls_offset(prev_offset, prev_size, size, align, offset) \ argument
70 round(prev_offset + prev_size, align)
71 #define calculate_tls_post_size(align) 0 argument

12345678910>>...34