diff options
author | kargl <kargl@FreeBSD.org> | 2012-09-22 15:19:11 +0000 |
---|---|---|
committer | kargl <kargl@FreeBSD.org> | 2012-09-22 15:19:11 +0000 |
commit | 33134d25269a4e596a29b362bfd1c2fe6dc0335e (patch) | |
tree | 179c8bd65cee9130e3c1abdacc9c1a718e98053a /lib/msun/src | |
parent | 392169f5f059fb0f825f04f9d8637ffdee6fb4bd (diff) | |
download | FreeBSD-src-33134d25269a4e596a29b362bfd1c2fe6dc0335e.zip FreeBSD-src-33134d25269a4e596a29b362bfd1c2fe6dc0335e.tar.gz |
* Make STRICT_ALIGN() work for doubles as well as for floats. This
only affects i386. The double case was intentionally left broken
as an optimization, but we are getting closer to supporting
applications and/or kernels that change the (FreeBSD i386) default
rounding precision from FP_PD to FP_PE and never change it back,
and this requires the STRICT_ALIGN()s that were added to support
FP_PE to actually work in all precisions.
* Remove an extraneous semicolon at the end of a macro that was
supposed to be function-like.
Submitted by: bde
Approved by: das (mentor)
Diffstat (limited to 'lib/msun/src')
-rw-r--r-- | lib/msun/src/math_private.h | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/msun/src/math_private.h b/lib/msun/src/math_private.h index f835c7f..fada0a7 100644 --- a/lib/msun/src/math_private.h +++ b/lib/msun/src/math_private.h @@ -224,7 +224,7 @@ do { \ #define STRICT_ASSIGN(type, lval, rval) do { \ volatile type __lval; \ \ - if (sizeof(type) >= sizeof(double)) \ + if (sizeof(type) >= sizeof(long double)) \ (lval) = (rval); \ else { \ __lval = (rval); \ @@ -241,7 +241,7 @@ do { \ fp_prec_t __oprec; \ \ if ((__oprec = fpgetprec()) != FP_PE) \ - fpsetprec(FP_PE); + fpsetprec(FP_PE) #define RETURNI(x) do { \ __retval = (x); \ if (__oprec != FP_PE) \ |