From de2e51dacb1ccd312c0461088b942ef4e93e2731 Mon Sep 17 00:00:00 2001 From: Søren Sandmann Pedersen Date: Wed, 20 Oct 2010 13:53:07 -0400 Subject: Add enable_fp_exceptions() function in utils.[ch] This function enables floating point traps if possible. --- test/utils.h | 3 +++ 1 file changed, 3 insertions(+) (limited to 'test/utils.h') diff --git a/test/utils.h b/test/utils.h index 2ea4170..bac2916 100644 --- a/test/utils.h +++ b/test/utils.h @@ -82,6 +82,9 @@ fuzzer_test_main (const char *test_name, void fail_after (int seconds, const char *msg); +/* If possible, enable traps for floating point exceptions */ +void enable_fp_exceptions(void); + /* A pair of macros which can help to detect corruption of * floating point registers after a function call. This may * happen if _mm_empty() call is forgotten in MMX/SSE2 fast -- cgit v1.2.3