X-Git-Url: https://git.proxmox.com/?a=blobdiff_plain;f=MdePkg%2FLibrary%2FBaseLib%2FIa32%2FRShiftU64.c;h=8b494856356a5633a742389fd130980d3169f0ae;hb=88a75d260cadc67cc0edf6ad5f57241ed89a7d4b;hp=9f1b6cd25a9d0afa550bc496ea88f28ed8233c8d;hpb=373ade0eb64a522e45b1b94c15b95fb5ab417c00;p=mirror_edk2.git diff --git a/MdePkg/Library/BaseLib/Ia32/RShiftU64.c b/MdePkg/Library/BaseLib/Ia32/RShiftU64.c index 9f1b6cd25a..8b49485635 100644 --- a/MdePkg/Library/BaseLib/Ia32/RShiftU64.c +++ b/MdePkg/Library/BaseLib/Ia32/RShiftU64.c @@ -1,11 +1,11 @@ /** @file 64-bit logical right shift function for IA-32 - Copyright (c) 2006 - 2008, 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. @@ -40,8 +40,10 @@ InternalMathRShiftU64 ( xor edx, edx mov eax, dword ptr [Operand + 4] test cl, 32 - cmovz edx, eax - cmovz eax, dword ptr [Operand + 0] + jnz L0 + mov edx, eax + mov eax, dword ptr [Operand + 0] +L0: shrd eax, edx, cl shr edx, cl }