From: anonymix007 <48598263+anonymix007@users.noreply.github.com> Date: Thu, 10 Oct 2024 15:23:42 +0000 (+0300) Subject: boot: Add bswap_{16,32} X-Git-Tag: v257-rc1~254^2~6 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=53443e81763bc495efb40e9a632645d8dfb5ac3d;p=thirdparty%2Fsystemd.git boot: Add bswap_{16,32} --- 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)