public inbox for libc-alpha@sourceware.org
 help / color / mirror / Atom feed
From: Joseph Myers <joseph@codesourcery.com>
To: Wilco Dijkstra <Wilco.Dijkstra@arm.com>
Cc: "libc-alpha@sourceware.org" <libc-alpha@sourceware.org>, nd <nd@arm.com>
Subject: Re: [PATCH 2/7] sin/cos slow paths: remove large range reduction
Date: Thu, 22 Mar 2018 22:15:00 -0000	[thread overview]
Message-ID: <alpine.DEB.2.20.1803222214470.6153@digraph.polyomino.org.uk> (raw)
In-Reply-To: <DB6PR0801MB2053FBB12209FA83A345256F83AA0@DB6PR0801MB2053.eurprd08.prod.outlook.com>

On Wed, 21 Mar 2018, Wilco Dijkstra wrote:

> This patch removes the large range reduction code and defers to the huge range
> reduction code.  The first level range reducer supports inputs up to 2^27,
> which is way too large given that inputs for sin/cos are typically small
> (< 10), and optimizing for a smaller range would give a significant speedup.
> 
> Input values above 2^27 are practically never used, so there is no reason for
> supporting range reduction between 2^27 and 2^48.  Removing it significantly
> simplifies code and enables further speedups.  There is about a 2.3x slowdown
> in this range due to __branred being extremely slow (a better algorithm could
> easily more than double performance).

OK.

-- 
Joseph S. Myers
joseph@codesourcery.com

      reply	other threads:[~2018-03-22 22:15 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2018-03-21 17:51 Wilco Dijkstra
2018-03-22 22:15 ` Joseph Myers [this message]

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=alpine.DEB.2.20.1803222214470.6153@digraph.polyomino.org.uk \
    --to=joseph@codesourcery.com \
    --cc=Wilco.Dijkstra@arm.com \
    --cc=libc-alpha@sourceware.org \
    --cc=nd@arm.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 read-only IMAP folder(s) and NNTP newsgroup(s).