Home
last modified time | relevance | path

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

1234567

/hardware/google/aemu/base/include/aemu/base/
DAlignedBuf.h33 template <class T, size_t align>
37 static_assert(align && ((align & (align - 1)) == 0), in AlignedBuf()
101 size_t pad = std::max(align, sizeof(T)); in resizeImpl()
103 size_t newSizeBytes = ((align - 1 + newSize * sizeof(T) + pad) / align) * align; in resizeImpl()
120 size_t actualAlign = std::max(align, sizeof(void*)); in reallocImpl()
147 void* aligned_buf_alloc(size_t align, size_t size);
/hardware/google/aemu/base/
DAlignedBuf_unittest.cpp28 static void checkAligned(size_t align, void* ptr) { in checkAligned() argument
30 EXPECT_EQ(0, ptrVal & (align - 1)); in checkAligned()
76 constexpr int align = 64; in TEST() local
79 AlignedBuf<uint32_t, align> buf(size); in TEST()
80 AlignedBuf<uint32_t, align> buf2 = buf; in TEST()
100 constexpr int align = 64; in TEST() local
103 AlignedBuf<uint32_t, align> buf(size); in TEST()
110 AlignedBuf<uint32_t, align> buf2 = std::move(buf); in TEST()
124 constexpr int align = 64; in TEST() local
127 AlignedBuf<uint32_t, align> buf(size); in TEST()
[all …]
DAlignedBuf.cpp20 void* aligned_buf_alloc(size_t align, size_t size) { in aligned_buf_alloc() argument
21 size_t actualAlign = std::max(align, sizeof(void*)); in aligned_buf_alloc()
/hardware/libhardware/tests/hardware/
Dstruct-last.cpp27 #define GET_PADDING(align, size) (((align) - ((size) % (align))) % (align)) argument
/hardware/qcom/display/msm8996/libgralloc1/
Dgr_utils.h49 inline Type1 ALIGN(Type1 x, Type2 align) { in ALIGN() argument
50 return (Type1)((x + (Type1)align - 1) & ~((Type1)align - 1)); in ALIGN()
/hardware/qcom/display/msm8998/libgralloc1/
Dgr_utils.h49 inline Type1 ALIGN(Type1 x, Type2 align) { in ALIGN() argument
50 return (Type1)((x + (Type1)align - 1) & ~((Type1)align - 1)); in ALIGN()
/hardware/interfaces/automotive/can/1.0/default/libnl++/include/libnl++/
Dbits.h34 constexpr size_t align(size_t len) { in align() function
43 return align(sizeof(H)) + len; in length()
51 return align(length<H>(len)); in space()
/hardware/qcom/display/msm8996/sdm/libs/hwc2/
Dhwc_buffer_allocator.h42 inline Type ALIGN(Type x, Type align) { in ALIGN() argument
43 return (x + align - 1) & ~(align - 1); in ALIGN()
/hardware/qcom/display/msm8998/sdm/libs/hwc2/
Dhwc_buffer_allocator.h42 inline Type ALIGN(Type x, Type align) { in ALIGN() argument
43 return (x + align - 1) & ~(align - 1); in ALIGN()
/hardware/interfaces/automotive/can/1.0/default/libnl++/
DMessageFactory.cpp25 return reinterpret_cast<nlattr*>(uintptr_t(msg) + impl::align(msg->nlmsg_len)); in tail()
31 const auto newLen = impl::align(msg->nlmsg_len) + impl::align(totalAttrLen); in add()
/hardware/qcom/display/msm8909w_3100/sdm/libs/hwc2/
Dhwc_buffer_allocator.h42 inline Type ALIGN(Type x, Type align) { in ALIGN() argument
43 return (x + align - 1) & ~(align - 1); in ALIGN()
/hardware/qcom/display/msm8909/sdm/libs/hwc2/
Dhwc_buffer_allocator.h42 inline Type ALIGN(Type x, Type align) { in ALIGN() argument
43 return (x + align - 1) & ~(align - 1); in ALIGN()
/hardware/qcom/display/msm8960/libgralloc/
Dgr.h41 inline size_t ALIGN(size_t x, size_t align) { in ALIGN() argument
42 return (x + align-1) & ~(align-1); in ALIGN()
/hardware/google/graphics/common/libhwc2.1/libdisplayinterface/
DExynosDeviceInterface.cpp37 …%d, %d)", res.restriction.src_f_w.min, res.restriction.src_f_w.max, res.restriction.src_f_w.align); in printDppRestriction()
38 …%d, %d)", res.restriction.src_f_h.min, res.restriction.src_f_h.max, res.restriction.src_f_h.align); in printDppRestriction()
39 … (%d, %d, %d)", res.restriction.src_w.min, res.restriction.src_w.max, res.restriction.src_w.align); in printDppRestriction()
40 … (%d, %d, %d)", res.restriction.src_h.min, res.restriction.src_h.max, res.restriction.src_h.align); in printDppRestriction()
43 …%d, %d)", res.restriction.dst_f_w.min, res.restriction.dst_f_w.max, res.restriction.dst_f_w.align); in printDppRestriction()
44 …%d, %d)", res.restriction.dst_f_h.min, res.restriction.dst_f_h.max, res.restriction.dst_f_h.align); in printDppRestriction()
45 … (%d, %d, %d)", res.restriction.dst_w.min, res.restriction.dst_w.max, res.restriction.dst_w.align); in printDppRestriction()
46 … (%d, %d, %d)", res.restriction.dst_h.min, res.restriction.dst_h.max, res.restriction.dst_h.align); in printDppRestriction()
50 … (%d, %d, %d)", res.restriction.blk_w.min, res.restriction.blk_w.max, res.restriction.blk_w.align); in printDppRestriction()
51 … (%d, %d, %d)", res.restriction.blk_h.min, res.restriction.blk_h.max, res.restriction.blk_h.align); in printDppRestriction()
/hardware/qcom/display/msm8996/sdm/libs/hwc/
Dhwc_buffer_allocator.cpp70 data.align = SECURE_ALIGN; in AllocateBuffer()
72 data.align = UINT32(getpagesize()); in AllocateBuffer()
90 buffer_size = ROUND_UP(buffer_size, data.align) * buffer_config.buffer_count; in AllocateBuffer()
154 uint32_t align = UINT32(getpagesize()); in GetBufferSize() local
167 align = SECURE_ALIGN; in GetBufferSize()
184 buffer_size = ROUND_UP(buffer_size, align) * buffer_config.buffer_count; in GetBufferSize()
/hardware/qcom/sm7250/display/composer/
Dhwc_buffer_allocator.h48 inline Type ALIGN(Type x, Type align) { in ALIGN() argument
49 return (x + align - 1) & ~(align - 1); in ALIGN()
/hardware/qcom/sm8150/display/sdm/libs/hwc2/
Dhwc_buffer_allocator.h48 inline Type ALIGN(Type x, Type align) { in ALIGN() argument
49 return (x + align - 1) & ~(align - 1); in ALIGN()
/hardware/qcom/display/msm8909/sdm/libs/hwc/
Dhwc_buffer_allocator.cpp70 data.align = SZ_2M; in AllocateBuffer()
74 data.align = SECURE_ALIGN; in AllocateBuffer()
76 data.align = UINT32(getpagesize()); in AllocateBuffer()
94 buffer_size = ROUND_UP(buffer_size, data.align) * buffer_config.buffer_count; in AllocateBuffer()
162 uint32_t align = UINT32(getpagesize()); in GetBufferSize() local
175 align = SZ_2M; in GetBufferSize()
179 align = SECURE_ALIGN; in GetBufferSize()
196 buffer_size = ROUND_UP(buffer_size, align) * buffer_config.buffer_count; in GetBufferSize()
/hardware/qcom/display/msm8909w_3100/sdm/libs/hwc/
Dhwc_buffer_allocator.cpp70 data.align = SZ_2M; in AllocateBuffer()
74 data.align = SECURE_ALIGN; in AllocateBuffer()
76 data.align = UINT32(getpagesize()); in AllocateBuffer()
94 buffer_size = ROUND_UP(buffer_size, data.align) * buffer_config.buffer_count; in AllocateBuffer()
162 uint32_t align = UINT32(getpagesize()); in GetBufferSize() local
175 align = SZ_2M; in GetBufferSize()
179 align = SECURE_ALIGN; in GetBufferSize()
196 buffer_size = ROUND_UP(buffer_size, align) * buffer_config.buffer_count; in GetBufferSize()
/hardware/qcom/display/msm8226/libgralloc/
Dgr.h41 inline Type ALIGN(Type x, Type align) { in ALIGN() argument
42 return (x + align-1) & ~(align-1); in ALIGN()
/hardware/qcom/display/msm8084/libgralloc/
Dgr.h41 inline Type ALIGN(Type x, Type align) { in ALIGN() argument
42 return (x + align-1) & ~(align-1); in ALIGN()
/hardware/qcom/display/msm8909w_3100/libgralloc1/
Dgr_utils.h59 inline Type1 ALIGN(Type1 x, Type2 align) { in ALIGN() argument
60 return (Type1)((x + (Type1)align - 1) & ~((Type1)align - 1)); in ALIGN()
/hardware/qcom/display/msm8994/liboverlay/
DoverlayMem.h132 mBufSzAligned = utils::align(bufSz, SIZE_1M); in open()
133 data.align = SIZE_1M; in open()
136 data.align = getpagesize(); in open()
/hardware/google/graphics/common/libhwjpeg/
DAppMarkerWriter.h79 char *WriteAPP11(char *current, size_t dummy, size_t align);
121 void Write(bool reserve_thumbnail_space, size_t dummy, size_t align,
125 char *app11end = WriteAPP11(appXend, dummy, align);
/hardware/qcom/display/msm8226/liboverlay/
DoverlayMem.h132 mBufSzAligned = utils::align(bufSz, SIZE_1M); in open()
133 data.align = SIZE_1M; in open()
136 data.align = getpagesize(); in open()

1234567