Commit Graph

584 Commits

Author SHA1 Message Date
joerg
07d3f56792 Use normal style for checking for long double support. Add missing
aliases for fminl and fmaxl, fabsl is here just for symmetry.
2013-11-29 22:16:10 +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
d506da106c Provide cbrtl() and cbrtf() for vax 2013-11-24 15:12:10 +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
f4e3824c84 For the non-fenv archs: just use double - punt 2013-11-22 20:15:06 +00:00
martin
e37a907951 Try to fix the build (again): move e_sqrtl.c to common soure, but
move the include of fenv.h into the #ifdef __HAVE_LONG_DOUBLE block
and also provide a -DHAVE_FENV_H from the makefile for archs that have
it - leaving out exception settings on architectures that do not provide
it.
2013-11-22 13:37:24 +00:00
martin
b2718b01b0 Fix stupid bug in previous (fixing fmodf) 2013-11-22 10:59:31 +00:00
martin
497f604871 Fix copy & pasto (make temp variable long double).
Fixes fmodl() test failure on sparc64
2013-11-21 13:41:10 +00:00
martin
d2eda6d998 e_sqrtl.c requires fenv.h, so only build it on platfomrs supporting that 2013-11-21 11:21:54 +00:00
martin
cd0bb19b28 Add fmodf and fmodl 2013-11-21 10:48:11 +00:00
martin
42e0203237 Make it compile on archs with implicit NBIT 2013-11-20 21:12:30 +00:00
joerg
f1faa48b8c Fix operand order. 2013-11-20 12:29:13 +00:00
joerg
f20cb70dbc Long double conditional. 2013-11-20 11:39:00 +00:00
joerg
f63f9867dd Add cbrtl(3) and sqrtl(3), from FreeBSD. 2013-11-19 19:24:33 +00:00
joerg
4281b1a8f9 Report correct exception for fmodl. 2013-11-19 14:04:24 +00:00
joerg
af35a9928f Alias to fmod for platforms with double == long double 2013-11-19 14:02:59 +00:00
martin
6aa2ab9e22 Make it compile on archs with implicit NBIT 2013-11-14 15:25:22 +00:00
wiz
a987b5b309 Add missing comma. 2013-11-13 22:11:52 +00:00
joerg
bc2f32b2d9 truncl(3) 2013-11-13 22:09:55 +00:00
joerg
cbc2f8caeb Add FreeBSD's truncl and minimal testing. 2013-11-13 12:58:11 +00:00
joerg
e53a269b0d Add missing __HAVE_LONG_DOUBLE protection. 2013-11-13 01:03:08 +00:00
joerg
3988594e8b Typo. 2013-11-12 17:37:43 +00:00
joerg
06b4b3a613 Add some fake long double -> double wrappers for various transcendental
functions. They are expected to be implement properly at a later time.
2013-11-12 17:36:14 +00:00
joerg
d0d4402155 Initial version of fmodl from FreeBSD.
Basic test case for the fmod family.
2013-11-12 16:48:39 +00:00
joerg
80f3dc5a69 Man page entries for ceill, floorl and roundl. 2013-11-12 00:10:29 +00:00
joerg
2e412cf6b8 Add initial version of ceill, floorl and roundl from FreeBSD. 2013-11-11 23:57:34 +00:00
joerg
0c8d18a9b2 Preserve the initial x87 control word in the global FP environment
in preparation for adjusting the default based on the main binary
version.
2013-11-11 00:31:51 +00:00
christos
25dc998745 fix unused variable warnings 2013-11-09 21:41:03 +00:00
christos
6c5b63c739 simplify. 2013-11-06 16:49:21 +00:00
christos
eca2236bd9 use the masked variable 2013-10-18 17:03:02 +00:00
joerg
50850b07af Hook complex operation support into libm when not using libgcc. 2013-10-15 23:59:36 +00:00
joerg
3657cb7f1d Update LLVM/Clang snapshot to r191105. This brings in a better detection
of unused static variables and functions. Disable this for some external
code and for ioconf.c in the kernel.
2013-09-21 22:28:12 +00:00
joerg
4d12bfcd15 Pass PICFLAGS down to cc-as-as and use __PIC__ to decide if it is small
vs big PIC mode. Retire -DPIC and -DBIGPIC.
2013-09-12 15:36:14 +00:00
martin
4d09747fe0 s_nexttoward.c does not make sense compiling for 32 bit sparc (double ==
long double), so ifdef it out in the sparc64 compat library build. I hope
the nextafter alias is set up correctly (where?) - and someone please
suggest a better way for this if clause.
2013-08-22 08:24:30 +00:00
martin
cf61cf5c2c Add nexttoward, nearbyint and rintl for sparc64 2013-08-21 13:06:00 +00:00
martin
317c06397c Add support for the long double format used on sparc64 2013-08-21 13:04:44 +00:00
martin
24488e4c56 Add support for archs with LDBL_IMPLICIT_NBIT 2013-08-21 13:03:56 +00:00
matt
f28360367c If __HAVE_LONG_DOUBLE is not defined,
add a strong alias for nextafterl to nextafter
2013-07-18 22:32:53 +00:00
matt
6bcb6c9e28 Only compile is __HAVE_LONG_DOUBLE is defined 2013-07-18 22:31:13 +00:00
christos
5101b66eab Add missing .go and fix lint rule. 2013-06-20 19:49:47 +00:00
riastradh
5cb75bff7e Fix amd64 feraiseexcept so that it actually traps.
The call to fwait got lost somewhere along the line; the i387 code
has it.

XXX pullup to 6
2013-05-29 02:27:39 +00:00
riastradh
0eddede86f Fix sense of fegetexcept on x86.
Somehow I overlooked this when I fixed feenableexcept and
fedisableexcept last summer.

XXX pullup to 6
2013-05-29 00:53:19 +00:00
martin
56f02cd141 Fix POLYD/Mariah fallout and include the scalbn sources (which do not
use polyd).
Fix global names and weak aliases.
2013-05-24 12:45:40 +00:00
mlelstv
bec369833b Correctly alias the ldexp* functions to the scalbn equivalents
that take an int argument.
2013-05-20 20:27:43 +00:00
joerg
65098ec1a4 Fix ldexp aliases. 2013-05-20 19:40:09 +00:00
mlelstv
d896c3b677 Use correct alias for scalbn(). Tested by martin@. 2013-05-20 15:13:36 +00:00
martin
6883e0df33 Try to fix bogus underflow test (obvious copy & pasto) - someone please
review to make sure I got it right.
This fixes PR 47834.
2013-05-19 20:50:02 +00:00