]> git.proxmox.com Git - mirror_edk2.git/blobdiff - MdePkg/Library/BaseLib/LowBitSet32.c
Fix minor issues in GCC assembly. The operand is 64bit and "q" prefix should be applied.
[mirror_edk2.git] / MdePkg / Library / BaseLib / LowBitSet32.c
index a598a1f71f41570ebe4824b5c58f9cce4b0a24a1..ed1ead6cc0ebfd5e0088231b28595c4a55df8ec6 100644 (file)
@@ -12,9 +12,7 @@
 \r
 **/\r
 \r
-//\r
-// Include common header file for this module.\r
-//\r
+\r
 \r
 \r
 #include "BaseLibInternals.h"\r
@@ -44,6 +42,6 @@ LowBitSet32 (
     return -1;\r
   }\r
 \r
-  for (BitIndex = 0; (Operand & 1) == 0; BitIndex++, Operand >>= 1);\r
+  for (BitIndex = 0; 0 == (Operand & 1); BitIndex++, Operand >>= 1);\r
   return BitIndex;\r
 }\r