diff options
author | Jason Gross <jgross@mit.edu> | 2017-11-02 03:11:38 -0400 |
---|---|---|
committer | Jason Gross <jgross@mit.edu> | 2017-11-02 03:11:38 -0400 |
commit | c17d449d001239930418c04160ddb168239295ea (patch) | |
tree | 83ed43994584c4c3ab856d902ad19167bcef6a44 /src/Specific/montgomery32_2e480m2e240m1 | |
parent | 498a7dab48c80497a9173d7c94e9e4dde75b73d8 (diff) |
Add -D compiler arguments for gmpxx.cpp
Diffstat (limited to 'src/Specific/montgomery32_2e480m2e240m1')
-rwxr-xr-x | src/Specific/montgomery32_2e480m2e240m1/compiler.sh | 2 | ||||
-rwxr-xr-x | src/Specific/montgomery32_2e480m2e240m1/compilerxx.sh | 4 |
2 files changed, 5 insertions, 1 deletions
diff --git a/src/Specific/montgomery32_2e480m2e240m1/compiler.sh b/src/Specific/montgomery32_2e480m2e240m1/compiler.sh index 518f95765..370095d38 100755 --- a/src/Specific/montgomery32_2e480m2e240m1/compiler.sh +++ b/src/Specific/montgomery32_2e480m2e240m1/compiler.sh @@ -1,4 +1,4 @@ #!/bin/sh set -eu -gcc -fno-peephole2 `#GCC BUG 81300` -march=native -mtune=native -std=gnu11 -O3 -flto -fomit-frame-pointer -fwrapv -Wno-attributes -Wno-incompatible-pointer-types -fno-strict-aliasing "$@" +gcc -fno-peephole2 `#GCC BUG 81300` -march=native -mtune=native -std=gnu11 -O3 -flto -fomit-frame-pointer -fwrapv -Wno-attributes -Wno-incompatible-pointer-types -fno-strict-aliasing -Dq_mpz='(1_mpz<<480) - (1_mpz<<240) - 1 ' -Dmodulus_bytes_val='32' "$@" diff --git a/src/Specific/montgomery32_2e480m2e240m1/compilerxx.sh b/src/Specific/montgomery32_2e480m2e240m1/compilerxx.sh new file mode 100755 index 000000000..e7416cd79 --- /dev/null +++ b/src/Specific/montgomery32_2e480m2e240m1/compilerxx.sh @@ -0,0 +1,4 @@ +#!/bin/sh +set -eu + +g++ -fno-peephole2 `#GCC BUG 81300` -march=native -mtune=native -std=gnu++11 -O3 -flto -fomit-frame-pointer -fwrapv -Wno-attributes -Wno-incompatible-pointer-types -fno-strict-aliasing -Dq_mpz='(1_mpz<<480) - (1_mpz<<240) - 1 ' -Dmodulus_bytes_val='32' "$@" |