HomeSort by relevance Sort by last modified time
    Searched defs:alignment (Results 1 - 25 of 638) sorted by null

1 2 3 4 5 6 7 8 91011>>

  /external/clang/test/CodeGen/
2005-07-26-UnionInitCrash.c 3 union { char bytes[8]; double alignment; }EQ1 = {0,0,0,0,0,0,0,0}; member in union:__anon15759
  /external/compiler-rt/test/scudo/
memalign.cpp 6 // tests for the condition where the alignment is not a power of 2.
14 extern "C" void *aligned_alloc (size_t alignment, size_t size);
19 size_t alignment = 1U << 12; local
20 size_t size = alignment;
24 p = memalign(alignment, size);
29 posix_memalign(&p, alignment, size);
33 p = aligned_alloc(alignment, size);
39 p = memalign(alignment - 1, size);
45 // CHECK: ERROR: malloc alignment is not a power of 2
  /external/libchrome/base/memory/
aligned_memory.cc 16 void* AlignedAlloc(size_t size, size_t alignment) {
18 DCHECK_EQ(alignment & (alignment - 1), 0U);
19 DCHECK_EQ(alignment % sizeof(void*), 0U);
22 ptr = _aligned_malloc(size, alignment);
29 ptr = memalign(alignment, size);
31 if (posix_memalign(&ptr, alignment, size))
39 << "size=" << size << ", alignment=" << alignment; local
42 // Sanity check alignment just to be safe
    [all...]
  /external/libdrm/tests/radeon/
rbo.h 38 unsigned alignment; member in struct:rbo
43 unsigned alignment, void *ptr);
  /external/tensorflow/tensorflow/compiler/xla/service/cpu/
external_constant_pool.cc 30 int64 alignment) {
32 CHECK(alignment > 0 && IsPowerOfTwo(static_cast<uint64>(alignment)));
37 literal_size, std::max<size_t>(alignment, sizeof(void*)));
39 << " bytes with alignment of " << alignment; local
external_constant_pool_test.cc 63 TEST(ExternalConstantPoolTest, Alignment) {
68 int64 alignment = 1 << i; local
72 constant_pool.Insert(name, *literal, alignment);
76 EXPECT_EQ(reinterpret_cast<intptr_t>(constant) % alignment, 0);
  /frameworks/compile/mclinker/lib/Target/Mips/
MipsLA25Stub.cpp 82 size_t MipsLA25Stub::alignment() const { function in class:mcld::MipsLA25Stub
  /tools/apkzlib/src/main/java/com/android/tools/build/apkzlib/zip/
AlignmentRule.java 22 * An alignment rule defines how to a file should be aligned in a zip, based on its name.
27 * Alignment value of files that do not require alignment.
32 * Obtains the alignment this rule computes for a given path.
35 * @return the alignment value, always greater than {@code 0}; if this rule places no
38 int alignment(@Nonnull String path); method in interface:AlignmentRule
  /cts/tests/openglperf2/jni/reference/scene/flocking/
Boid.cpp 26 Vector2D alignment; local
45 // Alignment.
46 alignment.add(b->mVelocity);
62 alignment.scale(1.0f / alignmentCount);
63 alignment.limit(MAX_FORCE);
64 alignment.scale(ALIGNMENT_WEIGHT);
65 mAcceleration.add(alignment);
  /external/boringssl/src/include/openssl/
thread.h 89 double alignment; member in union:crypto_mutex_st
99 // do that. Instead we statically assert that the size and native alignment of
  /external/deqp/external/vulkancts/modules/vulkan/image/
vktImageLoadStoreUtil.cpp 101 //! Minimum chunk size is determined by the offset alignment requirements.
105 const VkDeviceSize alignment = properties.limits.minUniformBufferOffsetAlignment; local
107 if (minimumRequiredChunkSizeBytes > alignment)
108 return alignment + (minimumRequiredChunkSizeBytes / alignment) * alignment;
110 return alignment;
  /external/jemalloc/test/integration/
aligned_alloc.c 21 size_t alignment; local
24 alignment = 0;
26 p = aligned_alloc(alignment, 1);
28 "Expected error for invalid alignment %zu", alignment);
30 for (alignment = sizeof(size_t); alignment < MAXALIGN;
31 alignment <<= 1) {
33 p = aligned_alloc(alignment + 1, 1);
35 "Expected error for invalid alignment %zu"
43 size_t alignment, size; local
89 size_t alignment, size, total; local
    [all...]
posix_memalign.c 21 size_t alignment; local
24 for (alignment = 0; alignment < sizeof(void *); alignment++) {
25 assert_d_eq(posix_memalign(&p, alignment, 1), EINVAL,
26 "Expected error for invalid alignment %zu",
27 alignment); local
30 for (alignment = sizeof(size_t); alignment < MAXALIGN;
31 alignment <<= 1)
34 alignment + 1); local
41 size_t alignment, size; local
53 alignment, size); local
64 alignment, size); local
74 alignment, size); local
81 size_t alignment, size, total; local
    [all...]
sdallocx.c 15 size_t nsz, sz, alignment, total; local
22 for (alignment = 8;
23 alignment <= MAXALIGN;
24 alignment <<= 1) {
27 sz < 3 * alignment && sz < (1U << 31);
28 sz += (alignment >> (LG_SIZEOF_PTR-1)) - 1) {
30 nsz = nallocx(sz, MALLOCX_ALIGN(alignment) |
32 ps[i] = mallocx(sz, MALLOCX_ALIGN(alignment) |
41 MALLOCX_ALIGN(alignment));
  /external/lzma/Java/Tukaani/src/org/tukaani/xz/
BCJOptions.java 13 private final int alignment; field in class:BCJOptions
16 BCJOptions(int alignment) {
17 this.alignment = alignment;
27 if ((startOffset & (alignment - 1)) != 0)
29 "Start offset must be a multiple of " + alignment);
  /external/skia/src/sksl/
SkSLMemoryLayout.h 43 * Returns a type's required alignment when used as a standalone variable.
45 size_t alignment(const Type& type) const { function in class:SkSL::MemoryLayout
56 return this->roundUpIfNeeded(this->alignment(type.componentType()));
60 size_t alignment = this->alignment(*f.fType); local
61 if (alignment > result) {
62 result = alignment;
80 return this->alignment(type);
106 size_t alignment = this->alignment(*f.fType) local
113 size_t alignment = this->alignment(type); local
    [all...]
  /external/skqp/src/sksl/
SkSLMemoryLayout.h 43 * Returns a type's required alignment when used as a standalone variable.
45 size_t alignment(const Type& type) const { function in class:SkSL::MemoryLayout
56 return this->roundUpIfNeeded(this->alignment(type.componentType()));
60 size_t alignment = this->alignment(*f.fType); local
61 if (alignment > result) {
62 result = alignment;
80 return this->alignment(type);
106 size_t alignment = this->alignment(*f.fType) local
113 size_t alignment = this->alignment(type); local
    [all...]
  /external/tensorflow/tensorflow/core/common_runtime/gpu/
pool_allocator_test.cc 38 EXPECT_EQ(nullptr, pool.AllocateRaw(4 /*alignment*/, 0 /*num_bytes*/));
79 TEST(PoolAllocatorTest, Alignment) {
89 size_t alignment = 1 << i; local
90 void* p = pool.AllocateRaw(alignment, 111);
92 EXPECT_EQ(0, reinterpret_cast<int64>(p) & (alignment - 1))
93 << "ptr: " << p << " alignment " << alignment; local
  /external/v8/src/
allocation.cc 54 void* AlignedAlloc(size_t size, size_t alignment) {
55 DCHECK_LE(V8_ALIGNOF(void*), alignment); local
56 DCHECK(base::bits::IsPowerOfTwo64(alignment));
59 ptr = _aligned_malloc(size, alignment);
63 ptr = memalign(alignment, size);
65 if (posix_memalign(&ptr, alignment, size)) ptr = NULL;
  /external/webrtc/webrtc/system_wrappers/source/
aligned_malloc_unittest.cc 25 // Returns true if |size| and |alignment| are valid combinations.
26 bool CorrectUsage(size_t size, size_t alignment) {
28 static_cast<char*>(AlignedMalloc(size, alignment)));
33 return 0u == scoped_address % alignment;
38 const size_t alignment = 32; local
41 static_cast<char*>(AlignedMalloc(size, alignment)));
47 const char* realigned_ptr = GetRightAlign(misaligned_ptr, alignment);
53 const size_t alignment = 64; local
54 EXPECT_FALSE(CorrectUsage(incorrect_size, alignment));
65 size_t alignment = 2 local
71 size_t alignment = 32; local
77 size_t alignment = 128; local
    [all...]
  /frameworks/compile/mclinker/lib/Target/ARM/
ARMToARMStub.cpp 100 size_t ARMToARMStub::alignment() const { function in class:mcld::ARMToARMStub
ARMToTHMStub.cpp 108 size_t ARMToTHMStub::alignment() const { function in class:mcld::ARMToTHMStub
THMToARMStub.cpp 121 size_t THMToARMStub::alignment() const { function in class:mcld::THMToARMStub
THMToTHMStub.cpp 118 size_t THMToTHMStub::alignment() const { function in class:mcld::THMToTHMStub
  /frameworks/compile/mclinker/lib/Target/Hexagon/
HexagonAbsoluteStub.cpp 104 size_t HexagonAbsoluteStub::alignment() const { function in class:mcld::HexagonAbsoluteStub

Completed in 395 milliseconds

1 2 3 4 5 6 7 8 91011>>