lkml.org 
[lkml]   [2001]   [Jun]   [21]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
From
SubjectRE: do_select() improvement ...

On 21-Jun-2001 Davide Libenzi wrote:
> off = i / __NFDBITS;
> ! if (!(i & (__NFDBITS - 1))) {
> ! bits = BITS(fds, off);
> ! if (!bits) {
> ! i += __NFDBITS;
> ! continue;
> ! }


This is wrong.



> off = i / __NFDBITS;
> ! if (!(i & (__NFDBITS - 1))) {
> ! bits = BITS(fds, off);
> ! if (!bits) {
> ! i += __NFDBITS - 1;
> ! continue;
> ! }

This is right.





- Davide

[unhandled content-type:application/octet-stream]
\
 
 \ /
  Last update: 2005-03-22 12:55    [W:0.083 / U:0.132 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site