]> git.ipfire.org Git - thirdparty/kernel/linux.git/commit
tools/nolibc: add byteorder conversions
authorThomas Weißschuh <linux@weissschuh.net>
Sun, 5 Apr 2026 15:31:05 +0000 (17:31 +0200)
committerThomas Weißschuh <linux@weissschuh.net>
Tue, 7 Apr 2026 07:27:25 +0000 (09:27 +0200)
commitce834c9cb984a9b85160a2c3a3821e179fa502fa
tree1c839e7addbfe75d9334b24ca599902584fa4013
parent2eb64b936d3b6332ae44bbf91277f912be5597e2
tools/nolibc: add byteorder conversions

Add some standard functions to convert between different byte orders.
Conveniently the UAPI headers provide all the necessary functionality.

Signed-off-by: Thomas Weißschuh <linux@weissschuh.net>
Acked-by: Willy Tarreau <w@1wt.eu>
Link: https://patch.msgid.link/20260405-nolibc-bswap-v1-1-f7699ca9cee0@weissschuh.net
tools/include/nolibc/Makefile
tools/include/nolibc/byteswap.h [new file with mode: 0644]
tools/include/nolibc/endian.h [new file with mode: 0644]
tools/include/nolibc/nolibc.h
tools/testing/selftests/nolibc/nolibc-test.c