* ld80/expl.c:

. Remove a few #ifdefs that should have been removed in the initial
    commit.
  . Sort fpmath.h to its rightful place.

* ld128/s_expl.c:
  . Replace EXPMASK with its actual value.
  . Sort fpmath.h to its rightful place.

Requested by:	bde
Approved by:	das (mentor)
This commit is contained in:
Steve Kargl 2012-07-26 03:59:33 +00:00
parent 3458a81e65
commit f7cfe68f59
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=238783
2 changed files with 4 additions and 9 deletions

View File

@ -29,12 +29,11 @@ __FBSDID("$FreeBSD$");
#include <float.h>
#include "fpmath.h"
#include "math.h"
#include "math_private.h"
#include "fpmath.h"
#define BIAS (LDBL_MAX_EXP - 1)
#define EXPMASK (BIAS + LDBL_MAX_EXP)
static volatile const long double twom10000 = 0x1p-10000L, tiny = 0x1p-10000L;
@ -205,7 +204,7 @@ expl(long double x)
/* Filter out exceptional cases. */
u.e = x;
hx = u.xbits.expsign;
ix = hx & EXPMASK;
ix = hx & 0x7fff;
if (ix >= BIAS + 13) { /* |x| >= 8192 or x is NaN */
if (ix == BIAS + LDBL_MAX_EXP) {
if (u.xbits.manh != 0

View File

@ -45,13 +45,9 @@ __FBSDID("$FreeBSD$");
#include <ieeefp.h>
#endif
#include "math.h"
#define FPSETPREC
#ifdef NO_FPSETPREC
#undef FPSETPREC
#endif
#include "math_private.h"
#include "fpmath.h"
#include "math.h"
#include "math_private.h"
#define BIAS (LDBL_MAX_EXP - 1)