Re: [PATCH v4 0/1] MR203: vkd3d-shader/hlsl: Fold constant integral abs().
18 May
2023
18 May
'23
3:28 p.m.
On Thu May 18 20:23:30 2023 +0000, Ethan Lee wrote:
This change seems like it would break the result - do we want it to be more like ``` bool success = true; ... case HLSL_TYPE_INT: /* Always evaluate this expression... */ dst->value.u[k].i = abs(src->value.u[k].i); /* ... but if we try abs(INT_MIN), mark this fold as invalid */ if (src->value.u[k].i == INT_MIN) { success = false; } break; ... return success; ``` I don't understand, why would it break the result?
-- https://gitlab.winehq.org/wine/vkd3d/-/merge_requests/203#note_33142
946
Age (days ago)
946
Last active (days ago)
0 comments
1 participants
participants (1)
-
Zebediah Figura (@zfigura)