Searched defs:alignment (Results 1 - 25 of 331) sorted by relevance

1234567891011>>

/external/chromium_org/chrome/browser/themes/
H A Dtheme_properties_unittest.cc16 int alignment = ThemeProperties::StringToAlignment(top_left); local
18 alignment);
19 EXPECT_EQ(top_left, ThemeProperties::AlignmentToString(alignment));
22 alignment = ThemeProperties::StringToAlignment("top");
23 EXPECT_EQ(ThemeProperties::ALIGN_TOP, alignment);
24 EXPECT_EQ("center top", ThemeProperties::AlignmentToString(alignment));
26 alignment = ThemeProperties::StringToAlignment("left");
27 EXPECT_EQ(ThemeProperties::ALIGN_LEFT, alignment);
28 EXPECT_EQ("left center", ThemeProperties::AlignmentToString(alignment));
30 alignment
41 int alignment = ThemeProperties::StringToAlignment("bottom right"); local
[all...]
/external/clang/test/CodeGen/
H A D2005-07-26-UnionInitCrash.c3 union { char bytes[8]; double alignment; }EQ1 = {0,0,0,0,0,0,0,0}; member in union:__anon18536
/external/chromium_org/base/memory/
H A Daligned_memory.cc15 void* AlignedAlloc(size_t size, size_t alignment) { argument
17 DCHECK_EQ(alignment & (alignment - 1), 0U);
18 DCHECK_EQ(alignment % sizeof(void*), 0U);
21 ptr = _aligned_malloc(size, alignment);
28 ptr = memalign(alignment, size);
30 if (posix_memalign(&ptr, alignment, size))
38 << "size=" << size << ", alignment=" << alignment; local
41 // Sanity check alignment jus
[all...]
/external/chromium_org/third_party/openmax_dl/dl/sp/src/test/
H A Daligned_ptr.c15 /* |alignment| is the byte alignment and MUST be a power of two. */
16 struct AlignedPtr* AllocAlignedPointer(int alignment, int bytes) { argument
21 aligned_ptr->raw_pointer_ = malloc(bytes + alignment);
23 raw_address = (raw_address + alignment - 1) & ~(alignment - 1);
/external/chromium_org/ash/system/
H A Dstatus_area_widget_delegate.h27 // Called whenever layout might change (e.g. alignment changed).
33 void set_alignment(ShelfAlignment alignment) { alignment_ = alignment; } argument
/external/chromium_org/ash/system/tray/
H A Dtray_utils.cc25 ShelfAlignment alignment) {
26 if (alignment == SHELF_ALIGNMENT_BOTTOM ||
27 alignment == SHELF_ALIGNMENT_TOP) {
43 ShelfAlignment alignment) {
44 if (alignment == SHELF_ALIGNMENT_BOTTOM ||
45 alignment == SHELF_ALIGNMENT_TOP) {
52 // Center the label for vertical launcher alignment.
24 SetTrayImageItemBorder(views::View* tray_view, ShelfAlignment alignment) argument
42 SetTrayLabelItemBorder(TrayItemView* tray_view, ShelfAlignment alignment) argument
H A Dtray_image_item.cc59 void TrayImageItem::UpdateAfterShelfAlignmentChange(ShelfAlignment alignment) { argument
60 SetTrayImageItemBorder(tray_view_, alignment);
61 SetItemAlignment(alignment);
74 void TrayImageItem::SetItemAlignment(ShelfAlignment alignment) { argument
77 switch (alignment) {
/external/chromium_org/chrome/browser/chromeos/first_run/steps/
H A Dtray_step.cc31 ash::ShelfAlignment alignment = local
33 if ((!base::i18n::IsRTL() && alignment != ash::SHELF_ALIGNMENT_LEFT) ||
34 alignment == ash::SHELF_ALIGNMENT_RIGHT)
/external/chromium_org/third_party/mesa/src/src/gallium/auxiliary/os/
H A Dos_memory_aligned.h30 * Memory alignment wrappers.
43 * Return memory on given byte alignment
46 os_malloc_aligned(size_t size, size_t alignment) argument
50 ptr = (char *) os_malloc(size + alignment + sizeof(void *));
54 buf = (char *)(((uintptr_t)ptr + sizeof(void *) + alignment - 1) & ~((uintptr_t)(alignment - 1)));
H A Dos_memory_stdc.h54 os_malloc_aligned(size_t size, size_t alignment) argument
57 alignment = (alignment + sizeof(void*) - 1) & ~(sizeof(void*) - 1);
58 if(posix_memalign(&ptr, alignment, size) != 0)
/external/chromium_org/third_party/webrtc/system_wrappers/interface/
H A Daligned_malloc.h18 // Note: alignment must be a power of two. The alignment is in bytes.
24 // Returns a pointer to the first boundry of |alignment| bytes following the
28 void* GetRightAlign(const void* ptr, size_t alignment);
30 // Allocates memory of |size| bytes aligned on an |alignment| boundry.
33 void* AlignedMalloc(size_t size, size_t alignment);
40 T* GetRightAlign(const T* ptr, size_t alignment) { argument
42 alignment));
45 T* AlignedMalloc(size_t size, size_t alignment) { argument
46 return reinterpret_cast<T*>(AlignedMalloc(size, alignment));
[all...]
/external/fio/
H A Dmemalign.c14 void *fio_memalign(size_t alignment, size_t size) argument
19 assert(!(alignment & (alignment - 1)));
21 ptr = malloc(size + alignment + size + sizeof(*f) - 1);
23 ret = PTR_ALIGN(ptr, alignment);
/external/mesa3d/src/gallium/auxiliary/os/
H A Dos_memory_aligned.h30 * Memory alignment wrappers.
43 * Return memory on given byte alignment
46 os_malloc_aligned(size_t size, size_t alignment) argument
50 ptr = (char *) os_malloc(size + alignment + sizeof(void *));
54 buf = (char *)(((uintptr_t)ptr + sizeof(void *) + alignment - 1) & ~((uintptr_t)(alignment - 1)));
H A Dos_memory_stdc.h54 os_malloc_aligned(size_t size, size_t alignment) argument
57 alignment = (alignment + sizeof(void*) - 1) & ~(sizeof(void*) - 1);
58 if(posix_memalign(&ptr, alignment, size) != 0)
/external/smali/util/src/main/java/org/jf/util/
H A DAlignmentUtils.java32 public static int alignOffset(int offset, int alignment) { argument
33 int mask = alignment - 1;
34 assert (alignment >= 0) && ((mask & alignment) == 0);
38 public static boolean isAligned(int offset, int alignment) { argument
39 return (offset % alignment) == 0;
/external/chromium_org/ash/shelf/
H A Dshelf.h61 void SetAlignment(ShelfAlignment alignment);
62 ShelfAlignment alignment() const { return alignment_; } function in class:ash::Shelf
/external/chromium_org/base/allocator/
H A Dwin_allocator.cc50 void* win_heap_memalign(size_t alignment, size_t size) { argument
53 size_t allocation_size = size + (alignment - 1) + sizeof(void*);
57 DCHECK_LT(alignment, allocation_size);
67 alignment - reinterpret_cast<uintptr_t>(aligned_ptr) & (alignment - 1);
/external/chromium_org/third_party/webrtc/system_wrappers/source/
H A Daligned_malloc_unittest.cc25 // Returns true if |size| and |alignment| are valid combinations.
26 bool CorrectUsage(size_t size, size_t alignment) { argument
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 local
71 size_t alignment = 32; local
77 size_t alignment = 128; local
[all...]
/external/chromium_org/ui/views/
H A Dview_model_utils.cc17 int primary_axis_coordinate(ViewModelUtils::Alignment alignment, argument
20 return alignment == ViewModelUtils::HORIZONTAL ? x : y;
44 Alignment alignment,
47 int value = primary_axis_coordinate(alignment, x, y);
52 alignment,
65 alignment,
73 alignment,
42 DetermineMoveIndex(const ViewModel& model, View* view, Alignment alignment, int x, int y) argument
/external/deqp/framework/delibs/decpp/
H A DdeArrayBuffer.cpp35 void* ArrayBuffer_AlignedMalloc (size_t numBytes, size_t alignment) argument
45 ptr = deAlignedMalloc(sizeAsInt, (int)alignment);
/external/jemalloc/test/integration/
H A Daligned_alloc.c10 size_t alignment; local
13 alignment = 0;
15 p = aligned_alloc(alignment, 1);
17 "Expected error for invalid alignment %zu", alignment);
19 for (alignment = sizeof(size_t); alignment < MAXALIGN;
20 alignment <<= 1) {
22 p = aligned_alloc(alignment + 1, 1);
24 "Expected error for invalid alignment
32 size_t alignment, size; local
77 size_t alignment, size, total; local
[all...]
H A Dchunk.c14 chunk_alloc(size_t size, size_t alignment, bool *zero, unsigned arena_ind) argument
17 return (old_alloc(size, alignment, zero, arena_ind));
H A Dmallocx.c38 size_t nsz, rsz, sz, alignment, total; local
45 for (alignment = 8;
46 alignment <= MAXALIGN;
47 alignment <<= 1) {
50 sz < 3 * alignment && sz < (1U << 31);
51 sz += (alignment >> (LG_SIZEOF_PTR-1)) - 1) {
53 nsz = nallocx(sz, MALLOCX_ALIGN(alignment) |
56 "nallocx() error for alignment=%zu, "
57 "size=%zu (%#zx)", alignment, sz, sz);
58 ps[i] = mallocx(sz, MALLOCX_ALIGN(alignment) |
[all...]
H A Dposix_memalign.c10 size_t alignment; local
13 for (alignment = 0; alignment < sizeof(void *); alignment++) {
14 assert_d_eq(posix_memalign(&p, alignment, 1), EINVAL,
15 "Expected error for invalid alignment %zu",
16 alignment); local
19 for (alignment = sizeof(size_t); alignment < MAXALIGN;
20 alignment <<
23 alignment + 1); local
30 size_t alignment, size; local
42 alignment, size); local
53 alignment, size); local
63 alignment, size); local
69 size_t alignment, size, total; local
[all...]
/external/webrtc/src/system_wrappers/source/
H A Daligned_malloc.cc34 // Ok reference on memory alignment:
35 // http://stackoverflow.com/questions/227897/solve-the-memory-alignment-in-c-interview-question-that-stumped-me
48 void* AlignedMalloc(size_t size, size_t alignment) argument
50 if(alignment == 0)
52 // Don't allow alignment 0 since it's undefined.
55 // Make sure that the alignment is an integer power of two or fail.
56 if(alignment & (alignment - 1))
68 // alignment - 1 bytes needs to be allocated.
72 alignment
[all...]

Completed in 541 milliseconds

1234567891011>>