]> git.proxmox.com Git - mirror_edk2.git/blobdiff - StdLib/LibC/Main/ByteSwap.c
edk2: Remove AppPkg, StdLib, StdLibPrivateInternalFiles
[mirror_edk2.git] / StdLib / LibC / Main / ByteSwap.c
diff --git a/StdLib/LibC/Main/ByteSwap.c b/StdLib/LibC/Main/ByteSwap.c
deleted file mode 100644 (file)
index f405bd9..0000000
+++ /dev/null
@@ -1,72 +0,0 @@
-/** @file\r
-  Byte Swap routines for endian-nes conversions.\r
-\r
-  Copyright (c) 2010, Intel Corporation. All rights reserved.<BR>\r
-  This program and the accompanying materials are licensed and made available under\r
-  the terms and conditions of the BSD License that accompanies this distribution.\r
-  The full text of the license may be found at\r
-  http://opensource.org/licenses/bsd-license.php.\r
-\r
-  THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS,\r
-  WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.\r
-**/\r
-#include  <Library/BaseLib.h>\r
-#include  <LibConfig.h>\r
-\r
-#include <sys/bswap.h>\r
-\r
-// Undefine macro versions of the functions to be defined below.\r
-#undef  bswap16\r
-#undef  bswap32\r
-#undef  bswap64\r
-\r
-/**\r
-Switches the endianness of a 16-bit integer.\r
-\r
-This function swaps the bytes in a 16-bit unsigned value to switch the value\r
-from little endian to big endian or vice versa. The byte swapped value is\r
-returned.\r
-\r
-@param  Value     A 16-bit unsigned value.\r
-\r
-@return The byte swapped Value.\r
-\r
-**/\r
-uint16_t bswap16(uint16_t Value)\r
-{\r
-  return SwapBytes16(Value);\r
-}\r
-\r
-/**\r
-Switches the endianness of a 32-bit integer.\r
-\r
-This function swaps the bytes in a 32-bit unsigned value to switch the value\r
-from little endian to big endian or vice versa. The byte swapped value is\r
-returned.\r
-\r
-@param  Value A 32-bit unsigned value.\r
-\r
-@return The byte swapped Value.\r
-\r
-**/\r
-uint32_t bswap32(uint32_t Value)\r
-{\r
-  return SwapBytes32(Value);\r
-}\r
-\r
-/**\r
-Switches the endianness of a 64-bit integer.\r
-\r
-This function swaps the bytes in a 64-bit unsigned value to switch the value\r
-from little endian to big endian or vice versa. The byte swapped value is\r
-returned.\r
-\r
-@param  Value A 64-bit unsigned value.\r
-\r
-@return The byte swapped Value.\r
-\r
-**/\r
-uint64_t bswap64(uint64_t Value)\r
-{\r
-  return SwapBytes64(Value);\r
-}\r