mirror of
https://github.com/DarkPlacesEngine/gmqcc.git
synced 2025-03-25 03:51:26 +00:00
Only when arithmetic exceptions are enabled.
This commit is contained in:
parent
1497191e3c
commit
ff80bf1aa2
1 changed files with 3 additions and 0 deletions
3
fold.c
3
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");
|
||||
|
|
Loading…
Reference in a new issue