From 53443e81763bc495efb40e9a632645d8dfb5ac3d Mon Sep 17 00:00:00 2001 From: anonymix007 <48598263+anonymix007@users.noreply.github.com> Date: Thu, 10 Oct 2024 18:23:42 +0300 Subject: [PATCH] boot: Add bswap_{16,32} --- src/boot/efi/util.h | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/boot/efi/util.h b/src/boot/efi/util.h index e17402540c6..e5f88ec5f0a 100644 --- a/src/boot/efi/util.h +++ b/src/boot/efi/util.h @@ -194,3 +194,6 @@ char16_t *get_extra_dir(const EFI_DEVICE_PATH *file_path); #else # error "Unexpected byte order in EFI mode?" #endif + +#define bswap_16(x) __builtin_bswap16(x) +#define bswap_32(x) __builtin_bswap32(x) -- 2.47.3