src/core/bitmath_func.hpp
changeset 8496 8a4bdf20acb7
parent 8467 2f293250afac
child 8551 a7c546f4cf86
equal deleted inserted replaced
8495:51009cfec3de 8496:8a4bdf20acb7
   209 		return FIND_FIRST_BIT(value & 0x3F);
   209 		return FIND_FIRST_BIT(value & 0x3F);
   210 	}
   210 	}
   211 }
   211 }
   212 
   212 
   213 uint8 FindFirstBit(uint32 x);
   213 uint8 FindFirstBit(uint32 x);
       
   214 uint8 FindLastBit(uint32 x);
   214 
   215 
   215 /**
   216 /**
   216  * Clear the first bit in an integer.
   217  * Clear the first bit in an integer.
   217  *
   218  *
   218  * This function returns a value where the first bit (from LSB)
   219  * This function returns a value where the first bit (from LSB)