[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <1322738355.2335.26.camel@edumazet-HP-Compaq-6005-Pro-SFF-PC>
Date: Thu, 01 Dec 2011 12:19:15 +0100
From: Eric Dumazet <eric.dumazet@...il.com>
To: David Laight <David.Laight@...LAB.COM>
Cc: Hagen Paul Pfeifer <hagen@...u.net>,
David Miller <davem@...emloft.net>,
netdev <netdev@...r.kernel.org>
Subject: RE: [PATCH net-next] netem: fix build error on 32bit arches
Le jeudi 01 décembre 2011 à 11:04 +0000, David Laight a écrit :
> > + u64 ticks = (u64)len * NSEC_PER_SEC;
> Writing:
> u64 ticks = len * (u64)NSEC_PER_SEC;
> probably generates better code since the compiler
> is much more likely to spot that a single 32x32 -> 64
> multiply is adequate.
>
Your copy if gcc is very dumb then :)
--
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