From: David Miller <davem@davemloft.net>
To: eric.dumazet@gmail.com
Cc: dave.taht@bufferbloat.net, netdev@vger.kernel.org,
nichols@pollere.com, van@pollere.net,
codel@lists.bufferbloat.net, ycheng@google.com,
mattmathis@google.com, therbert@google.com,
shemminger@vyatta.com, nanditad@google.com
Subject: Re: [PATCH net-next] codel: use Newton method instead of sqrt() and divides
Date: Sat, 12 May 2012 16:45:13 -0400 (EDT) [thread overview]
Message-ID: <20120512.164513.1156706853054390966.davem@davemloft.net> (raw)
In-Reply-To: <1336855256.31653.1329.camel@edumazet-glaptop>
From: Eric Dumazet <eric.dumazet@gmail.com>
Date: Sat, 12 May 2012 22:40:56 +0200
> 24 bit of precision for the reciprocal value is more than enough (Van
> suggested 16 bits in fact), so we have actually room for 7 bits if
> needed.
Using a u16 would also work for me.
> By the way, gcc on x86 generates nice "and 0xfffffffe,%eax" instruction
> for (vars->rec_inv_sqrt << 1).
Yeah but what do stores of ->rec_inv_sqrt look like?
next prev parent reply other threads:[~2012-05-12 20:47 UTC|newest]
Thread overview: 8+ messages / expand[flat|nested] mbox.gz Atom feed top
2012-05-12 13:32 [PATCH net-next] codel: use Newton method instead of sqrt() and divides Eric Dumazet
2012-05-12 19:52 ` David Miller
2012-05-12 20:40 ` Eric Dumazet
2012-05-12 20:45 ` David Miller [this message]
2012-05-12 21:48 ` Eric Dumazet
2012-05-12 21:52 ` David Miller
2012-05-13 7:23 ` Eric Dumazet
2012-05-14 22:33 ` David Miller
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20120512.164513.1156706853054390966.davem@davemloft.net \
--to=davem@davemloft.net \
--cc=codel@lists.bufferbloat.net \
--cc=dave.taht@bufferbloat.net \
--cc=eric.dumazet@gmail.com \
--cc=mattmathis@google.com \
--cc=nanditad@google.com \
--cc=netdev@vger.kernel.org \
--cc=nichols@pollere.com \
--cc=shemminger@vyatta.com \
--cc=therbert@google.com \
--cc=van@pollere.net \
--cc=ycheng@google.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).