X-Git-Url: https://git.proxmox.com/?a=blobdiff_plain;f=MdePkg%2FLibrary%2FBaseLib%2FLRotU32.c;h=e8f25ffe552e7d536b4b4e9d7022bbf4e28abe8d;hb=132f41f0a92082775d931067089a63ca50367225;hp=2998c83dc687a6e12adb4565344f4a39c2569ac2;hpb=f734a10ab104f1072f94cab66a5489e0fd8fce8a;p=mirror_edk2.git diff --git a/MdePkg/Library/BaseLib/LRotU32.c b/MdePkg/Library/BaseLib/LRotU32.c index 2998c83dc6..e8f25ffe55 100644 --- a/MdePkg/Library/BaseLib/LRotU32.c +++ b/MdePkg/Library/BaseLib/LRotU32.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,11 +12,6 @@ **/ -// -// Include common header file for this module. -// - - #include "BaseLibInternals.h" /** @@ -32,7 +27,7 @@ @param Operand The 32-bit operand to rotate left. @param Count The number of bits to rotate left. - @return Operand <<< Count + @return Operand << Count **/ UINT32 @@ -42,6 +37,6 @@ LRotU32 ( IN UINTN Count ) { - ASSERT (Count < sizeof (Operand) * 8); + ASSERT (Count < 32); return (Operand << Count) | (Operand >> (32 - Count)); }