Replaced getInt16, getUInt16 and putInt16
svn-id: r39189
This commit is contained in:
parent
f05e49433c
commit
1e29983d8e
17 changed files with 130 additions and 138 deletions
|
@ -27,15 +27,15 @@
|
|||
|
||||
namespace Sci {
|
||||
|
||||
int sci_ffs(int _mask) {
|
||||
int retval = 0;
|
||||
|
||||
if (!_mask)
|
||||
int sci_ffs(int bits) {
|
||||
if (!bits)
|
||||
return 0;
|
||||
retval++;
|
||||
while (!(_mask & 1)) {
|
||||
|
||||
int retval = 1;
|
||||
|
||||
while (!(bits & 1)) {
|
||||
retval++;
|
||||
_mask >>= 1;
|
||||
bits >>= 1;
|
||||
}
|
||||
|
||||
return retval;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue