From: Dale Weiler Date: Sun, 25 May 2014 02:13:47 +0000 (-0400) Subject: Only when arithmetic exceptions are enabled. X-Git-Tag: xonotic-v0.8.1~9^2~32^2~5 X-Git-Url: http://de.git.xonotic.org/?a=commitdiff_plain;h=ff80bf1aa244d8940516153e6065ff42383afc38;p=xonotic%2Fgmqcc.git Only when arithmetic exceptions are enabled. --- diff --git a/fold.c b/fold.c index 7e336b7..d32ff05 100644 --- 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");