diff options
Diffstat (limited to 'src/Specific/montgomery32_2e468m17_15limbs')
20 files changed, 0 insertions, 358 deletions
diff --git a/src/Specific/montgomery32_2e468m17_15limbs/CurveParameters.v b/src/Specific/montgomery32_2e468m17_15limbs/CurveParameters.v deleted file mode 100644 index 3f2a2d057..000000000 --- a/src/Specific/montgomery32_2e468m17_15limbs/CurveParameters.v +++ /dev/null @@ -1,39 +0,0 @@ -Require Import Crypto.Specific.Framework.RawCurveParameters. -Require Import Crypto.Util.LetIn. - -(*** -Modulus : 2^468 - 17 -Base: 32 -***) - -Definition curve : CurveParameters := - {| - sz := 15%nat; - base := 32; - bitwidth := 32; - s := 2^468; - c := [(1, 17)]; - carry_chains := None; - - a24 := None; - coef_div_modulus := None; - - goldilocks := None; - karatsuba := None; - montgomery := true; - freeze := Some false; - ladderstep := false; - - mul_code := None; - - square_code := None; - - upper_bound_of_exponent_loose := None; - upper_bound_of_exponent_tight := None; - allowable_bit_widths := None; - freeze_extra_allowable_bit_widths := None; - modinv_fuel := None - |}. - -Ltac extra_prove_mul_eq _ := idtac. -Ltac extra_prove_square_eq _ := idtac. diff --git a/src/Specific/montgomery32_2e468m17_15limbs/Synthesis.v b/src/Specific/montgomery32_2e468m17_15limbs/Synthesis.v deleted file mode 100644 index 28df8e038..000000000 --- a/src/Specific/montgomery32_2e468m17_15limbs/Synthesis.v +++ /dev/null @@ -1,9 +0,0 @@ -Require Import Crypto.Specific.Framework.SynthesisFramework. -Require Import Crypto.Specific.montgomery32_2e468m17_15limbs.CurveParameters. - -Module P <: PrePackage. - Definition package : Tag.Context. - Proof. make_Synthesis_package curve extra_prove_mul_eq extra_prove_square_eq. Defined. -End P. - -Module Export S := PackageSynthesis P. diff --git a/src/Specific/montgomery32_2e468m17_15limbs/compiler.sh b/src/Specific/montgomery32_2e468m17_15limbs/compiler.sh deleted file mode 100755 index 7e39e69c2..000000000 --- a/src/Specific/montgomery32_2e468m17_15limbs/compiler.sh +++ /dev/null @@ -1,4 +0,0 @@ -#!/bin/sh -set -eu - -clang -fbracket-depth=999999 -march=native -mbmi2 -mtune=native -std=gnu11 -O3 -flto -fuse-ld=lld -fomit-frame-pointer -fwrapv -Wno-attributes -fno-strict-aliasing -Da24_hex='0x3039' -Da24_val='12345' -Da_minus_two_over_four_array='{0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x30,0x39}' -Dbitwidth='32' -Dlimb_weight_gaps_array='{32,32,32,32,32,32,32,32,32,32,32,32,32,32,32}' -Dmodulus_array='{0x0f,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xef}' -Dmodulus_bytes_val='59' -Dmodulus_limbs='15' -Dq_mpz='(1_mpz<<468) - 17' "$@" diff --git a/src/Specific/montgomery32_2e468m17_15limbs/compilerxx.sh b/src/Specific/montgomery32_2e468m17_15limbs/compilerxx.sh deleted file mode 100755 index 650b04aed..000000000 --- a/src/Specific/montgomery32_2e468m17_15limbs/compilerxx.sh +++ /dev/null @@ -1,4 +0,0 @@ -#!/bin/sh -set -eu - -clang++ -fbracket-depth=999999 -march=native -mbmi2 -mtune=native -std=gnu++11 -O3 -flto -fuse-ld=lld -fomit-frame-pointer -fwrapv -Wno-attributes -fno-strict-aliasing -Da24_hex='0x3039' -Da24_val='12345' -Da_minus_two_over_four_array='{0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x30,0x39}' -Dbitwidth='32' -Dlimb_weight_gaps_array='{32,32,32,32,32,32,32,32,32,32,32,32,32,32,32}' -Dmodulus_array='{0x0f,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xef}' -Dmodulus_bytes_val='59' -Dmodulus_limbs='15' -Dq_mpz='(1_mpz<<468) - 17' "$@" diff --git a/src/Specific/montgomery32_2e468m17_15limbs/feadd.c b/src/Specific/montgomery32_2e468m17_15limbs/feadd.c deleted file mode 100644 index 0ca8876bd..000000000 --- a/src/Specific/montgomery32_2e468m17_15limbs/feadd.c +++ /dev/null @@ -1,94 +0,0 @@ -static void feadd(uint32_t out[15], const uint32_t in1[15], const uint32_t in2[15]) { - { const uint32_t x30 = in1[14]; - { const uint32_t x31 = in1[13]; - { const uint32_t x29 = in1[12]; - { const uint32_t x27 = in1[11]; - { const uint32_t x25 = in1[10]; - { const uint32_t x23 = in1[9]; - { const uint32_t x21 = in1[8]; - { const uint32_t x19 = in1[7]; - { const uint32_t x17 = in1[6]; - { const uint32_t x15 = in1[5]; - { const uint32_t x13 = in1[4]; - { const uint32_t x11 = in1[3]; - { const uint32_t x9 = in1[2]; - { const uint32_t x7 = in1[1]; - { const uint32_t x5 = in1[0]; - { const uint32_t x58 = in2[14]; - { const uint32_t x59 = in2[13]; - { const uint32_t x57 = in2[12]; - { const uint32_t x55 = in2[11]; - { const uint32_t x53 = in2[10]; - { const uint32_t x51 = in2[9]; - { const uint32_t x49 = in2[8]; - { const uint32_t x47 = in2[7]; - { const uint32_t x45 = in2[6]; - { const uint32_t x43 = in2[5]; - { const uint32_t x41 = in2[4]; - { const uint32_t x39 = in2[3]; - { const uint32_t x37 = in2[2]; - { const uint32_t x35 = in2[1]; - { const uint32_t x33 = in2[0]; - { uint32_t x61; uint8_t x62 = _addcarryx_u32(0x0, x5, x33, &x61); - { uint32_t x64; uint8_t x65 = _addcarryx_u32(x62, x7, x35, &x64); - { uint32_t x67; uint8_t x68 = _addcarryx_u32(x65, x9, x37, &x67); - { uint32_t x70; uint8_t x71 = _addcarryx_u32(x68, x11, x39, &x70); - { uint32_t x73; uint8_t x74 = _addcarryx_u32(x71, x13, x41, &x73); - { uint32_t x76; uint8_t x77 = _addcarryx_u32(x74, x15, x43, &x76); - { uint32_t x79; uint8_t x80 = _addcarryx_u32(x77, x17, x45, &x79); - { uint32_t x82; uint8_t x83 = _addcarryx_u32(x80, x19, x47, &x82); - { uint32_t x85; uint8_t x86 = _addcarryx_u32(x83, x21, x49, &x85); - { uint32_t x88; uint8_t x89 = _addcarryx_u32(x86, x23, x51, &x88); - { uint32_t x91; uint8_t x92 = _addcarryx_u32(x89, x25, x53, &x91); - { uint32_t x94; uint8_t x95 = _addcarryx_u32(x92, x27, x55, &x94); - { uint32_t x97; uint8_t x98 = _addcarryx_u32(x95, x29, x57, &x97); - { uint32_t x100; uint8_t x101 = _addcarryx_u32(x98, x31, x59, &x100); - { uint32_t x103; uint8_t x104 = _addcarryx_u32(x101, x30, x58, &x103); - { uint32_t x106; uint8_t x107 = _subborrow_u32(0x0, x61, 0xffffffef, &x106); - { uint32_t x109; uint8_t x110 = _subborrow_u32(x107, x64, 0xffffffff, &x109); - { uint32_t x112; uint8_t x113 = _subborrow_u32(x110, x67, 0xffffffff, &x112); - { uint32_t x115; uint8_t x116 = _subborrow_u32(x113, x70, 0xffffffff, &x115); - { uint32_t x118; uint8_t x119 = _subborrow_u32(x116, x73, 0xffffffff, &x118); - { uint32_t x121; uint8_t x122 = _subborrow_u32(x119, x76, 0xffffffff, &x121); - { uint32_t x124; uint8_t x125 = _subborrow_u32(x122, x79, 0xffffffff, &x124); - { uint32_t x127; uint8_t x128 = _subborrow_u32(x125, x82, 0xffffffff, &x127); - { uint32_t x130; uint8_t x131 = _subborrow_u32(x128, x85, 0xffffffff, &x130); - { uint32_t x133; uint8_t x134 = _subborrow_u32(x131, x88, 0xffffffff, &x133); - { uint32_t x136; uint8_t x137 = _subborrow_u32(x134, x91, 0xffffffff, &x136); - { uint32_t x139; uint8_t x140 = _subborrow_u32(x137, x94, 0xffffffff, &x139); - { uint32_t x142; uint8_t x143 = _subborrow_u32(x140, x97, 0xffffffff, &x142); - { uint32_t x145; uint8_t x146 = _subborrow_u32(x143, x100, 0xffffffff, &x145); - { uint32_t x148; uint8_t x149 = _subborrow_u32(x146, x103, 0xfffff, &x148); - { uint32_t _; uint8_t x152 = _subborrow_u32(x149, x104, 0x0, &_); - { uint32_t x153 = cmovznz32(x152, x148, x103); - { uint32_t x154 = cmovznz32(x152, x145, x100); - { uint32_t x155 = cmovznz32(x152, x142, x97); - { uint32_t x156 = cmovznz32(x152, x139, x94); - { uint32_t x157 = cmovznz32(x152, x136, x91); - { uint32_t x158 = cmovznz32(x152, x133, x88); - { uint32_t x159 = cmovznz32(x152, x130, x85); - { uint32_t x160 = cmovznz32(x152, x127, x82); - { uint32_t x161 = cmovznz32(x152, x124, x79); - { uint32_t x162 = cmovznz32(x152, x121, x76); - { uint32_t x163 = cmovznz32(x152, x118, x73); - { uint32_t x164 = cmovznz32(x152, x115, x70); - { uint32_t x165 = cmovznz32(x152, x112, x67); - { uint32_t x166 = cmovznz32(x152, x109, x64); - { uint32_t x167 = cmovznz32(x152, x106, x61); - out[0] = x167; - out[1] = x166; - out[2] = x165; - out[3] = x164; - out[4] = x163; - out[5] = x162; - out[6] = x161; - out[7] = x160; - out[8] = x159; - out[9] = x158; - out[10] = x157; - out[11] = x156; - out[12] = x155; - out[13] = x154; - out[14] = x153; - }}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}} -} diff --git a/src/Specific/montgomery32_2e468m17_15limbs/feadd.v b/src/Specific/montgomery32_2e468m17_15limbs/feadd.v deleted file mode 100644 index 91f007d4e..000000000 --- a/src/Specific/montgomery32_2e468m17_15limbs/feadd.v +++ /dev/null @@ -1,14 +0,0 @@ -Require Import Crypto.Arithmetic.PrimeFieldTheorems. -Require Import Crypto.Specific.montgomery32_2e468m17_15limbs.Synthesis. - -(* TODO : change this to field once field isomorphism happens *) -Definition add : - { add : feBW_small -> feBW_small -> feBW_small - | forall a b, phiM_small (add a b) = F.add (phiM_small a) (phiM_small b) }. -Proof. - Set Ltac Profiling. - Time synthesize_add (). - Show Ltac Profile. -Time Defined. - -Print Assumptions add. diff --git a/src/Specific/montgomery32_2e468m17_15limbs/feaddDisplay.log b/src/Specific/montgomery32_2e468m17_15limbs/feaddDisplay.log deleted file mode 100644 index 49636caac..000000000 --- a/src/Specific/montgomery32_2e468m17_15limbs/feaddDisplay.log +++ /dev/null @@ -1,53 +0,0 @@ -λ x x0 : word32 * word32 * word32 * word32 * word32 * word32 * word32 * word32 * word32 * word32 * word32 * word32 * word32 * word32 * word32, -Interp-η -(λ var : Syntax.base_type → Type, - λ '(x30, x31, x29, x27, x25, x23, x21, x19, x17, x15, x13, x11, x9, x7, x5, (x58, x59, x57, x55, x53, x51, x49, x47, x45, x43, x41, x39, x37, x35, x33))%core, - uint32_t x61, uint8_t x62 = addcarryx_u32(0x0, x5, x33); - uint32_t x64, uint8_t x65 = addcarryx_u32(x62, x7, x35); - uint32_t x67, uint8_t x68 = addcarryx_u32(x65, x9, x37); - uint32_t x70, uint8_t x71 = addcarryx_u32(x68, x11, x39); - uint32_t x73, uint8_t x74 = addcarryx_u32(x71, x13, x41); - uint32_t x76, uint8_t x77 = addcarryx_u32(x74, x15, x43); - uint32_t x79, uint8_t x80 = addcarryx_u32(x77, x17, x45); - uint32_t x82, uint8_t x83 = addcarryx_u32(x80, x19, x47); - uint32_t x85, uint8_t x86 = addcarryx_u32(x83, x21, x49); - uint32_t x88, uint8_t x89 = addcarryx_u32(x86, x23, x51); - uint32_t x91, uint8_t x92 = addcarryx_u32(x89, x25, x53); - uint32_t x94, uint8_t x95 = addcarryx_u32(x92, x27, x55); - uint32_t x97, uint8_t x98 = addcarryx_u32(x95, x29, x57); - uint32_t x100, uint8_t x101 = addcarryx_u32(x98, x31, x59); - uint32_t x103, uint8_t x104 = addcarryx_u32(x101, x30, x58); - uint32_t x106, uint8_t x107 = subborrow_u32(0x0, x61, 0xffffffef); - uint32_t x109, uint8_t x110 = subborrow_u32(x107, x64, 0xffffffff); - uint32_t x112, uint8_t x113 = subborrow_u32(x110, x67, 0xffffffff); - uint32_t x115, uint8_t x116 = subborrow_u32(x113, x70, 0xffffffff); - uint32_t x118, uint8_t x119 = subborrow_u32(x116, x73, 0xffffffff); - uint32_t x121, uint8_t x122 = subborrow_u32(x119, x76, 0xffffffff); - uint32_t x124, uint8_t x125 = subborrow_u32(x122, x79, 0xffffffff); - uint32_t x127, uint8_t x128 = subborrow_u32(x125, x82, 0xffffffff); - uint32_t x130, uint8_t x131 = subborrow_u32(x128, x85, 0xffffffff); - uint32_t x133, uint8_t x134 = subborrow_u32(x131, x88, 0xffffffff); - uint32_t x136, uint8_t x137 = subborrow_u32(x134, x91, 0xffffffff); - uint32_t x139, uint8_t x140 = subborrow_u32(x137, x94, 0xffffffff); - uint32_t x142, uint8_t x143 = subborrow_u32(x140, x97, 0xffffffff); - uint32_t x145, uint8_t x146 = subborrow_u32(x143, x100, 0xffffffff); - uint32_t x148, uint8_t x149 = subborrow_u32(x146, x103, 0xfffff); - uint32_t _, uint8_t x152 = subborrow_u32(x149, x104, 0x0); - uint32_t x153 = cmovznz32(x152, x148, x103); - uint32_t x154 = cmovznz32(x152, x145, x100); - uint32_t x155 = cmovznz32(x152, x142, x97); - uint32_t x156 = cmovznz32(x152, x139, x94); - uint32_t x157 = cmovznz32(x152, x136, x91); - uint32_t x158 = cmovznz32(x152, x133, x88); - uint32_t x159 = cmovznz32(x152, x130, x85); - uint32_t x160 = cmovznz32(x152, x127, x82); - uint32_t x161 = cmovznz32(x152, x124, x79); - uint32_t x162 = cmovznz32(x152, x121, x76); - uint32_t x163 = cmovznz32(x152, x118, x73); - uint32_t x164 = cmovznz32(x152, x115, x70); - uint32_t x165 = cmovznz32(x152, x112, x67); - uint32_t x166 = cmovznz32(x152, x109, x64); - uint32_t x167 = cmovznz32(x152, x106, x61); - return (x153, x154, x155, x156, x157, x158, x159, x160, x161, x162, x163, x164, x165, x166, x167)) -(x, x0)%core - : word32 * word32 * word32 * word32 * word32 * word32 * word32 * word32 * word32 * word32 * word32 * word32 * word32 * word32 * word32 → word32 * word32 * word32 * word32 * word32 * word32 * word32 * word32 * word32 * word32 * word32 * word32 * word32 * word32 * word32 → ReturnType (uint32_t * uint32_t * uint32_t * uint32_t * uint32_t * uint32_t * uint32_t * uint32_t * uint32_t * uint32_t * uint32_t * uint32_t * uint32_t * uint32_t * uint32_t) diff --git a/src/Specific/montgomery32_2e468m17_15limbs/feaddDisplay.v b/src/Specific/montgomery32_2e468m17_15limbs/feaddDisplay.v deleted file mode 100644 index e67ffcf1f..000000000 --- a/src/Specific/montgomery32_2e468m17_15limbs/feaddDisplay.v +++ /dev/null @@ -1,4 +0,0 @@ -Require Import Crypto.Specific.montgomery32_2e468m17_15limbs.feadd. -Require Import Crypto.Specific.Framework.IntegrationTestDisplayCommon. - -Check display add. diff --git a/src/Specific/montgomery32_2e468m17_15limbs/femul.v b/src/Specific/montgomery32_2e468m17_15limbs/femul.v deleted file mode 100644 index 71f5be9b8..000000000 --- a/src/Specific/montgomery32_2e468m17_15limbs/femul.v +++ /dev/null @@ -1,14 +0,0 @@ -Require Import Crypto.Arithmetic.PrimeFieldTheorems. -Require Import Crypto.Specific.montgomery32_2e468m17_15limbs.Synthesis. - -(* TODO : change this to field once field isomorphism happens *) -Definition mul : - { mul : feBW_small -> feBW_small -> feBW_small - | forall a b, phiM_small (mul a b) = F.mul (phiM_small a) (phiM_small b) }. -Proof. - Set Ltac Profiling. - Time synthesize_mul (). - Show Ltac Profile. -Time Defined. - -Print Assumptions mul. diff --git a/src/Specific/montgomery32_2e468m17_15limbs/femulDisplay.v b/src/Specific/montgomery32_2e468m17_15limbs/femulDisplay.v deleted file mode 100644 index e4a2e53c3..000000000 --- a/src/Specific/montgomery32_2e468m17_15limbs/femulDisplay.v +++ /dev/null @@ -1,4 +0,0 @@ -Require Import Crypto.Specific.montgomery32_2e468m17_15limbs.femul. -Require Import Crypto.Specific.Framework.IntegrationTestDisplayCommon. - -Check display mul. diff --git a/src/Specific/montgomery32_2e468m17_15limbs/fenz.c b/src/Specific/montgomery32_2e468m17_15limbs/fenz.c deleted file mode 100644 index d66853caf..000000000 --- a/src/Specific/montgomery32_2e468m17_15limbs/fenz.c +++ /dev/null @@ -1,33 +0,0 @@ -static void fenz(ReturnType uint32_t out[1], const uint32_t in1[15]) { - { const uint32_t x27 = in1[14]; - { const uint32_t x28 = in1[13]; - { const uint32_t x26 = in1[12]; - { const uint32_t x24 = in1[11]; - { const uint32_t x22 = in1[10]; - { const uint32_t x20 = in1[9]; - { const uint32_t x18 = in1[8]; - { const uint32_t x16 = in1[7]; - { const uint32_t x14 = in1[6]; - { const uint32_t x12 = in1[5]; - { const uint32_t x10 = in1[4]; - { const uint32_t x8 = in1[3]; - { const uint32_t x6 = in1[2]; - { const uint32_t x4 = in1[1]; - { const uint32_t x2 = in1[0]; - { uint32_t x29 = (x28 | x27); - { uint32_t x30 = (x26 | x29); - { uint32_t x31 = (x24 | x30); - { uint32_t x32 = (x22 | x31); - { uint32_t x33 = (x20 | x32); - { uint32_t x34 = (x18 | x33); - { uint32_t x35 = (x16 | x34); - { uint32_t x36 = (x14 | x35); - { uint32_t x37 = (x12 | x36); - { uint32_t x38 = (x10 | x37); - { uint32_t x39 = (x8 | x38); - { uint32_t x40 = (x6 | x39); - { uint32_t x41 = (x4 | x40); - { uint32_t x42 = (x2 | x41); - out[0] = x42; - }}}}}}}}}}}}}}}}}}}}}}}}}}}}} -} diff --git a/src/Specific/montgomery32_2e468m17_15limbs/fenz.v b/src/Specific/montgomery32_2e468m17_15limbs/fenz.v deleted file mode 100644 index 85427c9a0..000000000 --- a/src/Specific/montgomery32_2e468m17_15limbs/fenz.v +++ /dev/null @@ -1,16 +0,0 @@ -Require Import Coq.ZArith.ZArith. -Require Import Crypto.Arithmetic.PrimeFieldTheorems. -Require Import Crypto.Specific.montgomery32_2e468m17_15limbs.Synthesis. -Local Open Scope Z_scope. - -(* TODO : change this to field once field isomorphism happens *) -Definition nonzero : - { nonzero : feBW_small -> BoundedWord.BoundedWord 1 adjusted_bitwidth bound1 - | forall a, (BoundedWord.BoundedWordToZ _ _ _ (nonzero a) =? 0) = (if Decidable.dec (phiM_small a = F.of_Z m 0) then true else false) }. -Proof. - Set Ltac Profiling. - Time synthesize_nonzero (). - Show Ltac Profile. -Time Defined. - -Print Assumptions nonzero. diff --git a/src/Specific/montgomery32_2e468m17_15limbs/fenzDisplay.log b/src/Specific/montgomery32_2e468m17_15limbs/fenzDisplay.log deleted file mode 100644 index 8907c292b..000000000 --- a/src/Specific/montgomery32_2e468m17_15limbs/fenzDisplay.log +++ /dev/null @@ -1,21 +0,0 @@ -λ x : word32 * word32 * word32 * word32 * word32 * word32 * word32 * word32 * word32 * word32 * word32 * word32 * word32 * word32 * word32, -Interp-η -(λ var : Syntax.base_type → Type, - λ '(x27, x28, x26, x24, x22, x20, x18, x16, x14, x12, x10, x8, x6, x4, x2)%core, - uint32_t x29 = (x28 | x27); - uint32_t x30 = (x26 | x29); - uint32_t x31 = (x24 | x30); - uint32_t x32 = (x22 | x31); - uint32_t x33 = (x20 | x32); - uint32_t x34 = (x18 | x33); - uint32_t x35 = (x16 | x34); - uint32_t x36 = (x14 | x35); - uint32_t x37 = (x12 | x36); - uint32_t x38 = (x10 | x37); - uint32_t x39 = (x8 | x38); - uint32_t x40 = (x6 | x39); - uint32_t x41 = (x4 | x40); - uint32_t x42 = (x2 | x41); - return x42) -x - : word32 * word32 * word32 * word32 * word32 * word32 * word32 * word32 * word32 * word32 * word32 * word32 * word32 * word32 * word32 → ReturnType uint32_t diff --git a/src/Specific/montgomery32_2e468m17_15limbs/fenzDisplay.v b/src/Specific/montgomery32_2e468m17_15limbs/fenzDisplay.v deleted file mode 100644 index e242c5f5d..000000000 --- a/src/Specific/montgomery32_2e468m17_15limbs/fenzDisplay.v +++ /dev/null @@ -1,4 +0,0 @@ -Require Import Crypto.Specific.montgomery32_2e468m17_15limbs.fenz. -Require Import Crypto.Specific.Framework.IntegrationTestDisplayCommon. - -Check display nonzero. diff --git a/src/Specific/montgomery32_2e468m17_15limbs/feopp.v b/src/Specific/montgomery32_2e468m17_15limbs/feopp.v deleted file mode 100644 index 40484e87f..000000000 --- a/src/Specific/montgomery32_2e468m17_15limbs/feopp.v +++ /dev/null @@ -1,14 +0,0 @@ -Require Import Crypto.Arithmetic.PrimeFieldTheorems. -Require Import Crypto.Specific.montgomery32_2e468m17_15limbs.Synthesis. - -(* TODO : change this to field once field isomorphism happens *) -Definition opp : - { opp : feBW_small -> feBW_small - | forall a, phiM_small (opp a) = F.opp (phiM_small a) }. -Proof. - Set Ltac Profiling. - Time synthesize_opp (). - Show Ltac Profile. -Time Defined. - -Print Assumptions opp. diff --git a/src/Specific/montgomery32_2e468m17_15limbs/feoppDisplay.v b/src/Specific/montgomery32_2e468m17_15limbs/feoppDisplay.v deleted file mode 100644 index 91a273b7d..000000000 --- a/src/Specific/montgomery32_2e468m17_15limbs/feoppDisplay.v +++ /dev/null @@ -1,4 +0,0 @@ -Require Import Crypto.Specific.montgomery32_2e468m17_15limbs.feopp. -Require Import Crypto.Specific.Framework.IntegrationTestDisplayCommon. - -Check display opp. diff --git a/src/Specific/montgomery32_2e468m17_15limbs/fesquare.c b/src/Specific/montgomery32_2e468m17_15limbs/fesquare.c deleted file mode 100644 index e3345edfe..000000000 --- a/src/Specific/montgomery32_2e468m17_15limbs/fesquare.c +++ /dev/null @@ -1,5 +0,0 @@ -/* WARNING: This file was copied from Specific/CurveParameters/montgomery32/fesquare.c. - If you edit it here, changes will be erased the next time remake_curves.sh is run. */ -static void fesquare(uint32_t *out, const uint32_t *in) { - femul(out, in, in); -} diff --git a/src/Specific/montgomery32_2e468m17_15limbs/fesub.v b/src/Specific/montgomery32_2e468m17_15limbs/fesub.v deleted file mode 100644 index 69d6b56f6..000000000 --- a/src/Specific/montgomery32_2e468m17_15limbs/fesub.v +++ /dev/null @@ -1,14 +0,0 @@ -Require Import Crypto.Arithmetic.PrimeFieldTheorems. -Require Import Crypto.Specific.montgomery32_2e468m17_15limbs.Synthesis. - -(* TODO : change this to field once field isomorphism happens *) -Definition sub : - { sub : feBW_small -> feBW_small -> feBW_small - | forall a b, phiM_small (sub a b) = F.sub (phiM_small a) (phiM_small b) }. -Proof. - Set Ltac Profiling. - Time synthesize_sub (). - Show Ltac Profile. -Time Defined. - -Print Assumptions sub. diff --git a/src/Specific/montgomery32_2e468m17_15limbs/fesubDisplay.v b/src/Specific/montgomery32_2e468m17_15limbs/fesubDisplay.v deleted file mode 100644 index 2276c4fbc..000000000 --- a/src/Specific/montgomery32_2e468m17_15limbs/fesubDisplay.v +++ /dev/null @@ -1,4 +0,0 @@ -Require Import Crypto.Specific.montgomery32_2e468m17_15limbs.fesub. -Require Import Crypto.Specific.Framework.IntegrationTestDisplayCommon. - -Check display sub. diff --git a/src/Specific/montgomery32_2e468m17_15limbs/py_interpreter.sh b/src/Specific/montgomery32_2e468m17_15limbs/py_interpreter.sh deleted file mode 100755 index 7bdf454ae..000000000 --- a/src/Specific/montgomery32_2e468m17_15limbs/py_interpreter.sh +++ /dev/null @@ -1,4 +0,0 @@ -#!/bin/sh -set -eu - -/usr/bin/env python3 "$@" -Dq='2**468 - 17' -Dmodulus_bytes='32' -Da24='121665' |