Removes some undefined behaviour in f2xm1 unit test

If the input range is outside of -1.0 to +1.0 then the result is
undefined.
To avoid precision problems just check for zero, aka 2^0-1 which also
returns zero
This commit is contained in:
Ryan Houdek committed 2020-09-23 09:45:08 -07:00
1 parent f5d15df6be
commit a4f92b8564
1 file changed
+2 -2
+2 -2
View File
@@ -1,7 +1,7 @@
%ifdef CONFIG
{
"RegData": {
"MM7": ["0xC000000000000000", "0x4000"]
"MM7": ["0x0000000000000000", "0x0000"]
},
"MemoryRegions": {
"0x100000000": "4096"
@@ -17,5 +17,5 @@ hlt
align 8
data:
dt 2.0
dt 0.0
dq 0