Go to file
wennmach cf92bf760d Reimplement s_log1p.S and s_log1pf.S to use the fyl2xp1 instruction
where necessary.

The log1p() function is provided to compute an accurate value of
log(1 + x), even for tiny values of x. The i387 FPU provides the
fyl2xp1 instruction for this purpose.

However, since the range of the fyl2xp1 function is limited to
-(1 - (sqrt(2) / 2)) <= x <= sqrt(2) - 1
          (-0.292893 <= x <= 0.414214)
we need to check if the argument is in the valid range.

In order to reduce the cost for testing the range, we only use
fyl2xp1 if the argument is in the range
               -0.25 <= x <= 0.25
which can be checked with just one conditional branch.

Fixes PR lib/22599 by Ray Brownrigg.
2003-09-10 16:45:43 +00:00
bin Reinstate paragraph about -E, sort option descriptions, and bump date for -E addition. 2003-09-08 13:13:08 +00:00
crypto SKEY and BSDAUTH #ifdef mixup 2003-09-08 21:00:41 +00:00
dist Use bounded string op (snprintf instead of sprintf) for an automatic 2003-08-28 11:32:33 +00:00
distrib Add siginfo man page. 2003-09-10 14:12:23 +00:00
doc Mention things I did lately. 2003-09-09 23:35:43 +00:00
etc Add a knob to turn off automatic configuration (via rc.d) of 2003-09-10 14:50:19 +00:00
games Move UCB-licensed code from 4-clause to 3-clause licence. 2003-08-07 09:36:50 +00:00
gnu Fix problem with multiple issuers in references in a file, noted 2003-09-10 13:57:46 +00:00
include add randomid(3). 2003-09-09 22:10:33 +00:00
lib Reimplement s_log1p.S and s_log1pf.S to use the fyl2xp1 instruction 2003-09-10 16:45:43 +00:00
libexec Back out revision 1.100. There is something screwier going on. 2003-09-07 22:17:43 +00:00
regress sigcontext->siginfo 2003-09-10 15:33:08 +00:00
rescue Remove file "rescue.unstripped" in "cleandir" target. 2003-07-14 09:00:33 +00:00
sbin make it possible to use /kern/ipsec{sp,sa} for dumping policy/SA. it will 2003-09-08 12:34:29 +00:00
share Remove superfluous .Nm arguments; grammar fixes; add semicolons 2003-09-10 14:24:23 +00:00
sys don't abuse the native sigcode. 2003-09-10 16:44:56 +00:00
tools If SIZE_MAX is not defined, but SIZE_T_MAX is defined (e.g. FreeBSD), 2003-08-27 18:33:26 +00:00
usr.bin Document the '-d f' flag. 2003-09-10 08:44:31 +00:00
usr.sbin Inverted a test by mistake. 2003-09-09 08:22:39 +00:00
build.sh in getkernelconf(), remove check for non-empty $makeobjdir, as it's not 2003-08-16 11:46:44 +00:00
BUILDING Backout the previous commit 2003-08-19 12:53:30 +00:00
Makefile netbsd.org->NetBSD.org 2003-07-26 17:06:22 +00:00
Makefile.inc
UPDATING mention that you *need* COMPAT_16 before building. 2003-09-06 22:12:42 +00:00