]>
Commit | Line | Data |
---|---|---|
1 | /** @file\r | |
2 | Math worker functions.\r | |
3 | \r | |
4 | Copyright (c) 2006 - 2008, Intel Corporation. All rights reserved.<BR>\r | |
5 | SPDX-License-Identifier: BSD-2-Clause-Patent\r | |
6 | \r | |
7 | **/\r | |
8 | \r | |
9 | \r | |
10 | \r | |
11 | \r | |
12 | #include "BaseLibInternals.h"\r | |
13 | \r | |
14 | /**\r | |
15 | Switches the endianess of a 64-bit integer.\r | |
16 | \r | |
17 | This function swaps the bytes in a 64-bit unsigned value to switch the value\r | |
18 | from little endian to big endian or vice versa. The byte swapped value is\r | |
19 | returned.\r | |
20 | \r | |
21 | @param Value A 64-bit unsigned value.\r | |
22 | \r | |
23 | @return The byte swapped Value.\r | |
24 | \r | |
25 | **/\r | |
26 | UINT64\r | |
27 | EFIAPI\r | |
28 | SwapBytes64 (\r | |
29 | IN UINT64 Value\r | |
30 | )\r | |
31 | {\r | |
32 | return InternalMathSwapBytes64 (Value);\r | |
33 | }\r |