This is the mail archive of the
mailing list for the GCC project.
Re: [PATCH][4.3] Expand lround inline for x86_64/i?86 SSE math
On Oct 18, 2006, at 12:22, Richard Guenther wrote:
which would be fine (as we can restrict the inline expansion to
-fno-rounding-math then, which is the default). Now on to a way
to tell real.c to do nextafter (0.5, 0.0) ...
You can lift that code from ada/trans.c:
/* Compute the exact value calc_type'Pred (0.5) at compile
fmt = REAL_MODE_FORMAT (TYPE_MODE (calc_type));
real_2expN (&half_minus_pred_half, -(fmt->p) - 1);
REAL_ARITHMETIC (pred_half, MINUS_EXPR, dconsthalf,
gnu_pred_half = build_real (calc_type, pred_half);