+2012-05-17 Chris Metcalf <cmetcalf@tilera.com>
+
+ * sysdeps/tile/s_fma.c: Use ieee754/dbl-64 without rounding or
+ exception support; it's still much better than the generic version.
+
2012-05-16 Chris Metcalf <cmetcalf@tilera.com>
* sysdeps/unix/sysv/linux/tile/ucontext_i: Fix tilegx32 offset bug.
-/* Although tile uses ieee754/dbl-64, it does not support the
- rounding modes required to use the standard dbl-64 s_fma.c. */
-#include <math/s_fma.c>
+/* tile does not support the rounding modes required by the ieee754/dbl-64
+ implementation, but it's still better than the generic implementation. */
+
+#define libc_feholdexcept_setround(e, x) do { (void) (e); } while (0)
+#define libc_feupdateenv_test(e, x) ((void) (e), 0)
+#define libc_fetestexcept(x) 0
+
+#include <sysdeps/ieee754/dbl-64/s_fma.c>
-/* Although tile uses ieee754/dbl-64, it does not support the
- rounding modes required to use the standard dbl-64 s_fmaf.c. */
-#include <math/s_fmaf.c>
+/* tile does not support the rounding modes required by the ieee754/dbl-64
+ implementation, but it's still better than the generic implementation. */
+
+#define libc_feholdexcept_setround(e, x) do { (void) (e); } while (0)
+#define libc_feupdateenv_test(e, x) ((void) (e), 0)
+#define libc_fetestexcept(x) 0
+
+#include <sysdeps/ieee754/dbl-64/s_fmaf.c>