mirror of
https://github.com/odin-lang/Odin.git
synced 2026-06-01 08:21:12 +00:00
`_DIGIT_NAILS` is defined as 4, meaning that we use 60 out of every 64 bits. We can use as few as 1 nail, using 63 bits out of every 64, and all tests will still pass. However, it needs more testing to see if that's a worthwhile change to make. For the tests to work properly when changing the nails, Python needs to know about it as well. In addition, compile the big math code with `-o:speed` going forward.
14 lines
421 B
Batchfile
14 lines
421 B
Batchfile
@echo off
|
|
rem math/big tests
|
|
set PATH_TO_ODIN==..\..\..\..\odin
|
|
set TEST_ARGS=-fast-tests
|
|
set TEST_ARGS=-no-random
|
|
set TEST_ARGS=
|
|
set OUT_NAME=math_big_test_library
|
|
set COMMON=-build-mode:shared -show-timings -no-bounds-check -define:MATH_BIG_EXE=false -vet -strict-style
|
|
echo ---
|
|
echo Running core:math/big tests
|
|
echo ---
|
|
|
|
%PATH_TO_ODIN% build . %COMMON% -o:speed -out:%OUT_NAME%
|
|
python3 test.py %TEST_ARGS% |