mirror of
https://git.code.sf.net/p/quake/quakeforge
synced 2025-04-11 20:03:11 +00:00
[qfcc] Set all the commutativity flags
Including anti-commutativity. I hadn't set them before because I was uncertain and got conflicting answers, but when I took a look again, it seems IEEE 754 does guarantee commutativity for multiplication and addition, so long as NaN isn't involved (and then it seems to be because `a==a` is always false when a is a NaN).
This commit is contained in:
parent
eade7e9a85
commit
a97fc8154a
1 changed files with 5 additions and 0 deletions
|
@ -58,6 +58,11 @@ options_t options = {
|
|||
.code = {
|
||||
.fast_float = true,
|
||||
.promote_float = true,
|
||||
.commute_float_add = true,
|
||||
.commute_float_mul = true,
|
||||
.commute_float_dot = true,
|
||||
.anticom_float_cross = true,
|
||||
.anticom_float_sub = true,
|
||||
},
|
||||
.warnings = {
|
||||
.uninited_variable = true,
|
||||
|
|
Loading…
Reference in a new issue