Skip site navigation (1)Skip section navigation (2)
Date:      Sat, 19 Sep 2020 17:09:58 -0700
From:      Steve Kargl <sgk@troutmask.apl.washington.edu>
To:        freebsd-hackers@freebsd.org, freebsd-current@freebsd.org
Subject:   Re: [PATCH] libm -- fix expl kernels
Message-ID:  <20200920000958.GA47838@troutmask.apl.washington.edu>
In-Reply-To: <20200919235849.GA47701@troutmask.apl.washington.edu>
References:  <20200919235849.GA47701@troutmask.apl.washington.edu>

next in thread | previous in thread | raw e-mail | index | archive | help
On Sat, Sep 19, 2020 at 04:58:49PM -0700, Steve Kargl wrote:
> The following patch fixes the ld80 and ld128 kernels for expl(x).

Subj: is slightly wrong.  This fixes the cexpl(z) kernels.

> I can't test ld128, so that patch is untested.
> 
> . Micro-optimization: use sincosl(x) instead of a call to cosl(x) and
>   a call to sinl(x).  Argument reduction is done once not twice.

    This part also fixes a cos(x) that should be cosl(x).

> . Use a long double constant instead of an invalid double constant.
> . Spell scale2 correctly

-- 
Steve



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20200920000958.GA47838>