aboutsummaryrefslogtreecommitdiff
path: root/src/Specific/solinas32_2e521m1/compilerxx.sh
diff options
context:
space:
mode:
authorGravatar Jason Gross <jgross@mit.edu>2017-11-02 03:11:38 -0400
committerGravatar Jason Gross <jgross@mit.edu>2017-11-02 03:11:38 -0400
commitc17d449d001239930418c04160ddb168239295ea (patch)
tree83ed43994584c4c3ab856d902ad19167bcef6a44 /src/Specific/solinas32_2e521m1/compilerxx.sh
parent498a7dab48c80497a9173d7c94e9e4dde75b73d8 (diff)
Add -D compiler arguments for gmpxx.cpp
Diffstat (limited to 'src/Specific/solinas32_2e521m1/compilerxx.sh')
-rwxr-xr-xsrc/Specific/solinas32_2e521m1/compilerxx.sh4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/Specific/solinas32_2e521m1/compilerxx.sh b/src/Specific/solinas32_2e521m1/compilerxx.sh
new file mode 100755
index 000000000..5352a2a8d
--- /dev/null
+++ b/src/Specific/solinas32_2e521m1/compilerxx.sh
@@ -0,0 +1,4 @@
+#!/bin/sh
+set -eu
+
+g++ -march=native -mtune=native -std=gnu++11 -O3 -flto -fomit-frame-pointer -fwrapv -Wno-attributes -Dq_mpz='(1_mpz<<521) - 1 ' -Dmodulus_bytes_val='26 + 1/20' "$@"