2012-04-05 Nobuhiro Iwamatsu <iwamatsu@nigauri.org>
+ * sysdeps/sh/sh4/fpu/fesetround.c (fesetround): Fix return value
+ which ROUND is no valid rounding mode.
+
+2012-04-05 Nobuhiro Iwamatsu <iwamatsu@nigauri.org>
+
* sysdeps/sh/sh4/fpu/fegetenv.c (fegetenv): Set fpscr register which
read again.
* sysdeps/sh/sh4/fpu/ftestexcept.c: Likewise.
/* Set current rounding direction.
- Copyright (C) 1998, 2000, 2005 Free Software Foundation, Inc.
+ Copyright (C) 1998, 2000, 2005, 2012 Free Software Foundation, Inc.
This file is part of the GNU C Library.
Contributed by Andreas Jaeger <aj@arthur.rhein-neckar.de>, 1998.
if ((round & ~0x3) != 0)
/* ROUND is no valid rounding mode. */
- return 0;
+ return 1;
/* Get current state. */
_FPU_GETCW (cw);
/* Set new state. */
_FPU_SETCW (cw);
- return 1;
+ return 0;
}
libm_hidden_def (fesetround)