Subversion Repositories HelenOS

Compare Revisions

Regard whitespace Rev 4717 → Rev 4718

/branches/network/uspace/lib/libc/include/bitops.h
42,9 → 42,9
*
* If number is zero, it returns 0
*/
static inline int fnzb32(uint32_t arg)
static inline unsigned int fnzb32(uint32_t arg)
{
int n = 0;
unsigned int n = 0;
 
if (arg >> 16) {
arg >>= 16;
74,9 → 74,9
return n;
}
 
static inline int fnzb64(uint64_t arg)
static inline unsigned int fnzb64(uint64_t arg)
{
int n = 0;
unsigned int n = 0;
 
if (arg >> 32) {
arg >>= 32;
83,10 → 83,13
n += 32;
}
return n + fnzb32((uint32_t) arg);
return (n + fnzb32((uint32_t) arg));
}
 
#define fnzb(x) fnzb32(x)
static inline unsigned int fnzb(size_t arg)
{
return fnzb64(arg);
}
 
#endif