On 06/11/2026 05:11, Collin Funk wrote:
I attached a proposed patch. Here is what the earlier function would look like using one of the newly added macros:ATTRIBUTE_ACCESS_NONE ((1)) static inline void * ptr_align (void const *ptr, size_t alignment) { char const *p0 = ptr; char const *p1 = p0 + alignment - 1; return (void *) (p1 - (size_t) p1 % alignment); } Thoughts?
It seems like a good idea. Potentially that might allow the compiler to more efficiently handle certain wrappers. thanks, Padraig
