Fix issue #1574 "fract in linalg/glm is broken" by fixing

trunc_f16/32/64 in "math.odin" (~ typos on expressions)
Fix classify_f16 Inf test (would fail for subnormal 0h0001)
  by changing multiplier 0.5 -> 0.25
Add some useful consts to "math.odin" (INF_F16 etc)
Add comment to "demo.odin" mentioning that -0.0 must be used
  to specify negative zero
This commit is contained in:
gitlost
2022-03-08 18:06:25 +00:00
parent 2b43387a9d
commit b94a7a87fa
6 changed files with 472 additions and 7 deletions
+9 -2
View File
@@ -1,7 +1,8 @@
ODIN=../../odin
PYTHON=$(shell which python3)
all: download_test_assets image_test compress_test strings_test hash_test crypto_test noise_test
all: download_test_assets image_test compress_test strings_test hash_test crypto_test noise_test \
math_test linalg_glsl_math_test
download_test_assets:
$(PYTHON) download_assets.py
@@ -22,4 +23,10 @@ crypto_test:
$(ODIN) run crypto -out=crypto_hash -o:speed -no-bounds-check
noise_test:
$(ODIN) run math/noise -out=test_noise
$(ODIN) run math/noise -out=test_noise
math_test:
$(ODIN) run math/test_core_math.odin -collection:tests=..
linalg_glsl_math_test:
$(ODIN) run math/linalg/glsl/test_linalg_glsl_math.odin -collection:tests=..