Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 27 Apr 2017 21:18:49 -0700
From:      Steve Kargl <sgk@troutmask.apl.washington.edu>
To:        freebsd-numerics@freebsd.org
Cc:        freebsd-hackers@freebsd.org
Subject:   Re: Implementation of half-cycle trignometric functions
Message-ID:  <20170428041849.GA13544@troutmask.apl.washington.edu>
In-Reply-To: <20170427231411.GA11346@troutmask.apl.washington.edu>
References:  <20170409220809.GA25076@troutmask.apl.washington.edu> <20170427231411.GA11346@troutmask.apl.washington.edu>

next in thread | previous in thread | raw e-mail | index | archive | help
On Thu, Apr 27, 2017 at 04:14:11PM -0700, Steve Kargl wrote:
> > 
> > The code is attached the bug reportr.
> > 
> > https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=218514
> > 
> 
> I have attached a new diff to the bugzilla report.  The 
> diff is 3090 lines and won't be broadcast the mailing list.
> 
> This diff includes fixes for a few inconsequential bugs
> and implements modified Estrin's method for sum a few
> ploynomials.  If you want the previous Horner's method
> then add -DHORNER to your CFLAGS.
> 

Grrrr.  Find a sloppy theshold can be fun.

Index: src/s_cospif.c
===================================================================
--- src/s_cospif.c	(revision 1916)
+++ src/s_cospif.c	(working copy)
@@ -61,7 +61,7 @@
 	SET_FLOAT_WORD(ax, ix);
 
 	if (ix < 0x3f800000) {			/* |x| < 1 */
-		if (ix < 0x39000000) {		/* |x| < 0x1p-13 */
+		if (ix < 0x38800000) {		/* |x| < 0x1p-14 */
 			if (huge + ax > 0)	/* Raise inexact iff != 0. */
 				return (1);
 		}

-- 
Steve
20170425 https://www.youtube.com/watch?v=VWUpyCsUKR4
20161221 https://www.youtube.com/watch?v=IbCHE-hONow



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