FE_TONEAREST
(__libc_fegetround_ref ? __libc_fegetround_ref() : FE_TONEAREST)
static int fe_conv[4] = {FE_TOWARDZERO, FE_TONEAREST, FE_UPWARD, FE_DOWNWARD };
#define FE_ROUND_MASK (FE_TONEAREST | FE_DOWNWARD | \
if (r == FE_TONEAREST) {
case FE_TONEAREST:
fesetround(FE_TONEAREST);
if (oround != FE_TONEAREST) {
fegetround() != FE_TONEAREST) /* not round-to-nearest */
fesetround(FE_TONEAREST);
case FE_TONEAREST:
fesetround(FE_TONEAREST);
if (oround != FE_TONEAREST) {
#define _ROUND_MASK (FE_TONEAREST | FE_DOWNWARD | \
FP_RN = FE_TONEAREST, /* round to nearest representable number */
FP_RN=FE_TONEAREST, /* round to nearest representable number */
#define _ROUND_MASK (FE_TONEAREST | FE_DOWNWARD | \
FP_RN = FE_TONEAREST, /* round to nearest representable number */
(FE_TONEAREST | FE_TOWARDZERO | FE_DOWNWARD | FE_UPWARD)
FP_RN=__FPR(FE_TONEAREST), /* round to nearest representable number */
#define _ROUND_MASK (FE_TONEAREST | FE_DOWNWARD | \
FP_RN=FE_TONEAREST, /* round to nearest representable number */
FP_RN=FE_TONEAREST, /* round to nearest representable number */
#define _ROUND_MASK (FE_TONEAREST | FE_DOWNWARD | \
FP_RN=__FPR(FE_TONEAREST), /* round to nearest representable number */
FP_RN=FE_TONEAREST, /* round to nearest representable number */
(FE_TONEAREST | FE_TOWARDZERO)
return FE_TONEAREST;
return FE_TONEAREST;
FP_RN=FE_TONEAREST, /* round to nearest representable number */
case FE_TONEAREST:
#define _ROUND_MASK (FE_TONEAREST | FE_DOWNWARD | \
FP_RN=FE_TONEAREST, /* round to nearest representable num */
{ FE_TONEAREST, 0x2.00000000000008p+52L, 0x20000000000000 },
{ FE_TONEAREST, 0x2.00000000000018p+52L, 0x20000000000002 },
case FE_TONEAREST:
{ FE_TONEAREST, -INT-0.0625, -INT},
{ FE_TONEAREST, +INT-0.0625, INT},
{ FE_TONEAREST, -INT+0.0625, -INT},
{ FE_TONEAREST, +INT+0.0625, INT},
{ FE_TONEAREST, -INT-0.53125, -INT-1},
{ FE_TONEAREST, +INT-0.53125, INT-1},
{ FE_TONEAREST, -INT+0.53125, -INT+1},
{ FE_TONEAREST, +INT+0.53125, INT+1},
{ FE_TONEAREST, +0., 0},
{ FE_TONEAREST, -0., 0},
case FE_TONEAREST:
case FE_TONEAREST:
checkrounding(FE_TONEAREST, "FE_TONEAREST");
ATF_CHECK_EQ_MSG(fegetround(), FE_TONEAREST,
fegetround(), FE_TONEAREST);
checkrounding(FE_TONEAREST, "FE_TONEAREST");
checkrounding(FE_TONEAREST, "FE_TONEAREST");
fesetround(FE_TONEAREST);
checkrounding(FE_TONEAREST, "FE_TONEAREST");