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

UnixPkg/Library/UnixBaseLib/LowBitSet64.c

Go to the documentation of this file.
00001 
00018 #include "BaseLibInternals.h"
00019 
00034 INTN
00035 EFIAPI
00036 LowBitSet64 (
00037   IN      UINT64                    Operand
00038   )
00039 {
00040   INTN                              BitIndex;
00041 
00042   if (Operand == 0) {
00043     return -1;
00044   }
00045 
00046   for (BitIndex = 0;
00047        (Operand & 1) == 0;
00048        BitIndex++, Operand = RShiftU64 (Operand, 1));
00049   return BitIndex;
00050 }
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Defines