/hardware/google/aemu/base/include/aemu/base/ |
D | AlignedBuf.h | 33 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/ |
D | AlignedBuf_unittest.cpp | 28 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 …]
|
D | AlignedBuf.cpp | 20 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/ |
D | struct-last.cpp | 27 #define GET_PADDING(align, size) (((align) - ((size) % (align))) % (align)) argument
|
/hardware/qcom/display/msm8996/libgralloc1/ |
D | gr_utils.h | 49 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/ |
D | gr_utils.h | 49 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++/ |
D | bits.h | 34 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/ |
D | hwc_buffer_allocator.h | 42 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/ |
D | hwc_buffer_allocator.h | 42 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++/ |
D | MessageFactory.cpp | 25 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/ |
D | hwc_buffer_allocator.h | 42 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/ |
D | hwc_buffer_allocator.h | 42 inline Type ALIGN(Type x, Type align) { in ALIGN() argument 43 return (x + align - 1) & ~(align - 1); in ALIGN()
|
/hardware/qcom/display/msm8960/libgralloc/ |
D | gr.h | 41 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/ |
D | ExynosDeviceInterface.cpp | 37 …%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/ |
D | hwc_buffer_allocator.cpp | 70 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/ |
D | hwc_buffer_allocator.h | 48 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/ |
D | hwc_buffer_allocator.h | 48 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/ |
D | hwc_buffer_allocator.cpp | 70 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/ |
D | hwc_buffer_allocator.cpp | 70 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/ |
D | gr.h | 41 inline Type ALIGN(Type x, Type align) { in ALIGN() argument 42 return (x + align-1) & ~(align-1); in ALIGN()
|
/hardware/qcom/display/msm8084/libgralloc/ |
D | gr.h | 41 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/ |
D | gr_utils.h | 59 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/ |
D | overlayMem.h | 132 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/ |
D | AppMarkerWriter.h | 79 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/ |
D | overlayMem.h | 132 mBufSzAligned = utils::align(bufSz, SIZE_1M); in open() 133 data.align = SIZE_1M; in open() 136 data.align = getpagesize(); in open()
|