implement ffsl and ffsll functions

per the resolution of Austin Group issue #617, these are accepted for
XSI option in POSIX future and thus I'm treating them as standard
functions.
This commit is contained in:
Rich Felker
2014-07-31 02:38:23 -04:00
parent 38db09374a
commit ecc082c61b
3 changed files with 16 additions and 0 deletions
+7
View File
@@ -0,0 +1,7 @@
#include <strings.h>
#include "atomic.h"
int ffsll(long long i)
{
return i ? a_ctz_64(i)+1 : 0;
}