File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -251,22 +251,22 @@ static inline bool char_is_alpha(int c)
251251 return (unsigned int )(('a' - 1 - (c | 32 )) & ((c | 32 ) - ('z' + 1 ))) >> (sizeof (c ) * 8 - 1 );
252252}
253253
254- inline uint8_t u8_bit_reverse (uint8_t b )
254+ static inline uint8_t u8_bit_reverse (uint8_t b )
255255{
256256 b = (((b & 0xaa ) >> 1 ) | ((b & 0x55 ) << 1 ));
257257 b = (((b & 0xcc ) >> 2 ) | ((b & 0x33 ) << 2 ));
258258 return ((b >> 4 ) | (b << 4 ));
259259}
260260
261- inline uint16_t u16_bit_reverse (uint16_t x )
261+ static inline uint16_t u16_bit_reverse (uint16_t x )
262262{
263263 x = (((x & 0xaaaa ) >> 1 ) | ((x & 0x5555 ) << 1 ));
264264 x = (((x & 0xcccc ) >> 2 ) | ((x & 0x3333 ) << 2 ));
265265 x = (((x & 0xf0f0 ) >> 4 ) | ((x & 0x0f0f ) << 4 ));
266266 return ((x >> 8 ) | (x << 8 ));
267267}
268268
269- inline uint32_t u32_bit_reverse (uint32_t x )
269+ static inline uint32_t u32_bit_reverse (uint32_t x )
270270{
271271 x = (((x & 0xaaaaaaaa ) >> 1 ) | ((x & 0x55555555 ) << 1 ));
272272 x = (((x & 0xcccccccc ) >> 2 ) | ((x & 0x33333333 ) << 2 ));
You can’t perform that action at this time.
0 commit comments