1
0
Fork 0
mirror of https://github.com/davatorium/rofi.git synced 2025-02-03 15:34:54 -05:00

Make bit functions static

This commit is contained in:
Dave Davenport 2016-06-25 17:40:24 +02:00
parent ce645d78b3
commit 40f95ae81f

View file

@ -50,14 +50,14 @@ struct range_pair
unsigned int stop;
};
inline unsigned int bitget ( uint32_t *array, unsigned int index )
static inline unsigned int bitget ( uint32_t *array, unsigned int index )
{
uint32_t bit = index % 32;
uint32_t val = array[index / 32];
return ( val >> bit ) & 1;
}
inline void bittoggle ( uint32_t *array, unsigned int index )
static inline void bittoggle ( uint32_t *array, unsigned int index )
{
uint32_t bit = index % 32;
uint32_t *v = &array[index / 32];