Home
last modified time | relevance | path

Searched refs:ALIGN (Results 1 - 25 of 249) sorted by relevance

12345678910

/third_party/skia/third_party/externals/swiftshader/src/Common/
H A DTypes.hpp40 #define ALIGN(bytes, type) __declspec(align(bytes)) type macro
43 #define ALIGN(bytes, type) type __attribute__((aligned(bytes)))
48 typedef ALIGN(1, uint8_t) byte;
49 typedef ALIGN(2, uint16_t) word;
50 typedef ALIGN(4, uint32_t) dword;
51 typedef ALIGN(8, uint64_t) qword;
52 typedef ALIGN(16, uint64_t) qword2[2];
53 typedef ALIGN(4, uint8_t) byte4[4];
54 typedef ALIGN(8, uint8_t) byte8[8];
55 typedef ALIGN(1
[all...]
/third_party/optimized-routines/string/test/
H A Dstpcpy.c42 #define ALIGN 32 macro
46 static char wbuf[LEN + 3 * ALIGN];
51 return (void *) (((uintptr_t) p + ALIGN - 1) & -ALIGN); in alignup()
68 if (len > LEN || dalign >= ALIGN || salign >= ALIGN) in test()
70 for (i = 0; i < len + ALIGN; i++) in test()
77 for (int i = 1; i <= ALIGN; i++) in test()
92 for (i = 0; i < len + ALIGN; i++) in test()
98 quoteat ("got", dst, len + ALIGN, in test()
[all...]
H A Dstrcpy.c40 #define ALIGN 32 macro
44 static char wbuf[LEN + 3 * ALIGN];
49 return (void *) (((uintptr_t) p + ALIGN - 1) & -ALIGN); in alignup()
66 if (len > LEN || dalign >= ALIGN || salign >= ALIGN) in test()
68 for (i = 0; i < len + ALIGN; i++) in test()
75 for (int i = 1; i <= ALIGN; i++) in test()
90 for (i = 0; i < len + ALIGN; i++) in test()
96 quoteat ("got", dst, len + ALIGN, in test()
[all...]
H A Dstrlen.c44 #define ALIGN 32 macro
51 return (void *) (((uintptr_t) p + ALIGN - 1) & -ALIGN); in alignup()
63 if (len > LEN || align >= ALIGN) in test()
68 for (int i = 1; i <= ALIGN; i++) in test()
88 sbuf = mte_mmap (LEN + 3 * ALIGN); in main()
93 for (int a = 0; a < ALIGN; a++) in main()
H A Dmemchr.c41 #define ALIGN 32 macro
48 return (void *) (((uintptr_t) p + ALIGN - 1) & -ALIGN); in alignup()
63 if (len > LEN || seekpos > LEN || align > ALIGN) in test()
68 for (int i = 0; i <= ALIGN; i++) in test()
92 sbuf = mte_mmap (LEN + 3 * ALIGN); in main()
97 for (int a = 0; a < ALIGN; a++) in main()
H A Dmemrchr.c39 #define ALIGN 32 macro
46 return (void *) (((uintptr_t) p + ALIGN) & -ALIGN); in alignup()
61 if (len > LEN || seekpos > LEN || align > ALIGN) in test()
66 for (int i = 0; i <= ALIGN; i++) in test()
89 sbuf = mte_mmap (LEN + 3 * ALIGN); in main()
94 for (int a = 0; a < ALIGN; a++) in main()
H A Dstrchrnul.c43 #define ALIGN 32 macro
50 return (void *) (((uintptr_t) p + ALIGN - 1) & -ALIGN); in alignup()
64 if (len > LEN || seekpos >= len || align >= ALIGN) in test()
69 for (int i = 1; i <= ALIGN; i++) in test()
107 sbuf = mte_mmap (LEN + 3 * ALIGN); in main()
112 for (int a = 0; a < ALIGN; a++) in main()
H A Dstrrchr.c39 #define ALIGN 32 macro
46 return (void *) (((uintptr_t) p + ALIGN - 1) & -ALIGN); in alignup()
60 if (len > LEN || seekpos >= len || align >= ALIGN) in test()
65 for (int i = 1; i <= ALIGN; i++) in test()
102 sbuf = mte_mmap (LEN + 3 * ALIGN); in main()
107 for (int a = 0; a < ALIGN; a++) in main()
H A Dstrchr.c39 #define ALIGN 32 macro
46 return (void *) (((uintptr_t) p + ALIGN - 1) & -ALIGN); in alignup()
60 if (len > LEN || seekpos >= len || align >= ALIGN) in test()
65 for (int i = 1; i <= ALIGN; i++) in test()
102 sbuf = mte_mmap (LEN + 3 * ALIGN); in main()
107 for (int a = 0; a < ALIGN; a++) in main()
H A Dstrnlen.c42 #define ALIGN 32 macro
49 return (void *) (((uintptr_t) p + ALIGN - 1) & -ALIGN); in alignup()
62 if (len > LEN || align >= ALIGN) in test()
67 for (int i = 1; i <= ALIGN; i++) in test()
91 sbuf = mte_mmap (LEN + 3 * ALIGN); in main()
96 for (int a = 0; a < ALIGN; a++) in main()
/third_party/python/Modules/_ctypes/libffi_osx/powerpc/
H A Dppc-ffi_darwin.c268 size_al = ALIGN((*ptr)->size, 8); in ffi_prep_args()
481 size_al = ALIGN((*ptr)->size, 8); in ffi_prep_cif_machdep()
907 size_al = ALIGN(arg_types[i]->size, 8); in ffi_closure_helper_DARWIN()
1085 srcFMarker = ALIGN(srcFMarker, 4); in ffi64_struct_to_ram_form()
1086 srcGMarker = ALIGN(srcGMarker, 4); in ffi64_struct_to_ram_form()
1087 destMarker = ALIGN(destMarker, 4); in ffi64_struct_to_ram_form()
1109 (ALIGN(srcGMarker, 8) - srcGMarker) < 2) && in ffi64_struct_to_ram_form()
1111 (ALIGN(srcGMarker, 8) - srcGMarker) < 4)) in ffi64_struct_to_ram_form()
1112 srcGMarker = ALIGN(srcGMarker, 8); in ffi64_struct_to_ram_form()
1118 srcFMarker = ALIGN(srcFMarke in ffi64_struct_to_ram_form()
[all...]
/third_party/musl/src/string/
H A Dmemccpy.c5 #define ALIGN (sizeof(size_t)-1) macro
20 if (((uintptr_t)s & ALIGN) == ((uintptr_t)d & ALIGN)) { in memccpy()
21 for (; ((uintptr_t)s & ALIGN) && n && (*d=*s)!=c; n--, s++, d++); in memccpy()
22 if ((uintptr_t)s & ALIGN) goto tail; in memccpy()
H A Dstpcpy.c5 #define ALIGN (sizeof(size_t)) macro
16 if ((uintptr_t)s % ALIGN == (uintptr_t)d % ALIGN) { in __stpcpy()
17 for (; (uintptr_t)s % ALIGN; s++, d++) in __stpcpy()
H A Dstrlcpy.c6 #define ALIGN (sizeof(size_t)-1) macro
20 if (((uintptr_t)s & ALIGN) == ((uintptr_t)d & ALIGN)) { in strlcpy()
21 for (; ((uintptr_t)s & ALIGN) && n && (*d=*s); n--, s++, d++); in strlcpy()
/third_party/skia/third_party/externals/swiftshader/src/System/
H A DTypes.hpp45 # define ALIGN(bytes, type) __declspec(align(bytes)) type macro
48 # define ALIGN(bytes, type) type __attribute__((aligned(bytes)))
76 typedef ALIGN(1, uint8_t) byte;
77 typedef ALIGN(2, uint16_t) word;
78 typedef ALIGN(4, uint32_t) dword;
79 typedef ALIGN(8, uint64_t) qword;
80 typedef ALIGN(1, int8_t) sbyte;
/third_party/python/Modules/_ctypes/libffi_osx/
H A Dffi.c31 #define STACK_ARG_SIZE(x) ALIGN(x, FFI_SIZEOF_ARG)
66 arg->size = ALIGN(arg->size, curalign); in initialize_aggregate()
71 arg->size = ALIGN(arg->size, (*ptr)->alignment); in initialize_aggregate()
87 arg->size = ALIGN(arg->size, arg->alignment); in initialize_aggregate()
199 bytes = ALIGN(bytes, align); in ffi_prep_cif()
215 bytes = ALIGN(bytes, (*ptr)->alignment); in ffi_prep_cif()
/third_party/libdrm/tests/amdgpu/
H A Dvce_tests.c248 req.alloc_size = ALIGN(size, 4096); in alloc_resource()
306 ib_cpu[len + 8] = ALIGN(enc.width, align); in amdgpu_cs_vce_create()
307 ib_cpu[len + 9] = ALIGN(enc.width, align); in amdgpu_cs_vce_create()
358 unsigned luma_size = ALIGN(enc->width, align) * ALIGN(enc->height, 16); in amdgpu_cs_vce_encode_idr()
391 ib_cpu[len + 14] = ALIGN(enc->width, align); in amdgpu_cs_vce_encode_idr()
392 ib_cpu[len + 15] = ALIGN(enc->width, align); in amdgpu_cs_vce_encode_idr()
408 unsigned luma_size = ALIGN(enc->width, align) * ALIGN(enc->height, 16); in amdgpu_cs_vce_encode_p()
444 ib_cpu[len + 14] = ALIGN(en in amdgpu_cs_vce_encode_p()
[all...]
/third_party/musl/porting/uniproton/kernel/src/string/
H A Dstpcpy.c5 #define ALIGN (sizeof(size_t)) macro
16 if ((uintptr_t)s % ALIGN == (uintptr_t)d % ALIGN) { in __stpcpy()
17 for (; (uintptr_t)s % ALIGN; s++, d++) in __stpcpy()
H A Dstpncpy.c5 #define ALIGN (sizeof(size_t)-1) macro
16 if (((uintptr_t)s & ALIGN) == ((uintptr_t)d & ALIGN)) { in __stpncpy()
17 for (; ((uintptr_t)s & ALIGN) && n && (*d=*s); n--, s++, d++); in __stpncpy()
/third_party/musl/porting/liteos_a/kernel/src/string/
H A Dstpcpy.c5 #define ALIGN (sizeof(size_t)) macro
16 if ((uintptr_t)s % ALIGN == (uintptr_t)d % ALIGN) { in __stpcpy()
17 for (; (uintptr_t)s % ALIGN; s++, d++) in __stpcpy()
H A Dstpncpy.c5 #define ALIGN (sizeof(size_t)-1) macro
16 if (((uintptr_t)s & ALIGN) == ((uintptr_t)d & ALIGN)) { in __stpncpy()
17 for (; ((uintptr_t)s & ALIGN) && n && (*d=*s); n--, s++, d++); in __stpncpy()
H A Dstrlcpy.c6 #define ALIGN (sizeof(size_t)-1) macro
20 if (((uintptr_t)s & ALIGN) == ((uintptr_t)d & ALIGN)) { in strlcpy()
21 for (; ((uintptr_t)s & ALIGN) && n && (*d=*s); n--, s++, d++); in strlcpy()
/third_party/musl/porting/liteos_m/kernel/src/string/
H A Dstpcpy.c5 #define ALIGN (sizeof(size_t)) macro
16 if ((uintptr_t)s % ALIGN == (uintptr_t)d % ALIGN) { in __stpcpy()
17 for (; (uintptr_t)s % ALIGN; s++, d++) in __stpcpy()
H A Dstpncpy.c5 #define ALIGN (sizeof(size_t)-1) macro
16 if (((uintptr_t)s & ALIGN) == ((uintptr_t)d & ALIGN)) { in __stpncpy()
17 for (; ((uintptr_t)s & ALIGN) && n && (*d=*s); n--, s++, d++); in __stpncpy()
/third_party/pulseaudio/speex/libspeexdsp/
H A Dstack_alloc.h51 * @def ALIGN(stack, size)
91 #define ALIGN(stack, size) ((stack) += ((size) - (long)(stack)) & ((size) - 1)) macro
93 #define PUSH(stack, size, type) (VALGRIND_MAKE_NOACCESS(stack, 1000),ALIGN((stack),sizeof(type)),VALGRIND_MAKE_WRITABLE(stack, ((size)*sizeof(type))),(stack)+=((size)*sizeof(type)),(type*)((stack)-((size)*sizeof(type))))
97 #define ALIGN(stack, size) ((stack) += ((size) - (long)(stack)) & ((size) - 1)) macro
99 #define PUSH(stack, size, type) (ALIGN((stack),sizeof(type)),(stack)+=((size)*sizeof(type)),(type*)((stack)-((size)*sizeof(type))))

Completed in 8 milliseconds

12345678910