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:
parent
ce645d78b3
commit
40f95ae81f
1 changed files with 2 additions and 2 deletions
|
@ -50,14 +50,14 @@ struct range_pair
|
||||||
unsigned int stop;
|
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 bit = index % 32;
|
||||||
uint32_t val = array[index / 32];
|
uint32_t val = array[index / 32];
|
||||||
return ( val >> bit ) & 1;
|
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 bit = index % 32;
|
||||||
uint32_t *v = &array[index / 32];
|
uint32_t *v = &array[index / 32];
|
||||||
|
|
Loading…
Add table
Reference in a new issue