X-Git-Url: https://git.proxmox.com/?a=blobdiff_plain;f=MdePkg%2FLibrary%2FBaseLib%2FIa32%2FLShiftU64.c;h=9fb2532acf784cce56f1ec8f177a3c134a428e79;hb=88a75d260cadc67cc0edf6ad5f57241ed89a7d4b;hp=f684e1f29a03f2955456a00ffd59c45513a9aec1;hpb=42eedea958591087603bbacd1c2227d2494026af;p=mirror_edk2.git diff --git a/MdePkg/Library/BaseLib/Ia32/LShiftU64.c b/MdePkg/Library/BaseLib/Ia32/LShiftU64.c index f684e1f29a..9fb2532acf 100644 --- a/MdePkg/Library/BaseLib/Ia32/LShiftU64.c +++ b/MdePkg/Library/BaseLib/Ia32/LShiftU64.c @@ -1,20 +1,18 @@ /** @file 64-bit left shift function for IA-32. - Copyright (c) 2006 - 2007, Intel Corporation
- All rights reserved. This program and the accompanying materials + Copyright (c) 2006 - 2015, 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 common header file for this module. -// + /** @@ -42,8 +40,10 @@ InternalMathLShiftU64 ( xor eax, eax mov edx, dword ptr [Operand + 0] test cl, 32 // Count >= 32? - cmovz eax, edx - cmovz edx, dword ptr [Operand + 4] + jnz L0 + mov eax, edx + mov edx, dword ptr [Operand + 4] +L0: shld edx, eax, cl shl eax, cl }