aboutsummaryrefslogtreecommitdiff
path: root/math/math_private.h
diff options
context:
space:
mode:
authorUlrich Drepper <drepper@gmail.com>2011-10-18 09:59:04 -0400
committerUlrich Drepper <drepper@gmail.com>2011-10-18 09:59:04 -0400
commit4855e3ddf5061dd8ddcefafc7185f6f70937434b (patch)
tree7e29eb6e22a1dda9a7133e577787ac9f9b6c17e7 /math/math_private.h
parent23ce5627803ad1e6686355965cd68bb23d05fb28 (diff)
downloadglibc-4855e3ddf5061dd8ddcefafc7185f6f70937434b.zip
glibc-4855e3ddf5061dd8ddcefafc7185f6f70937434b.tar.gz
glibc-4855e3ddf5061dd8ddcefafc7185f6f70937434b.tar.bz2
Provide combined internal feholdexcept/fesetround interface
Diffstat (limited to 'math/math_private.h')
-rw-r--r--math/math_private.h7
1 files changed, 7 insertions, 0 deletions
diff --git a/math/math_private.h b/math/math_private.h
index a1ce014..38ff09e 100644
--- a/math/math_private.h
+++ b/math/math_private.h
@@ -376,6 +376,13 @@ extern void __docos (double __x, double __dx, double __v[]);
#define libc_feholdexceptf(e) (void) feholdexcept (e)
#define libc_feholdexceptl(e) (void) feholdexcept (e)
+#define libc_feholdexcept_setround(e, r) \
+ do { feholdexcept (e); fesetround (r); } while (0)
+#define libc_feholdexcept_setroundf(e, r) \
+ do { feholdexcept (e); fesetround (r); } while (0)
+#define libc_feholdexcept_setroundl(e, r) \
+ do { feholdexcept (e); fesetround (r); } while (0)
+
#define libc_fesetenv(e) (void) fesetenv (e)
#define libc_fesetenvf(e) (void) fesetenv (e)
#define libc_fesetenvl(e) (void) fesetenv (e)