Translate from GNU C to ISO C.
This commit is contained in:
parent
f4c2663897
commit
29554ea51a
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=124514
@ -50,6 +50,6 @@ ffs(int mask)
|
||||
if (mask == 0)
|
||||
return(0);
|
||||
for (bit = 1; !(mask & 1); bit++)
|
||||
(unsigned int)mask >>= 1;
|
||||
mask = (unsigned int)mask >> 1;
|
||||
return (bit);
|
||||
}
|
||||
|
@ -47,6 +47,6 @@ ffsl(long mask)
|
||||
if (mask == 0)
|
||||
return(0);
|
||||
for (bit = 1; !(mask & 1); bit++)
|
||||
(unsigned long)mask >>= 1;
|
||||
mask = (unsigned long)mask >> 1;
|
||||
return (bit);
|
||||
}
|
||||
|
@ -47,6 +47,6 @@ fls(int mask)
|
||||
if (mask == 0)
|
||||
return (0);
|
||||
for (bit = 1; mask != 1; bit++)
|
||||
(unsigned int)mask >>= 1;
|
||||
mask = (unsigned int)mask >> 1;
|
||||
return (bit);
|
||||
}
|
||||
|
@ -47,6 +47,6 @@ flsl(long mask)
|
||||
if (mask == 0)
|
||||
return (0);
|
||||
for (bit = 1; mask != 1; bit++)
|
||||
(unsigned long)mask >>= 1;
|
||||
mask = (unsigned long)mask >> 1;
|
||||
return (bit);
|
||||
}
|
||||
|
@ -47,6 +47,6 @@ ffs(int mask)
|
||||
if (mask == 0)
|
||||
return (0);
|
||||
for (bit = 1; !(mask & 1); bit++)
|
||||
(unsigned int)mask >>= 1;
|
||||
mask = (unsigned int)mask >> 1;
|
||||
return (bit);
|
||||
}
|
||||
|
@ -47,6 +47,6 @@ ffsl(long mask)
|
||||
if (mask == 0)
|
||||
return (0);
|
||||
for (bit = 1; !(mask & 1); bit++)
|
||||
(unsigned long)mask >>= 1;
|
||||
mask = (unsigned long)mask >> 1;
|
||||
return (bit);
|
||||
}
|
||||
|
@ -47,6 +47,6 @@ fls(int mask)
|
||||
if (mask == 0)
|
||||
return (0);
|
||||
for (bit = 1; mask != 1; bit++)
|
||||
(unsigned int)mask >>= 1;
|
||||
mask = (unsigned int)mask >> 1;
|
||||
return (bit);
|
||||
}
|
||||
|
@ -47,6 +47,6 @@ flsl(long mask)
|
||||
if (mask == 0)
|
||||
return (0);
|
||||
for (bit = 1; mask != 1; bit++)
|
||||
(unsigned long)mask >>= 1;
|
||||
mask = (unsigned long)mask >> 1;
|
||||
return (bit);
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user