EDK2 doxygen online documents - Firmware Encoding Index 1
EDK2 doxygen online documents - Firmware Encoding Index

EdkCompatibilityPkg/Foundation/Library/EdkIIGlueLib/Library/BaseLib/LRotU32.c

Go to the documentation of this file.
00001 /*++
00002 
00003 Copyright (c) 2004 - 2006, Intel Corporation. All rights reserved.<BR>
00004 This program and the accompanying materials                          
00005 are licensed and made available under the terms and conditions of the BSD License         
00006 which accompanies this distribution.  The full text of the license may be found at        
00007 http://opensource.org/licenses/bsd-license.php                                            
00008                                                                                           
00009 THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS,                     
00010 WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.  
00011 
00012 
00013 Module Name:
00014 
00015   LRotU32.c
00016   
00017 Abstract: 
00018 
00019   Math worker functions.
00020 
00021 --*/
00022 
00023 #include "BaseLibInternals.h"
00024 
00041 UINT32
00042 EFIAPI
00043 LRotU32 (
00044   IN      UINT32                    Operand,
00045   IN      UINTN                     Count
00046   )
00047 {
00048   ASSERT (Count < sizeof (Operand) * 8);
00049   return (Operand << Count) | (Operand >> (32 - Count));
00050 }
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Defines