diff options
author | Bernd Schmidt <bernds@codesourcery.com> | 2011-02-23 00:14:42 +0100 |
---|---|---|
committer | Bernd Schmidt <bernds@codesourcery.com> | 2011-03-05 19:48:10 +0100 |
commit | 2a19c1339d6bf46fe0f90fbd4e8dca6646d111ed (patch) | |
tree | a9e8cc3663e4904042c39b14eef15f30d652c923 /libc/inet/rpc | |
parent | 9b1507df250e90b74099e0d05170d7d95060b016 (diff) |
Implement ffsl and ffsll.
This imports and adapts ffsll.c from glibc. The same mechanism as in glibc
is used to choose between ffs and ffsll to implement ffsl. The single user
in libc is changed to use the hidden version __libc_ffs.
Signed-off-by: Bernd Schmidt <bernds@codesourcery.com>
Acked-by: Bernhard Reutner-Fischer <aldot@uclibc.org>
Diffstat (limited to 'libc/inet/rpc')
-rw-r--r-- | libc/inet/rpc/svc.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/libc/inet/rpc/svc.c b/libc/inet/rpc/svc.c index 0f5300c8b..03b406200 100644 --- a/libc/inet/rpc/svc.c +++ b/libc/inet/rpc/svc.c @@ -452,7 +452,7 @@ svc_getreqset (fd_set *readfds) setsize = _rpc_dtablesize (); maskp = (u_int32_t *) readfds->fds_bits; for (sock = 0; sock < setsize; sock += 32) - for (mask = *maskp++; (bit = ffs (mask)); mask ^= (1 << (bit - 1))) + for (mask = *maskp++; (bit = __libc_ffs (mask)); mask ^= (1 << (bit - 1))) svc_getreq_common (sock + bit - 1); } libc_hidden_def(svc_getreqset) |