* lib/fma.c (FUNC): Don't test for FE_DOWNWARD or FE_UPWARD when these
rounding modes are not defined.
+2021-08-28 Bruno Haible <bruno@clisp.org>
+
+ fma: Fix compilation error on Linux/sh4.
+ * lib/fma.c (FUNC): Don't test for FE_DOWNWARD or FE_UPWARD when these
+ rounding modes are not defined.
+
2021-08-28 Bruno Haible <bruno@clisp.org>
Skip some tests when running under QEMU user-mode.
int rounding_mode = fegetround ();
if (rounding_mode == FE_TOWARDZERO)
round_up = 0;
+# if defined FE_DOWNWARD /* not defined on sh4 */
else if (rounding_mode == FE_DOWNWARD)
round_up = sign;
+# endif
+# if defined FE_UPWARD /* not defined on sh4 */
else if (rounding_mode == FE_UPWARD)
round_up = !sign;
+# endif
#else
/* Cf. <https://pubs.opengroup.org/onlinepubs/9699919799/basedefs/float.h.html> */
int rounding_mode = FLT_ROUNDS;