aboutsummaryrefslogtreecommitdiff
path: root/pixman/test/utils.c
diff options
context:
space:
mode:
Diffstat (limited to 'pixman/test/utils.c')
-rw-r--r--pixman/test/utils.c10
1 files changed, 10 insertions, 0 deletions
diff --git a/pixman/test/utils.c b/pixman/test/utils.c
index 188841783..ab3424f9e 100644
--- a/pixman/test/utils.c
+++ b/pixman/test/utils.c
@@ -849,6 +849,16 @@ enable_divbyzero_exceptions (void)
#endif
}
+void
+enable_invalid_exceptions (void)
+{
+#ifdef HAVE_FENV_H
+#ifdef HAVE_FEENABLEEXCEPT
+ feenableexcept (FE_INVALID);
+#endif
+#endif
+}
+
void *
aligned_malloc (size_t align, size_t size)
{