Tim Ruffing
bb1d199de5
ecmult: Use size_t for array indices into tables
2026-01-07 11:58:12 +01:00
Sebastian Falbesoner
c855581728
test, bench, precompute_ecmult: use EXIT_... constants for main return values
2025-02-14 18:03:36 +01:00
Hennadii Stepanov
67887ae65c
Fix a typo in the error message
...
The code has been copy-pasted from the `precompute_ecmult_gen.c` source
file.
2023-06-24 20:18:45 +01:00
Hennadii Stepanov
e449af6872
Drop no longer needed #include "../include/secp256k1.h"
...
The removed header includes have not been needed since PR1231.
2023-06-06 09:07:36 +01:00
Hennadii Stepanov
b627ba7050
Remove dependency on src/libsecp256k1-config.h
...
This change eases the use of alternate build systems by moving
the variables in `src/libsecp256k1-config.h` to compiler macros
for each invocation, preventing duplication of these variables
for each build system.
Co-authored-by: Ali Sherief <ali@notatether.com >
2022-12-15 10:56:16 +00:00
Tim Ruffing
dceaa1f579
int128: Tidy #includes of int128.h and int128_impl.h
...
After this commit, int128.h and int128_impl.h are included as follows:
- .c files which use int128 include int128_impl.h (after util.h)
- .h files which use int128 include int128.h (after util.h)
This list is exhaustive. util.h needs to included first because it sets
up necessary #defines.
2022-11-07 16:38:30 -05:00
Tim Ruffing
10461d8bd3
precompute_ecmult: Always compute all tables up to default WINDOW_G
...
Also simplify #ifdefs in generated file.
2021-12-20 14:18:02 +01:00
Pieter Wuille
e05da9e480
Fix c++ build
2021-12-18 16:12:34 -05:00
Pieter Wuille
c45386d994
Cleanup preprocessor indentation in precompute{,d}_ecmult{,_gen}
2021-12-18 16:12:34 -05:00
Pieter Wuille
19d96e15f9
Split off .c file from precomputed_ecmult.h
2021-12-18 16:12:34 -05:00
Pieter Wuille
bb36331412
Simplify precompute_ecmult_print_*
2021-12-18 16:12:34 -05:00
Pieter Wuille
38cd84a0cb
Compute ecmult tables at runtime for tests_exhaustive
2021-12-18 16:12:33 -05:00
Pieter Wuille
e458ec26d6
Move ecmult table computation code to separate file
2021-12-18 16:11:56 -05:00
Pieter Wuille
fc1bf9f15f
Split ecmult table computation and printing
2021-12-18 16:11:56 -05:00
Pieter Wuille
075252c1b7
Rename ecmult_static_pre_g -> precomputed_ecmult
2021-12-17 11:29:17 -05:00
Pieter Wuille
f95b8106d0
Rename gen_ecmult_static_pre_g -> precompute_ecmult
2021-12-17 11:19:45 -05:00