]> git.ipfire.org Git - thirdparty/systemd.git/commitdiff
boot: Add bswap_{16,32}
authoranonymix007 <48598263+anonymix007@users.noreply.github.com>
Thu, 10 Oct 2024 15:23:42 +0000 (18:23 +0300)
committeranonymix007 <48598263+anonymix007@users.noreply.github.com>
Fri, 11 Oct 2024 11:37:30 +0000 (14:37 +0300)
src/boot/efi/util.h

index e17402540c64e168ec1e061ec6fd6ef4942a5c68..e5f88ec5f0a9481d49d77dea1ad36d40e21509a9 100644 (file)
@@ -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)