X-Git-Url: https://git.proxmox.com/?a=blobdiff_plain;f=MdePkg%2FLibrary%2FBaseLib%2FSwapBytes32.c;h=f6c7f892bb834d0ef8098415e1c7db245523d544;hb=bbc3c2d52617d8425e5a72f74c2e20b8686a0627;hp=ee8a60bb4cdcd1bccb3594810ef1200cb966010e;hpb=f734a10ab104f1072f94cab66a5489e0fd8fce8a;p=mirror_edk2.git diff --git a/MdePkg/Library/BaseLib/SwapBytes32.c b/MdePkg/Library/BaseLib/SwapBytes32.c index ee8a60bb4c..f6c7f892bb 100644 --- a/MdePkg/Library/BaseLib/SwapBytes32.c +++ b/MdePkg/Library/BaseLib/SwapBytes32.c @@ -1,7 +1,7 @@ /** @file Math worker functions. - Copyright (c) 2006, Intel Corporation
+ Copyright (c) 2006 - 2008, Intel Corporation
All rights reserved. This program and the accompanying materials are licensed and made available under the terms and conditions of the BSD License which accompanies this distribution. The full text of the license may be found at @@ -12,9 +12,7 @@ **/ -// -// Include common header file for this module. -// + #include "BaseLibInternals.h" @@ -26,22 +24,22 @@ from little endian to big endian or vice versa. The byte swapped value is returned. - @param Operand A 32-bit unsigned value. + @param Value A 32-bit unsigned value. - @return The byte swaped Operand. + @return The byte swapped Value. **/ UINT32 EFIAPI SwapBytes32 ( - IN UINT32 Operand + IN UINT32 Value ) { UINT32 LowerBytes; UINT32 HigherBytes; - LowerBytes = (UINT32) SwapBytes16 ((UINT16) Operand); - HigherBytes = (UINT32) SwapBytes16 ((UINT16) (Operand >> 16)); + LowerBytes = (UINT32) SwapBytes16 ((UINT16) Value); + HigherBytes = (UINT32) SwapBytes16 ((UINT16) (Value >> 16)); return (LowerBytes << 16 | HigherBytes); }