[math/big] Tell Python test runner how many nails we use.

`_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.
This commit is contained in:
Jeroen van Rijn
2022-04-01 16:24:27 +02:00
parent 2bc89260f1
commit 581d53b96b
3 changed files with 13 additions and 11 deletions
+1 -4
View File
@@ -10,8 +10,5 @@ echo ---
echo Running core:math/big tests
echo ---
rem Fails
:%PATH_TO_ODIN% build . %COMMON% -o:speed -out:%OUT_NAME%
rem Passes
%PATH_TO_ODIN% build . %COMMON% -o:size -out:%OUT_NAME%
%PATH_TO_ODIN% build . %COMMON% -o:speed -out:%OUT_NAME%
python3 test.py %TEST_ARGS%