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), [email protected]
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-06-18 12:00:08 -04:00
2024-07-15 16:43:39 -06:00
2024-07-15 16:43:39 -06:00
2024-07-15 16:43:39 -06:00
2025-08-15 17:59:18 +01:00
2024-07-15 16:43:39 -06:00
2025-06-11 21:19:05 -06:00
2024-07-15 16:43:39 -06:00
2023-11-26 22:23:28 -07:00
2023-11-26 22:23:28 -07:00
2023-11-26 22:23:28 -07:00
2025-01-12 18:41:37 -06:00
2023-08-16 11:54:16 -06:00
2023-08-16 11:54:16 -06:00
2023-08-16 11:54:16 -06:00
2023-11-26 22:23:28 -07:00
2023-11-26 22:23:28 -07:00
2025-09-11 17:12:22 +02:00
2025-06-11 17:39:01 +01:00
2023-08-16 11:54:16 -06:00
2023-08-16 11:54:16 -06:00
2024-12-30 13:38:39 -07:00
2023-11-26 22:23:28 -07:00
2025-05-31 22:52:42 +03:00
2023-08-16 11:54:16 -06:00
2023-11-26 22:23:28 -07:00
2023-11-26 22:23:28 -07:00
2025-05-08 16:29:15 +02:00
2023-08-16 11:54:16 -06:00
2023-08-16 11:54:29 -06:00
2025-06-03 22:59:28 +02:00
2023-11-26 22:23:28 -07:00
2023-08-16 11:54:29 -06:00
2023-08-16 11:54:29 -06:00
2023-11-26 22:23:59 -07:00
2023-08-16 11:54:29 -06:00
2023-08-16 11:54:29 -06:00
2023-08-16 11:54:16 -06:00
2023-08-16 11:54:16 -06:00
2023-08-16 11:54:16 -06:00
2023-08-16 11:54:16 -06:00
2023-08-16 11:54:29 -06:00
2025-06-11 17:16:20 -06:00
2023-08-16 11:54:16 -06:00
2023-11-26 22:23:28 -07:00
2025-09-30 09:14:58 +01:00
2024-10-14 10:26:17 -07:00
2023-09-12 13:22:21 +01:00
2023-08-16 11:54:16 -06:00
2023-08-16 11:54:23 -06:00
2023-11-26 22:23:28 -07:00
2023-08-16 11:55:03 -06:00
2023-08-16 11:54:16 -06:00
2023-11-26 22:23:28 -07:00
2023-11-26 22:23:59 -07:00
2023-11-26 22:23:28 -07:00
2023-08-16 11:54:29 -06:00
2023-11-26 22:23:28 -07:00
2024-01-24 22:50:49 -05:00
2023-11-26 22:23:28 -07:00
2023-08-16 11:54:16 -06:00
2023-08-16 11:54:29 -06:00
2024-08-26 18:27:29 +02:00
2025-05-05 19:04:22 +03:00
2023-08-16 11:54:16 -06:00
2023-08-16 11:54:16 -06:00
2025-05-19 09:07:43 +03:00
2024-04-23 19:51:22 +03:00
2023-11-26 22:23:28 -07:00
2023-11-26 22:23:28 -07:00
2023-08-16 11:54:29 -06:00
2023-11-26 22:23:28 -07:00
2023-08-16 11:54:23 -06:00
2025-10-04 10:50:02 +02:00
2023-11-26 22:23:28 -07:00
2023-11-26 22:23:59 -07:00
2023-08-16 11:54:23 -06:00
2023-08-16 11:54:16 -06:00
2023-11-26 22:23:28 -07:00
2025-06-11 17:16:22 -06:00
2024-03-04 03:00:38 +02:00
2023-11-26 22:23:28 -07:00
2023-08-16 11:54:16 -06:00
2023-08-16 11:54:16 -06:00
2025-10-18 00:48:30 +03:00
2025-06-11 17:39:02 +01:00
2025-06-11 17:39:02 +01:00
2025-11-12 13:23:09 +01:00
2023-08-16 11:54:16 -06:00
2025-03-20 03:41:27 -04:00
2023-11-26 22:23:59 -07:00
2024-07-13 00:16:24 -05:00
2024-05-09 20:50:48 -06:00
2023-11-26 22:23:28 -07:00
2023-11-26 22:23:28 -07:00
2023-08-16 11:54:16 -06:00
2025-09-23 21:38:49 +02:00
2023-11-26 22:23:28 -07:00
2023-08-16 11:54:16 -06:00
2023-11-26 22:23:28 -07:00
2023-08-16 11:54:16 -06:00
2023-08-16 11:54:16 -06:00
2025-06-11 17:16:20 -06:00
2023-11-26 22:23:28 -07:00
2023-08-16 11:54:16 -06:00
2023-08-16 11:54:16 -06:00
2023-08-16 11:54:16 -06:00
2025-06-11 17:39:02 +01:00
2023-08-16 11:54:23 -06:00
2023-08-16 11:54:16 -06:00
2024-07-30 12:16:36 -04:00