]> git.rm.cloudns.org Git - xonotic/gmqcc.git/commitdiff
Only when arithmetic exceptions are enabled.
authorDale Weiler <weilercdale@gmail.com>
Sun, 25 May 2014 02:13:47 +0000 (22:13 -0400)
committerDale Weiler <weilercdale@gmail.com>
Sun, 25 May 2014 02:13:47 +0000 (22:13 -0400)
fold.c

diff --git a/fold.c b/fold.c
index 7e336b7834ed3f8433ce4e0c1af8d687c249bb5f..d32ff053a14453694049bb1b82179fe0fead601c 100644 (file)
--- a/fold.c
+++ b/fold.c
@@ -563,6 +563,9 @@ static GMQCC_INLINE void vec3_check_except(vec3_t     a,
                                            sfloat_t (*callback)(sfloat_state_t *, sfloat_t, sfloat_t))
 {
     vec3_soft_state_t state;
+    if (!OPTS_FLAG(ARITHMETIC_EXCEPTIONS))
+        return;
+
     vec3_soft_eval(&state, callback, a, b);
     if (state.faults & VEC_COMP_X) sfloat_check(ctx, &state.state[0], "x");
     if (state.faults & VEC_COMP_Y) sfloat_check(ctx, &state.state[1], "y");