mirror of
https://github.com/gbdev/rgbds.git
synced 2025-11-20 10:12:06 +00:00
Enable more sanitizers in make develop (#1588)
- `-fsanitize=undefined` encompasses multiple checks we were specifying - "detect_leaks=1" for `__asan_default_options` checks for memory leaks (except for with macOS clang++, which does not support LSan) - `-fsanitize=float-divide-by-zero` is an extra UBSan check (and reveals a UB bug to fix with fixed-point `DIV` and `LOG`)
This commit is contained in:
@@ -37,6 +37,9 @@ ENDM
|
||||
|
||||
assert LOG(100.0, 10.0) == 2.0
|
||||
assert LOG(256.0, 2.0) == 8.0
|
||||
assert LOG(10.0, 1.0) == $7fff_ffff ; +inf
|
||||
assert LOG(0.0, 2.71828) == $8000_0000 ; -inf
|
||||
assert LOG(-1.0, 2.71828) == 0 ; nan
|
||||
|
||||
assert ROUND(1.5) == 2.0
|
||||
assert ROUND(-1.5) == -2.0
|
||||
|
||||
Reference in New Issue
Block a user