Re: [PATCH] pkt_sched: gen_estimator: use 64 bits intermediate counters for bps
From: David Miller <davem@davemloft.net>
Date: 2009-05-19 08:18:40
From: David Miller <davem@davemloft.net>
Date: 2009-05-19 08:18:40
From: Eric Dumazet <redacted> Date: Tue, 19 May 2009 09:31:36 +0200
Apparently gcc does the *right* thing on x86_32, but we probably want something stronger here. I could not find gcc documentation statement on right shifts of negative values.
It emits an "arithmetic shift right" for every CPU I've ever checked.