]> git.ipfire.org Git - thirdparty/glibc.git/blobdiff - sysdeps/generic/math_private.h
Make fma use of Dekker and Knuth algorithms use round-to-nearest (bug 14796).
[thirdparty/glibc.git] / sysdeps / generic / math_private.h
index b375bc0c565af426b67ecc01461caf90d4a4e265..7661788e6d8c3baa0f5ecdff5d0d435e70c2f23d 100644 (file)
@@ -401,6 +401,22 @@ default_libc_feholdexcept (fenv_t *e)
 # define libc_feholdexceptl default_libc_feholdexcept
 #endif
 
+static __always_inline void
+default_libc_fesetround (int r)
+{
+  (void) fesetround (r);
+}
+
+#ifndef libc_fesetround
+# define libc_fesetround  default_libc_fesetround
+#endif
+#ifndef libc_fesetroundf
+# define libc_fesetroundf default_libc_fesetround
+#endif
+#ifndef libc_fesetroundl
+# define libc_fesetroundl default_libc_fesetround
+#endif
+
 static __always_inline void
 default_libc_feholdexcept_setround (fenv_t *e, int r)
 {