Commit Graph

199 Commits

Author SHA1 Message Date
skrll 3593a88925 Update {read,write}fpsr to work everywhere 2016-03-20 14:22:46 +00:00
christos f9c7ee08d4 PR/50822: David Binderman: Fix copy length. 2016-02-17 19:54:11 +00:00
christos caa46aef53 fix lint build 2016-01-11 01:34:39 +00:00
christos 64bdb50ef0 add fenv for m68k 2015-12-24 14:12:12 +00:00
christos 63aea4bd5b Add mips fenv.c (From FreeBSD) 2015-12-21 17:02:02 +00:00
christos 161588a5e8 Powerpc fenv.c from FreeBSD 2015-12-20 16:24:25 +00:00
matt e740ee3013 Update to new RISCV ABI 2015-03-27 23:35:40 +00:00
martin f91d4e28bb Simplify, now that rounding mode defines match the hardware bits. 2015-01-13 11:16:06 +00:00
martin f5c779f5d9 Fix exception status vs mask confusion, of course feenableexcept(),
fedisableexcept() and fegetexcept() all operate on the mask.
2014-12-29 19:11:13 +00:00
martin 06e406a946 Add missing return in __SOFTFP__ variant, pointed out by htodd. 2014-12-28 10:15:29 +00:00
martin b137db7576 Add our common non standard extensions and fix typo (FE_EXCEPT_ALL ->
FE_ALL_EXCEPT).
2014-12-27 17:54:24 +00:00
martin b19178f8f4 Fix consistent typo: it is FE_ALL_EXCEPT instead of FE_EXCEPT_ALL (this
went unnoticed as the undefined macro evaluated to 0 and the expression
was always used with ~)
2014-12-27 17:52:45 +00:00
martin dce8d6f504 fenv(3) support for hppa 2014-12-27 16:54:02 +00:00
joerg f23a56fd5e Deal with the potential pressence of long double support. 2014-11-16 16:11:33 +00:00
joerg 797e9a249e It's copysign, not _copysign. 2014-11-15 21:07:01 +00:00
joerg 2583a98ba6 Add copysignl aliases. 2014-11-15 20:59:02 +00:00
joerg f88c0f1c84 Define copysignl on !long double platforms. Be consistent in the use of
weak aliases.
2014-11-14 14:53:17 +00:00
martin 5198dd7ae2 Seems we need both sqrtl and _sqrtl as a weak alias - something must be
wrong namespapce wise here, but this should make it build for now.
2014-10-11 06:59:29 +00:00
martin 624656f169 Fix _sqrtl alias 2014-10-11 06:34:31 +00:00
martin 642e307125 More aliases 2014-10-10 22:06:33 +00:00
martin 3f7199ab7e Add a few missing weak aliases 2014-10-10 20:58:09 +00:00
matt 6cf6fe02a9 New files for Userland support of UCB RISC-V (both 32-bit and 64-bit) 2014-09-19 17:36:24 +00:00
isaki ef13227625 Improve the code. %sp@(4) is already loaded in %fp0.
PR/49083 (2)
2014-08-10 13:30:43 +00:00
isaki 914e175cb7 Remove a meaningless conditional branch.
PR/49083 (1)
2014-08-10 13:29:10 +00:00
matt beb9c6d1b5 Preliminary files for AARCH64 (64-bit ARM) support.
Enough for a distribution build.
2014-08-10 05:47:35 +00:00
martin 03e412de5e Need to load the full argument 2014-03-15 14:12:56 +00:00
martin 89434fa764 Provide copysignf and copysignl 2014-03-15 12:20:09 +00:00
martin 74530a2d26 Provide sqrtl alias 2014-03-06 11:00:17 +00:00
martin f03b314bc0 Simple tanf() for vax 2014-03-06 10:59:52 +00:00
dsl 77e93a9cb9 Drop in a fabs() after the fsqrt().
While it may seem pointless, it the rouding mode is set to round towards
minus infinity then acos(-1) calculates atan2(sqrt(1.0 - 1.0), -1) the subtract
generates -0.0 which sqrt() preserves.
atan2(-0, -1) is -pi, but acos(-1) is expected to be +pi.
This might 'fix' the test failures seen in some environments, but they
are not failing due to an obvously incorrent x87 rounding mode.
2014-03-03 08:00:50 +00:00
martin 39ae3c2126 Provide scalbnl, scalbnf, logbl, logbf, fmaxl for vax. 2014-02-03 21:22:21 +00:00
martin d506da106c Provide cbrtl() and cbrtf() for vax 2013-11-24 15:12:10 +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 eca2236bd9 use the masked variable 2013-10-18 17:03:02 +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
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
matt 8f0edf9e8a Fix feclearexcept return value (should be 0). 2013-05-01 04:04:54 +00:00
joerg 56cae1058e Provide scalbln weak alias. Fix argument order for STRONG_ALIAS.
Expect WEAK_ALIAS and STRONG_ALIAS to exist.
2013-04-30 21:55:31 +00:00
matt 194fd46747 Make this compile for earmhf 2013-04-30 01:45:13 +00:00
matt bc08020c0d Add a C99 <fenv.h> implementation for arm. 2013-04-28 21:06:34 +00:00
joerg c13cb064fe Drop s_scalbnl.c (and s_scalbln.S as side effect) and provide scalbnl in
s_scalbln.c.
2013-04-28 14:46:14 +00:00
joerg bc802c017d Add a dummy s_scalbln.S to avoid the generic implementations of scalbln
and co on i386 and amd64. They are implemented next to scalbn and co.
2013-04-27 18:44:39 +00:00
joerg 5204c9072e Add aliases for scalbn* to ldexp, they are identical for FLT_RADIX=2. 2013-04-27 18:39:28 +00:00
joerg d816b4de58 Use the correct register on AMD64 for the argument. 2013-04-27 18:36:41 +00:00
matt e443b7748e Remove .fpu since it's not needed 2013-02-14 09:27:26 +00:00