Home
last modified time | relevance | path

Searched refs:aligned (Results 1 - 25 of 296) sorted by relevance

12345678910>>...12

/third_party/vk-gl-cts/framework/referencerenderer/
H A DrrVertexAttrib.cpp62 SrcScalarType aligned[4]; in readOrder() local
63 deMemcpy(aligned, ptr, size * sizeof(SrcScalarType)); in readOrder()
65 dst[Order::T0] = DstScalarType(aligned[0]); in readOrder()
66 if (size >= 2) dst[Order::T1] = DstScalarType(aligned[1]); in readOrder()
67 if (size >= 3) dst[Order::T2] = DstScalarType(aligned[2]); in readOrder()
68 if (size >= 4) dst[Order::T3] = DstScalarType(aligned[3]); in readOrder()
76 SrcScalarType aligned[4]; in readUnormOrder() local
77 deMemcpy(aligned, ptr, size * sizeof(SrcScalarType)); in readUnormOrder()
79 dst[Order::T0] = float(aligned[0]) / float(range); in readUnormOrder()
80 if (size >= 2) dst[Order::T1] = float(aligned[ in readUnormOrder()
91 SrcScalarType aligned[4]; readSnormClamp() local
106 SrcScalarType aligned[4]; readSnormScale() local
117 deUint16 aligned[4]; readHalf() local
128 deInt32 aligned[4]; readFixed() local
139 double aligned[4]; readDouble() local
157 deUint32 aligned; readUint2101010Rev() local
169 deUint32 aligned; readInt2101010Rev() local
184 deUint32 aligned; readUnorm2101010RevOrder() local
200 deUint32 aligned; readSnorm2101010RevClampOrder() local
216 deUint32 aligned; readSnorm2101010RevScaleOrder() local
[all...]
/third_party/ltp/include/lapi/
H A Dsched.h50 uint64_t __attribute__((aligned(8))) flags;
51 uint64_t __attribute__((aligned(8))) pidfd;
52 uint64_t __attribute__((aligned(8))) child_tid;
53 uint64_t __attribute__((aligned(8))) parent_tid;
54 uint64_t __attribute__((aligned(8))) exit_signal;
55 uint64_t __attribute__((aligned(8))) stack;
56 uint64_t __attribute__((aligned(8))) stack_size;
57 uint64_t __attribute__((aligned(8))) tls;
58 uint64_t __attribute__((aligned(8))) set_tid;
59 uint64_t __attribute__((aligned(
[all...]
H A Dclone.h20 uint64_t __attribute__((aligned(8))) flags;
21 uint64_t __attribute__((aligned(8))) pidfd;
22 uint64_t __attribute__((aligned(8))) child_tid;
23 uint64_t __attribute__((aligned(8))) parent_tid;
24 uint64_t __attribute__((aligned(8))) exit_signal;
25 uint64_t __attribute__((aligned(8))) stack;
26 uint64_t __attribute__((aligned(8))) stack_size;
27 uint64_t __attribute__((aligned(8))) tls;
/third_party/ffmpeg/libavcodec/arm/
H A Dpixblockdsp_neon.S23 .macro vld1_8 dst, src, incr, aligned
24 .if \aligned
31 .macro get_pixels suffix, aligned
35 vld1_8 d0, r1, r2, \aligned
37 vld1_8 d2, r1, r2, \aligned
47 get_pixels , aligned=1
48 get_pixels _unaligned, aligned=0
50 .macro diff_pixels suffix, aligned=0
54 vld1_8 d0, r1, r3, \aligned
55 vld1_8 d1, r2, r3, \aligned
[all...]
/third_party/mbedtls/programs/test/
H A Dmetatest.c194 * Poison a region starting at start from an 8-byte aligned origin,
216 } aligned; in test_memory_poison() local
217 memset(aligned.buf, 'a', sizeof(aligned.buf)); in test_memory_poison()
219 if (start > sizeof(aligned.buf)) { in test_memory_poison()
223 __func__, start, sizeof(aligned.buf)); in test_memory_poison()
226 if (start + count > sizeof(aligned.buf)) { in test_memory_poison()
230 __func__, start + count, sizeof(aligned.buf)); in test_memory_poison()
241 MBEDTLS_TEST_MEMORY_POISON(aligned.buf + start, count); in test_memory_poison()
244 aligned in test_memory_poison()
[all...]
/third_party/ffmpeg/libavutil/
H A Dmem.h43 * encoding can be sped up significantly through the use of aligned memory.
58 * Helper macros for declaring aligned variables.
64 * Declare a variable that is aligned in memory.
82 * Declare an aligned variable appropriate for use in inline assembly code.
95 * Declare a static constant aligned variable appropriate for use in inline
108 #define DECLARE_ALIGNED(n,t,v) t __attribute__ ((aligned (n))) v
109 #define DECLARE_ASM_ALIGNED(n,t,v) t __attribute__ ((aligned (n))) v
110 #define DECLARE_ASM_CONST(n,t,v) const t __attribute__ ((aligned (n))) v
112 #define DECLARE_ALIGNED(n,t,v) t __attribute__ ((aligned (FFMIN(n, 16)))) v
113 #define DECLARE_ASM_ALIGNED(n,t,v) t av_used __attribute__ ((aligned (FFMI
[all...]
H A Dmem_internal.h35 * Declare a variable that is aligned in memory.
53 * Declare an aligned variable appropriate for use in inline assembly code.
66 * Declare a static constant aligned variable appropriate for use in inline
79 #define DECLARE_ALIGNED(n,t,v) t __attribute__ ((aligned (n))) v
80 #define DECLARE_ASM_ALIGNED(n,t,v) t __attribute__ ((aligned (n))) v
81 #define DECLARE_ASM_CONST(n,t,v) const t __attribute__ ((aligned (n))) v
83 #define DECLARE_ALIGNED(n,t,v) t __attribute__ ((aligned (FFMIN(n, 16)))) v
84 #define DECLARE_ASM_ALIGNED(n,t,v) t av_used __attribute__ ((aligned (FFMIN(n, 16)))) v
85 #define DECLARE_ASM_CONST(n,t,v) static const t av_used __attribute__ ((aligned (FFMIN(n, 16)))) v
87 #define DECLARE_ALIGNED(n,t,v) t __attribute__ ((aligned (
[all...]
/third_party/node/benchmark/buffers/
H A Dbuffer-swap.js6 aligned: ['true', 'false'],
60 function createBuffer(len, aligned) {
61 len += aligned ? 0 : 1;
65 return aligned ? buf : buf.slice(1);
77 function main({ method, len, n, aligned = 'true' }) {
78 const buf = createBuffer(len, aligned === 'true');
/third_party/skia/third_party/externals/swiftshader/third_party/llvm-10.0/llvm/include/llvm/Support/
H A DEndian.h32 enum {aligned = 0, unaligned = 1}; enumerator
286 detail::packed_endian_specific_integral<uint16_t, little, aligned>;
288 detail::packed_endian_specific_integral<uint32_t, little, aligned>;
290 detail::packed_endian_specific_integral<uint64_t, little, aligned>;
293 detail::packed_endian_specific_integral<int16_t, little, aligned>;
295 detail::packed_endian_specific_integral<int32_t, little, aligned>;
297 detail::packed_endian_specific_integral<int64_t, little, aligned>;
314 detail::packed_endian_specific_integral<uint16_t, big, aligned>;
316 detail::packed_endian_specific_integral<uint32_t, big, aligned>;
318 detail::packed_endian_specific_integral<uint64_t, big, aligned>;
[all...]
/third_party/skia/third_party/externals/swiftshader/src/Common/
H A DMemory.cpp57 unsigned char *aligned = nullptr; in allocateRaw() local
61 aligned = (unsigned char*)((uintptr_t)(block + sizeof(Allocation) + alignment - 1) & -(intptr_t)alignment); in allocateRaw()
62 Allocation *allocation = (Allocation*)(aligned - sizeof(Allocation)); in allocateRaw()
68 return aligned; in allocateRaw()
106 unsigned char *aligned = (unsigned char*)memory; in deallocate() local
107 Allocation *allocation = (Allocation*)(aligned - sizeof(Allocation)); in deallocate()
/third_party/skia/third_party/externals/swiftshader/src/System/
H A DMemory.cpp82 unsigned char *aligned = nullptr; in allocate() local
91 aligned = (unsigned char *)((uintptr_t)(block + sizeof(Allocation) + alignment - 1) & -(intptr_t)alignment); in allocate()
92 Allocation *allocation = (Allocation *)(aligned - sizeof(Allocation)); in allocate()
98 return aligned; in allocate()
123 unsigned char *aligned = (unsigned char *)memory; in freeMemory() local
124 Allocation *allocation = (Allocation *)(aligned - sizeof(Allocation)); in freeMemory()
/third_party/ntfs-3g/libntfs-3g/
H A Dioctl.c231 u64 aligned; in align_up() local
233 aligned = (lcn << vol->cluster_size_bits) + granularity - 1; in align_up()
234 aligned -= aligned % granularity; in align_up()
235 return (aligned >> vol->cluster_size_bits); in align_up()
240 u64 aligned; in align_down() local
242 aligned = count << vol->cluster_size_bits; in align_down()
243 aligned -= aligned % granularity; in align_down()
244 return (aligned >> vo in align_down()
[all...]
/third_party/skia/third_party/externals/swiftshader/third_party/llvm-subzero/include/llvm/Support/
H A DEndian.h25 enum {aligned = 0, unaligned = 1}; enumerator
247 <uint16_t, little, aligned> aligned_ulittle16_t;
249 <uint32_t, little, aligned> aligned_ulittle32_t;
251 <uint64_t, little, aligned> aligned_ulittle64_t;
254 <int16_t, little, aligned> aligned_little16_t;
256 <int32_t, little, aligned> aligned_little32_t;
258 <int64_t, little, aligned> aligned_little64_t;
275 <uint16_t, big, aligned> aligned_ubig16_t;
277 <uint32_t, big, aligned> aligned_ubig32_t;
279 <uint64_t, big, aligned> aligned_ubig64_
[all...]
H A DAlignOf.h23 /// \brief Helper for building an aligned character array type.
25 /// This template is used to explicitly build up a collection of aligned
42 /// \brief Create a type with an aligned char buffer.
57 char aligned;
65 short aligned;
73 int aligned;
81 double aligned;
127 /// \brief This union template exposes a suitably aligned and sized character
/third_party/musl/libc-test/src/functional/
H A Dstring_memcpy.c10 static void *aligned(void *p) { in aligned() function
17 char *src = aligned(buf); in test_align()
18 char *dst = aligned(buf + 128); in test_align()
19 char *want = aligned(buf + 256); in test_align()
H A Dtls_local_exec.c7 static __thread char d64 __attribute__ ((aligned(64))) = 22;
8 static __thread char d4096 __attribute__ ((aligned(4096))) = 33;
10 static __thread char z64 __attribute__ ((aligned(64))) = 0;
11 static __thread char z4096 __attribute__ ((aligned(4096))) = 0;
H A Dstring_memset.c12 static char *aligned(void *p) in aligned() function
19 char *s = aligned(buf+64) + align; in test_align()
20 char *want = aligned(buf2+64) + align; in test_align()
/third_party/ffmpeg/libavutil/x86/
H A Dpixelutils_init.c48 void ff_pixelutils_sad_init_x86(av_pixelutils_sad_fn *sad, int aligned) in ff_pixelutils_sad_init_x86() argument
63 switch (aligned) { in ff_pixelutils_sad_init_x86()
65 case 1: sad[3] = ff_pixelutils_sad_u_16x16_sse2; break; // src1 aligned, src2 unaligned in ff_pixelutils_sad_init_x86()
66 case 2: sad[3] = ff_pixelutils_sad_a_16x16_sse2; break; // src1 aligned, src2 aligned in ff_pixelutils_sad_init_x86()
71 switch (aligned) { in ff_pixelutils_sad_init_x86()
73 case 1: sad[4] = ff_pixelutils_sad_u_32x32_sse2; break; // src1 aligned, src2 unaligned in ff_pixelutils_sad_init_x86()
74 case 2: sad[4] = ff_pixelutils_sad_a_32x32_sse2; break; // src1 aligned, src2 aligned in ff_pixelutils_sad_init_x86()
79 switch (aligned) { in ff_pixelutils_sad_init_x86()
[all...]
/third_party/ffmpeg/tests/checkasm/
H A Dpixblockdsp.c48 #define check_get_pixels(type, aligned) \
54 int src_offset = i * 64 * sizeof(type) + (aligned ? 8 : 1) * i; \
55 int dst_offset = i * 64; /* dst must be aligned */ \
65 #define check_diff_pixels(type, aligned) \
71 int src_offset = i * 64 * sizeof(type) + (aligned ? 8 : 1) * i; \
72 int dst_offset = i * 64; /* dst must be aligned */ \
/third_party/mesa3d/src/gallium/drivers/panfrost/
H A Dpan_mempool.c135 unsigned aligned = ALIGN_POT(sz, sysconf(_SC_PAGESIZE)); in panfrost_pool_alloc_aligned() local
136 unsigned bo_size = aligned + PAN_GUARD_SIZE; in panfrost_pool_alloc_aligned()
143 offset = ROUND_DOWN_TO(aligned - sz, alignment); in panfrost_pool_alloc_aligned()
145 if (mprotect(bo->ptr.cpu + aligned, in panfrost_pool_alloc_aligned()
/third_party/skia/modules/sksg/src/
H A DSkSGText.cpp29 auto aligned = fPosition; in alignedPosition() local
35 aligned.offset(-advance / 2, 0); in alignedPosition()
38 aligned.offset(-advance, 0); in alignedPosition()
42 return aligned; in alignedPosition()
/third_party/skia/third_party/externals/swiftshader/src/Reactor/
H A DExecutableMemory.cpp89 unsigned char *aligned = nullptr; in allocateRaw() local
93 aligned = (unsigned char *)((uintptr_t)(block + sizeof(Allocation) + alignment - 1) & -(intptr_t)alignment); in allocateRaw()
94 Allocation *allocation = (Allocation *)(aligned - sizeof(Allocation)); in allocateRaw()
100 return aligned; in allocateRaw()
258 unsigned char *aligned = (unsigned char *)memory; in deallocate()
259 Allocation *allocation = (Allocation *)(aligned - sizeof(Allocation)); in deallocate()
333 // zx_vmar_map() returns page-aligned address. in allocateMemoryPages()
/third_party/skia/third_party/externals/dawn/src/tests/unittests/
H A DMathTests.cpp145 char* aligned = AlignPtr(unaligned, kTestAlignment); in TEST() local
147 ASSERT_GE(aligned - unaligned, 0); in TEST()
148 ASSERT_LT(static_cast<size_t>(aligned - unaligned), kTestAlignment); in TEST()
149 ASSERT_EQ(reinterpret_cast<uintptr_t>(aligned) & (kTestAlignment - 1), 0u); in TEST()
191 char* aligned = AlignPtr(unaligned, kTestAlignment); in TEST() local
193 ASSERT_EQ(IsPtrAligned(unaligned, kTestAlignment), unaligned == aligned); in TEST() local
199 // 0 is aligned in TEST()
204 // Multiples are aligned in TEST()
212 // Alignment with 1 is always aligned in TEST()
217 // Everything in the range (align, 2*align) is not aligned in TEST()
[all...]
/third_party/vk-gl-cts/modules/gles2/stress/
H A Des2sVertexArrayTests.cpp88 const bool aligned = (stride % Array::inputTypeSize(inputTypes[inputTypeNdx])) == 0; in init() local
108 if (!aligned) in init()
228 const bool aligned = ((stride % Array::inputTypeSize(inputTypes[inputTypeNdx])) == 0) && (offsets[offsetNdx] % Array::inputTypeSize(inputTypes[inputTypeNdx]) == 0); in init() local
248 if (!aligned) in init()
296 const bool aligned = ((stride % Array::inputTypeSize(inputTypes[inputTypeNdx])) == 0) && ((offsets[offsetNdx] % Array::inputTypeSize(inputTypes[inputTypeNdx])) == 0); in init() local
316 if (!aligned) in init()
/third_party/rust/crates/bindgen/bindgen-tests/tests/headers/
H A Dlayout.h9 unsigned char data[] __attribute__ ((aligned(8)));
10 } __attribute__ ((aligned, packed));

Completed in 9 milliseconds

12345678910>>...12