abs
eb439bf1a7
Add noieee versions for lround(), lroundf(), lrint(), lrintf(),
...
llrint() and llrintf(). Code copied from round(), roundf() and
rint() and modified for return values. Its possible this may not
do the right things in edge cases, but if so its likely to have
the same issues as the existing round(), roundf() and rint().
All this used by vax (only), and should allow xnest to complete
build.
2010-12-09 22:52:59 +00:00
drochner
240e9917d0
fix accuracy problems in argument ranges where j0(x) is small, closes
...
PR lib/44170 by Henning Petersen
(originally from Steven G. Kargl per FreeBSD PR bin/144306)
2010-11-29 15:10:06 +00:00
christos
fda2d7ca9f
deal with infinity on the vax.
2010-09-20 17:51:38 +00:00
christos
c80a34bc23
no more ieee ifdefs
2010-09-20 16:55:20 +00:00
christos
0a9ef41cbe
get rid of ieee dependencies.
2010-09-20 16:53:30 +00:00
christos
852d033d43
shouldn't need ieee.h here.
2010-09-20 15:38:48 +00:00
christos
92da7545e1
don't compile long double support for the havenots.
2010-09-17 20:39:39 +00:00
drochner
de41a05aef
fix an obvious botch which made eg conjl(3) a no-op
2010-09-16 20:39:50 +00:00
wiz
0d8d67869e
Remove trailing whitespace.
2010-09-15 18:40:27 +00:00
christos
98b923b685
commit long double SoC code from Stathis Kamperis
2010-09-15 16:12:05 +00:00
christos
e2a86dd3c7
Commit SoC long double support from Stathis Kamperis
2010-09-15 16:11:28 +00:00
drochner
1a2acb81f4
EDOM should not be set on atan2(0,0) in POSIX mode, found by
...
Stathis Kamperis' testsuite
2010-09-01 10:44:28 +00:00
drochner
2dcdd0a999
two disgusting hacks:
...
-mk/bsd.lib.mk picks up a .S asm file behind our back (did it do so
always?). s_modf.S is incorrect; I'm undecided whether it makes sense
to fix it, so add a stupid rule to enforce the .c file to be used.
-on i386, s_tanh.c gets miscompiled. It works with -O0, so add
COPTS for exactly that file.
2010-08-10 17:53:08 +00:00
wiz
ab7858d6ea
Remove reference to fpresetsticky(3), which doesn't exist.
...
From Stathis Kamperis.
2010-08-07 18:13:12 +00:00
wiz
16b537c3d2
Fix typo in MLINKS, from Stathis Kamperis. Adapt set lists, and run
...
them through sort while there.
2010-08-07 18:12:45 +00:00
wiz
33c5cb75ad
Remove trailing comma in enumeration, make HTML-ready.
2010-08-04 18:58:28 +00:00
wiz
3b43a9401a
Remove trailing comma in enumeration.
2010-08-04 18:58:18 +00:00
taca
5dad8344cc
Fix compile error.
2010-08-01 06:34:38 +00:00
joerg
c271d4f25f
Fix merge error: drop machine from an older workaround for machine.sse
...
under compat32, drop the assertion, initialize oldlen.
2010-07-31 22:14:18 +00:00
joerg
7f1183f226
Add support for fenv.h interface for i386 and amd64.
...
Submitted by Stathis Kamperis as part of GSoC 2010 and ported from
FreeBSD.
2010-07-31 21:47:52 +00:00
joerg
9741664022
\\* -> \*
2010-05-14 03:10:24 +00:00
jruoho
f08e16091d
Note that rest of the functions come from C99.
2010-05-03 05:35:58 +00:00
joerg
79b996cbc6
Don't mix opening and closing macros of different types.
2010-04-29 08:35:03 +00:00
drochner
d4def06880
-build ldexp/frexp/modf locally again rather than relying on libc
...
reaching over, to get things into a sane state,
-do the usual namespace protection game with scalbn(f) because it
is used internally
(more symbol renamings are necessary)
The weak_alias change for mc68881 is untested.
2010-04-23 19:17:07 +00:00
joerg
ffec7f50c0
Fix escape sequences
2010-04-05 21:33:25 +00:00
mrg
d5a3d97bc4
build s_frexp.c, s_ldexp.c and s_modf.c here for new platforms, since they
...
don't exist as compat functions in libc.
current list of new platforms: powerpc64.
from dennis.c.ferguson@gmail.com in PR#43042. idea to not put compat
functions into new platforms from drochner@netbsd.
2010-03-29 06:59:42 +00:00
snj
d4a6f9b098
These functions are going to first appear in 5.1, not 6.0.
2010-03-08 02:35:50 +00:00
snj
b513aa9a56
Fix broken RCSID.
2010-03-08 01:05:20 +00:00
drochner
b1a1fc216d
fix return values for atan2(+-0,+-0) in the POSIX case
2010-01-27 20:23:53 +00:00
drochner
f12889bbfb
fix return value in case of NaN input
...
(the code also shortcuts the +-inf case, but this was OK before -- it
only avoids an extra check of the mantissa)
2010-01-27 14:07:41 +00:00
drochner
e712404ece
let the previous fix apply to acos rather than atan2,
...
and get rid of #ifdef vax
2010-01-20 16:49:42 +00:00
tnozaki
1166d8dc53
PR/42630 asin(2.0) and acos(2.0) doesn't return NaN.
...
reported by NARUSE, Yui -san, Thanks!
2010-01-20 16:31:35 +00:00
christos
de3b931d80
merge conflicting error sections.
2010-01-12 15:51:01 +00:00
christos
a61eab08ce
remove weak reference for now.
2010-01-11 23:38:24 +00:00
christos
5f7c431ef4
Add exp2 and exp2m
2010-01-11 16:28:39 +00:00
phx
7377320537
Jump through the PLT in PIC mode to fix the DT_TEXTREL warning on creating
...
the shared object.
2010-01-06 14:10:57 +00:00
is
c4a186ea1c
Move to two-clause license.
2009-11-09 15:35:27 +00:00
joerg
d3ac1c4282
Disable the use of mandoc for now until support for conditional
...
expression exists.
2009-10-23 23:42:52 +00:00
wiz
00f6672d21
Mention NetBSD in HISTORY as well.
2009-10-04 22:11:22 +00:00
christos
26573d8819
add f{min,max,dim}{,l,f} from FreeBSD
2009-10-04 22:04:30 +00:00
drochner
aa89e1b426
As noticed by Stathis Kamperis, the original implementation does not
...
always return the correct principal value (with real>=0).
(eg cacosh(ccos(1.0I)) was -1)
Replace by a more ground-up one which should do better.
2009-08-03 19:41:32 +00:00
lukem
d66cb3da2c
fix -Wsign-compare issue (on macppc)
2009-02-16 01:19:34 +00:00
lukem
2e51a772b3
fix -Wsign-compare issue
2009-01-19 05:58:27 +00:00
he
fddc3457b2
Change the use of formally undocumented features, which have now been
...
made to fail. Specifically, change
.ifdef(SYMBOL) -> .ifdef SYMBOL or .if defined(SYMBOL),
and corresponding for .ifndef.
Also correct one error in lib/libm/Makefile (.ifdef (${MKCOMPLEX} != "no")?!?).
2009-01-18 20:42:11 +00:00
christos
93d0aacf67
Fix a little lint.
2008-09-28 18:54:55 +00:00
gmcgarry
3c9a95916d
Wrap compiler-specific flags with HAVE_GCC and HAVE_PCC as necessary. Add a few flags for PCC.
2008-08-29 00:02:21 +00:00
gmcgarry
396359b261
Check MKCOMPLEX variable to build complex support into libm.
2008-07-12 12:23:13 +00:00
drochner
39ba286079
as in exp(), treat +/-Inf and NaN arguments specially, should fix
...
eg expf(-Inf) which was Nan previously
(We could avoid touching the i387 on amd64 in these cases, but we'd
need to bypass the ABI abstraction macros, so leave it the old way
for now.)
2008-06-24 17:27:56 +00:00
drochner
bc43bac5ca
-fix an obvious mistake in fpcw check
...
-replace ARG_DOUBLE_ONE_HALF by _MSW/_LSW because this reflects the
intention and also matches the terms used in C code,
also make the code where the fpcw overwrites the argument a bit
self-documenting
(this abstraction sucks because it forces to write inefficient code)
2008-06-23 10:24:13 +00:00
christos
1d1021c331
add macros for the upper half of the double arguments.
2008-06-23 00:14:46 +00:00