aboutsummaryrefslogtreecommitdiff
path: root/generate_parameters.py
Commit message (Collapse)AuthorAge
* Pass -mbmi2 to gccGravatar Jason Gross2018-01-19
| | | | | This will hopefully fix the issue where travis gcc complains about not being able to inline mulx. I hope.
* Generate fecarry for solinasGravatar Jason Gross2018-01-10
| | | | | | | This is a one-line change in generate_parameters.py (plus some whitespace trimming), and running `make regenerate-curves` This handles part of #294
* changes to parameter-generation scriptGravatar jadep2017-11-12
|
* clang -fbracket-depth=999999Gravatar Andres Erbsen2017-11-03
|
* use clangGravatar Andres Erbsen2017-11-03
|
* Make compiler*.sh stable under rebuildingGravatar Jason Gross2017-11-03
| | | | | Oops, we were previously relying on python's iteration order of dicts for which order we passed the various -D flags to gcc.
* Actually remove trailing whitespace from the prime in primes.txtGravatar Jason Gross2017-11-03
|
* fibe: Only define bitwidth on the command lineGravatar Jason Gross2017-11-03
| | | | | | | | | | We generate the PRI macros and the limb_t type from the bitwidth in the C preprocessor My reasoning here is that generate_parameters.py and the generated *.json files are more user-facing than fibe.c, so we should optimize for cleanliness of that user-facing code. If this is the wrong direction to go in, then this commit should be reverted.
* Add PRI{u,x}limb for printf formatsGravatar Jason Gross2017-11-03
| | | | | | | | | | | | | | This is to fix ``` src/Specific/Framework/bench/fibe.c: In function ‘fe_print’: src/Specific/Framework/bench/fibe.c:130:5: warning: format ‘%llx’ expects argument of type ‘long long unsigned int’, but argument 2 has type ‘uint32_t’ [-Wformat=] printf("0x%016llx)<< %lu) + ", x[i], limb_weight_gaps[i-1]); ^ src/Specific/Framework/bench/fibe.c:130:5: warning: format ‘%lu’ expects argument of type ‘long unsigned int’, but argument 3 has type ‘uint32_t’ [-Wformat=] src/Specific/Framework/bench/fibe.c:132:3: warning: format ‘%llx’ expects argument of type ‘long long unsigned int’, but argument 2 has type ‘uint32_t’ [-Wformat=] printf("0x%016llx", x[0]); ^ ```
* Add a24_val, a24_hex compiler paramsGravatar Jason Gross2017-11-03
| | | | This is so that we pass a24 correctly to gmp{var,sec,xx}.
* Add montgomery fesquare filesGravatar Jason Gross2017-11-03
|
* generate_parameters.py: supply dummy a24 of correct lengthGravatar Andres Erbsen2017-11-02
|
* Update generate parameters to generate feadd, fesubGravatar Jason Gross2017-11-02
|
* Fix generate_parametersGravatar Jason Gross2017-11-02
|
* Update fibeGravatar Jason Gross2017-11-02
|
* Fix generation of q hex stringGravatar Jason Gross2017-11-02
|
* Also define modulus_arrayGravatar Jason Gross2017-11-02
|
* Add gmpxx compilationGravatar Jason Gross2017-11-02
|
* Add -D compiler arguments for gmpxx.cppGravatar Jason Gross2017-11-02
|
* Don't print ".0" for integer bases in the json filesGravatar Jason Gross2017-10-16
|
* bugfixes from messy rebase; remade json filesGravatar jadep2017-10-16
|
* change limit for max # limbs to allow, add commented-out pretty-printingGravatar jadep2017-10-16
|
* express montgomery-friendly moduli in a more script-friendly way, since we ↵Gravatar jadep2017-10-16
| | | | don't have extra support for them anyway
* Fix base generationGravatar Jason Gross2017-10-16
|
* Don't error if we can't open a fileGravatar Jason Gross2017-10-16
|
* Handle more primesGravatar Jason Gross2017-10-16
|
* Fix various issues with generate_parameters.pyGravatar Jason Gross2017-10-16
| | | | | | | Some of the sizes were too small because python3 generates floats on division, while python2 rounds down. Also add better error handling
* generate_parameters.py: Don't overwrite files with identical contentsGravatar Jason Gross2017-10-16
|
* Prettier json file generationGravatar Jason Gross2017-10-14
|
* Generate sz as an int in python2Gravatar Jason Gross2017-10-14
|
* Add generated json files from generate_parameters.pyGravatar Jason Gross2017-10-14
|
* Support python2 and python3 in json generationGravatar Jason Gross2017-10-14
|
* add file input/output to json-generating scriptGravatar jadep2017-10-13
|
* add support for unsaturated limbs in json-generationGravatar jadep2017-10-13
|
* add examples to json-generation file for referenceGravatar jadep2017-10-13
|
* add script to generate json files given a primeGravatar jadep2017-10-13