Files
src/lib
Robert Clausecker 6c57e368eb lib/libc: implement C23 memalignment()
This new function computes the alignment of a pointer.
It is part of ISO/IEC 9899:2024, the new C standard.
If the pointer is a null pointer, null is returned.
I have tried to write an implementation that can cope
with traditional address-based architectures, even if
size_t and uintptr_t are of different length.  Adjustments
may be needed for CHERI though.

A man page is provided, too.  No unit test for now.

Reviewed by:	kib, imp, ziaee (manpages), pauamma@gundo.com
Approved by:	markj (mentor)
MFC after:	1 month
Relnotes:	yes
Differential Revision:	https://reviews.freebsd.org/D53673
2025-11-12 13:23:09 +01:00
..
2025-09-04 16:06:47 -07:00
2024-10-14 10:26:17 -07:00
2025-01-01 15:11:06 -06:00
2025-09-28 21:28:12 -07:00
2024-10-14 10:26:17 -07:00
2025-10-02 02:37:35 +01:00
2024-10-14 10:26:17 -07:00
2025-10-03 19:46:55 +02:00
2025-08-08 13:27:26 -05:00
2024-10-08 16:13:39 -03:00
2024-10-14 10:26:17 -07:00
2025-07-17 16:36:17 -07:00
2024-10-14 10:26:17 -07:00
2025-08-06 12:31:24 +01:00
2024-11-12 12:11:51 -05:00
2025-10-23 12:03:29 -07:00
2025-09-30 09:14:05 +01:00
2025-10-28 19:24:55 +00:00
2025-10-11 13:13:19 +03:00
2025-11-06 15:20:52 +00:00
2025-11-03 21:14:09 +01:00