Move a pointer forward until it meets the alignment width.
| 56 | // Move a pointer forward until it meets the alignment width. |
| 57 | // |
| 58 | static inline void * |
| 59 | align_pointer_forward(const void *pointer_, size_t alignment) |
| 60 | { |
| 61 | char *pointer = (char *)pointer_; |
| 62 | // |
| 63 | // Round up alignment.. |
| 64 | // |
| 65 | pointer = (char *)INK_ALIGN((ptrdiff_t)pointer, alignment); |
| 66 | |
| 67 | return (void *)pointer; |
| 68 | } |
| 69 | |
| 70 | // |
| 71 | // Move a pointer forward until it meets the alignment width specified, |
no outgoing calls
no test coverage detected