Commit Graph

42 Commits

Author SHA1 Message Date
martin
6d0fe06315 Avoid strict aliasing problems 2014-03-23 15:26:47 +00:00
martin
16e71f2a62 Add roundl() 2014-03-16 10:02:27 +00:00
martin
d30e39112d Provide all missing variants of trunc/floor/ceil. 2014-03-16 09:51:39 +00:00
martin
7a17404a6d XXX This is all wrong and needs new tables and constants - but at least use
constants in the VAX double range for now, so it is compilable with newer
gcc.
2014-03-12 19:42:18 +00:00
martin
ea3fa8f391 Simplistic tanhf() for vax 2014-03-06 10:59:00 +00:00
martin
96c6725640 Simplistic log1pf() for vax 2014-03-06 10:58:26 +00:00
martin
ae998fcbfa log10f() for vax 2014-03-06 10:57:44 +00:00
martin
d408a8629c log2() for vax 2014-03-06 10:57:01 +00:00
martin
13958f72dc Add brute-force adaptions of the ieee version of exp2() and exp2f for
vax. Needs some polishing (and table adaption), but should get the build
going for now.
2014-03-06 10:55:57 +00:00
martin
39ae3c2126 Provide scalbnl, scalbnf, logbl, logbf, fmaxl for vax. 2014-02-03 21:22:21 +00:00
martin
3807220809 Provide expm1f() 2013-11-24 18:50:58 +00:00
martin
56e076908e Provide erff() and erfcf(). 2013-11-24 15:16:49 +00:00
martin
707fcaf05d Provide cbrtf() and cbrtl() 2013-11-24 14:49:00 +00:00
martin
8a90528455 Provide powl() 2013-11-24 14:46:18 +00:00
martin
d8880f8387 Provide (very stupid) versions of atanf(), asinf() and acosf() 2013-11-24 14:41:53 +00:00
martin
b2718b01b0 Fix stupid bug in previous (fixing fmodf) 2013-11-22 10:59:31 +00:00
martin
cd0bb19b28 Add fmodf and fmodl 2013-11-21 10:48:11 +00:00
christos
25dc998745 fix unused variable warnings 2013-11-09 21:41:03 +00:00
abs
7d974f9a82 ANSI prototypes 2012-06-08 11:13:33 +00:00
christos
c1d5350b00 Fix the vax build under gcc-4.5 which now detects that floating constants
don't fit or are effectively 0.
2011-11-02 02:34:56 +00:00
jakllsch
cfb57741fb Imlementations of fmax, fmaxf, fmin and fminf libm functions for VAX. 2011-01-09 02:32:13 +00:00
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
christos
aee69d536e fix bugs that piss off lint. 2008-05-01 15:33:15 +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
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
wiz
4b19648772 s/greatful/grateful/, from Zafer. 2006-11-24 21:15:54 +00:00
matt
d882b4c815 Rather than cast everything around (which upsets gcc4), use a union instead. 2006-07-08 00:28:21 +00:00
is
42796049d0 C versions of non-IEEE round() / roundf(). Alas, using the VAX
cvtrdl; cvtld doesn't work for big numbers.
2006-01-17 13:16:08 +00:00
matt
cedcd39661 Don't cast x to double, it already is one. 2005-05-03 04:18:32 +00:00
mhitch
a6d522d13c Add ceilf(), floorf(), and sqrtf() (as wrappers using ceil(), floor(), and
sqrt() repectively).  The fixes PR#22796.
2004-05-13 20:35:40 +00:00
agc
eb7c1594f1 Move UCB-licensed code from 4-clause to 3-clause licence.
Patches provided by Joel Baker in PR 22280, verified by myself.
2003-08-07 16:42:00 +00:00
matt
7a0238324a Add cosf/sinf. 2002-06-23 21:54:37 +00:00
wiz
a81e53dde5 Remove unnecessary spaces. 2002-06-15 09:39:52 +00:00
matt
f1009ecdff Ansify libm noieeesrc (for VAX). Also make const data really const.
libm for VAX can compiles with WARNS=2
2002-06-15 00:10:17 +00:00
matt
584a2f53ee Clean up & prepare for ELF. Don't define isnan since it's in libc. Add a
powf (really a wrapper for pow).
2000-07-14 04:50:58 +00:00
simonb
42724dd4d2 More trailing white space. 1999-07-02 15:37:33 +00:00
hubertf
36f9d7790a RCS ID police 1999-02-15 04:03:03 +00:00
ragge
4380475d73 Fixe some forgotten vax -> __vax__ changes. 1998-11-08 19:29:34 +00:00
matt
c34b7ca182 vax --> __vax__ (also egcsify the code; missing ints, braces, etc.) 1998-10-20 02:26:09 +00:00
ragge
9f749c2036 The Mariah chip lacks the POLYD instruction, so some assembly coded
calculations must be done in C instead. Fast fix until the POLY{D,F,G,H}
insn's are written.
1998-08-22 12:49:08 +00:00
ragge
04195f0e89 Fix a bunch of warnings introduced by more flags to cc. 1997-10-20 14:11:35 +00:00
ragge
25d43745af Machine independent math library files for non-IEEE architectures. 1995-10-10 23:36:31 +00:00