src/macros.h
changeset 7829 062bc42baf63
parent 7828 ac69a695d506
child 7832 60035eb28f08
equal deleted inserted replaced
7828:ac69a695d506 7829:062bc42baf63
   419  * is cleared. This function checks only the bits of 0x3F3F!
   419  * is cleared. This function checks only the bits of 0x3F3F!
   420  *
   420  *
   421  * @param value The value to clear the first bit
   421  * @param value The value to clear the first bit
   422  * @return The new value with the first bit cleared
   422  * @return The new value with the first bit cleared
   423  */
   423  */
   424 static inline int KillFirstBit2x64(int value)
   424 static inline uint KillFirstBit2x64(uint value)
   425 {
   425 {
   426 	return value &= (int)(value - 1) | 0x3FFFC0C0;
   426 	return value &= (uint)(value - 1) | 0x3FFFC0C0;
   427 }
   427 }
   428 
   428 
   429 /**
   429 /**
   430  * Counts the number of set bits in a variable.
   430  * Counts the number of set bits in a variable.
   431  *
   431  *