[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <AE90C24D6B3A694183C094C60CF0A2F6D8AEF7@saturn3.aculab.com>
Date: Thu, 1 Dec 2011 11:04:35 -0000
From: "David Laight" <David.Laight@...LAB.COM>
To: "Eric Dumazet" <eric.dumazet@...il.com>,
"Hagen Paul Pfeifer" <hagen@...u.net>,
"David Miller" <davem@...emloft.net>
Cc: "netdev" <netdev@...r.kernel.org>
Subject: RE: [PATCH net-next] netem: fix build error on 32bit arches
> + 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.
David
--
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