From 33134d25269a4e596a29b362bfd1c2fe6dc0335e Mon Sep 17 00:00:00 2001 From: kargl Date: Sat, 22 Sep 2012 15:19:11 +0000 Subject: * 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) --- lib/msun/src/math_private.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'lib/msun/src') 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) \ -- cgit v1.1