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