Commit Graph

402 Commits

Author SHA1 Message Date
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
christos
8a9e7b0124 Share the amd64 and i386 exp versions. Fixes a problem with exp(-Inf) != 0. 2008-06-23 00:12:04 +00:00
ad
6e5329fd40 Use a dummy assembly file so we won't try produce lint stuff. 2008-06-06 13:35:06 +00:00
ad
61464a76be Forgot to add this yesterday. 2008-06-04 14:59:39 +00:00
ad
1b74c9b77c - Fold libm387 into libm.
- Leave libm387 as an empty shell.
2008-06-03 18:47:28 +00:00
christos
aee69d536e fix bugs that piss off lint. 2008-05-01 15:33:15 +00:00
martin
11a6dbe728 Convert TNF licenses to new 2 clause variant 2008-04-30 13:10:46 +00:00
uwe
138486a3df According to C99:
6.11.5  Storage-class specifiers

       [#1] The placement of a storage-class specifier  other  than
       at   the  beginning  of  the  declaration  specifiers  in  a
       declaration is an obsolescent feature.

and gcc -Wextra warns about this, so s/const static/static const/
2008-04-29 15:10:02 +00:00
martin
ce099b4099 Remove clause 3 and 4 from TNF licenses 2008-04-28 20:22:51 +00:00
christos
e1bf490a86 pass a little lint. 2008-04-26 23:49:50 +00:00
christos
6e8524778b Remove 3 functions that exist in libc. This does not break binary compatibility
since we always link with libc.
2008-04-26 19:49:38 +00:00
christos
f5e7bbccfe Put back USE_SHLIBDIR and remove the confusing lint comment that made me
comment it out in the first place.
2008-04-26 19:19:06 +00:00
christos
98e7e8e9f7 avoid shadow variables, and enable lint. 2008-04-25 22:21:53 +00:00
mhitch
f8f1643217 Fix weak alias. 2008-03-20 18:49:39 +00:00
mhitch
83e4fa69d9 Add wrappers for missing coshf(), expf(), logf(), sinhf(), atan2f(), and
hypotf() functions for vax.  Play the namespace and weak alias game for
functions used internally by the complex functions.  Should fix the vax
build of libm.
2008-03-20 16:41:26 +00:00
drochner
33e5dbb818 fix so that it doesn't interact strangely with ARCH_SRCS definitions
in the base Makefile, makes the lib built correctly again for eg amd64
(seen by wiz)
2008-03-08 14:21:41 +00:00
drochner
c7a43da627 Add manpages for the complex math functions, originally from SUSv3,
roff source from the Linux documentation project.
Modifications before import:
-added NetBSD RCS ID
-removed Linux PROLOG and declarations with "long double"
-ran the "deshallify" script as required by The Open Group
Split out complex related things into an own Makefile fragment.
Thanks to hubertf for directions.
2008-02-20 09:55:37 +00:00
mrg
ecc90aa046 make all sun2 use -O0 and move most of the hacks out into just 3 files. 2008-02-09 02:37:21 +00:00
mrg
e6f4791d95 make sun2 build again with liberal use of -O0. 2008-02-05 02:41:15 +00:00