[an error occurred while processing this directive]
|
/* Population (number of 1-s) calculation */
static CORE_FUNC_INLINE_MODIFIER u08_t _population_08( u08_t _inp )
{ _inp = ( _inp & (u08_t)0x55 ) + (( _inp >> 1 ) & (u08_t)0x55 );
_inp = ( _inp & (u08_t)0x33 ) + (( _inp >> 2 ) & (u08_t)0x33 );
_inp = ( _inp & (u08_t)0x0F ) + (( _inp >> 4 ) & (u08_t)0x0F );
return (u08_t)( _inp & (u08_t)0xff );
}
E-mail: info@telesys.ru