]> git.proxmox.com Git - mirror_edk2.git/blobdiff - MdePkg/Library/BaseLib/GetPowerOfTwo32.c
Add AccessMsrDb.s for MSFT tool chain. It uses raw data to represent instructions...
[mirror_edk2.git] / MdePkg / Library / BaseLib / GetPowerOfTwo32.c
index 19b00dd760a055683aa6152c2bfce379f317e449..3472b7b06ef1e2d982e81a340d6340bdd4237b73 100644 (file)
 \r
 **/\r
 \r
-//\r
-// Include common header file for this module.\r
-//\r
+\r
 \r
 \r
 #include "BaseLibInternals.h"\r
 \r
 /**\r
   Returns the value of the highest bit set in a 32-bit value. Equivalent to\r
-  1 << HighBitSet32(x).\r
+  1 << log2(x).\r
 \r
   This function computes the value of the highest bit set in the 32-bit value\r
   specified by Operand. If Operand is zero, then zero is returned.\r
@@ -38,7 +36,7 @@ GetPowerOfTwo32 (
   IN      UINT32                    Operand\r
   )\r
 {\r
-  if (Operand == 0) {\r
+  if (0 == Operand) {\r
     return 0;\r
   }\r
 \r