[<prev] [next>] [<thread-prev] [day] [month] [year] [list]
Message-ID: <46A83C70.20606@hartkopp.net>
Date: Thu, 26 Jul 2007 08:17:20 +0200
From: Oliver Hartkopp <socketcan@...tkopp.net>
To: Eric Dumazet <dada1@...mosbay.com>
CC: Varun Chandramohan <varunc@...ux.vnet.ibm.com>,
davem@...emloft.net, netdev@...r.kernel.org, kaber@...sh.net,
socketcan@...tkopp.net, shemminger@...ux-foundation.org,
krkumar2@...ibm.com
Subject: Re: [PATCH 2/4 -rev1] Add new timeval_to_sec function
Eric Dumazet wrote:
> Varun Chandramohan a écrit :
>>
>> + return (tv->tv_sec + (tv->tv_usec + 999999)/1000000);
>
> return tv->tv_sec + (tv->tv_usec ? 1 : 0);
>
> is much faster
It additionally wins the design award in opposite to my suggestion ;-)
Thanks!
-
To unsubscribe from this list: send the line "unsubscribe netdev" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Powered by blists - more mailing lists