MySQL 8.4.3
Source Code Documentation
|
Some macros for dealing with pointer arithmetic, e.g., aligning of buffers to a given size. More...
#include <stdint.h>
Go to the source code of this file.
Macros | |
#define | MY_ALIGN(A, L) (((A) + (L)-1) & ~((L)-1)) |
#define | ALIGN_SIZE(A) MY_ALIGN((A), sizeof(double)) |
Functions | |
template<typename T > | |
bool | is_aligned_to (T *t, int increment) |
template<typename T > | |
bool | is_aligned (T *t) |
Some macros for dealing with pointer arithmetic, e.g., aligning of buffers to a given size.
#define ALIGN_SIZE | ( | A | ) | MY_ALIGN((A), sizeof(double)) |
bool is_aligned | ( | T * | t | ) |
bool is_aligned_to | ( | T * | t, |
int | increment | ||
) |