UnixLib select and speed

Philip Ludlam nospam at philipnet.com
Sat Dec 4 10:39:36 PST 2004


On 4 Dec, in message <4d18083f23sbellon at sbellon.de>
  Stefan Bellon <sbellon at sbellon.de> wrote:

>Peter, your latest commit to unix/select.c contains the following line
>twice:
>
>          int bits = (nfds % WORD_BITS) ?: WORD_BITS;
>
>Is there some GNUish operator ?: or has something gone wrong? Neither I
>nor Norcroft C don't know this ?: thing.

http://gcc.gnu.org/onlinedocs/gcc-3.4.3/gcc/Conditionals.html

try:
  int bits = (nfds % WORD_BITS) ? (nfds % WORD_BITS) : WORD_BITS;
instead.

Yours,

Phil L.
-- 
http://philipnet.com | http://director.sf.net | http://sms2003.com/philipnet




More information about the gcc mailing list