]>
git.proxmox.com Git - mirror_edk2.git/blob - MdePkg/Library/BaseLib/Ia32/SwapBytes64.c
2 Implementation of 64-bit swap bytes
4 Copyright (c) 2006 - 2008, Intel Corporation. All rights reserved.<BR>
5 SPDX-License-Identifier: BSD-2-Clause-Patent
10 Switches the endianess of a 64-bit integer.
12 This function swaps the bytes in a 64-bit unsigned value to switch the value
13 from little endian to big endian or vice versa. The byte swapped value is
16 @param Operand A 64-bit unsigned value.
18 @return The byte swaped Operand.
23 InternalMathSwapBytes64 (
28 mov eax
, dword ptr
[Operand
+ 4]
29 mov edx
, dword ptr
[Operand
+ 0]