X-Git-Url: https://git.proxmox.com/?a=blobdiff_plain;f=MdePkg%2FLibrary%2FBaseLib%2FSwapBytes16.c;h=64a674a0cd9ccd24c67da5f05d49f0d194426d85;hb=127010dd965de70796f468fc0e2ab5510732048a;hp=c8460a28f7998a56f7664bd8b0977d66e1c660b2;hpb=878ddf1fc3540a715f63594ed22b6929e881afb4;p=mirror_edk2.git diff --git a/MdePkg/Library/BaseLib/SwapBytes16.c b/MdePkg/Library/BaseLib/SwapBytes16.c index c8460a28f7..64a674a0cd 100644 --- a/MdePkg/Library/BaseLib/SwapBytes16.c +++ b/MdePkg/Library/BaseLib/SwapBytes16.c @@ -1,17 +1,20 @@ /** @file Math worker functions. - Copyright (c) 2006, Intel Corporation
- All rights reserved. This program and the accompanying materials + 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 - http://opensource.org/licenses/bsd-license.php + http://opensource.org/licenses/bsd-license.php. THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS, WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED. **/ + + + #include "BaseLibInternals.h" /** @@ -21,16 +24,16 @@ from little endian to big endian or vice versa. The byte swapped value is returned. - @param Operand A 16-bit unsigned value. + @param Value A 16-bit unsigned value. - @return The byte swaped Operand. + @return The byte swapped Value. **/ UINT16 EFIAPI SwapBytes16 ( - IN UINT16 Operand + IN UINT16 Value ) { - return (Operand << 8) | (Operand >> 8); + return (UINT16) ((Value<< 8) | (Value>> 8)); }