camelCase in C -> snake_case
This commit is contained in:
parent
a17fb3b4c1
commit
f35257d947
|
@ -96,10 +96,10 @@ template genBindingsField*(Field: untyped) =
|
|||
func `ctt _ Field _ cswap`(a, b: var Field, ctl: SecretBool) =
|
||||
a.cswap(b, ctl)
|
||||
|
||||
func `ctt _ Field _ csetZero`(a: var Field, ctl: SecretBool) =
|
||||
func `ctt _ Field _ cset_zero`(a: var Field, ctl: SecretBool) =
|
||||
a.csetZero(ctl)
|
||||
|
||||
func `ctt _ Field _ csetOne`(a: var Field, ctl: SecretBool) =
|
||||
func `ctt _ Field _ cset_one`(a: var Field, ctl: SecretBool) =
|
||||
a.csetOne(ctl)
|
||||
|
||||
func `ctt _ Field _ cneg_in_place`(a: var Field, ctl: SecretBool) =
|
||||
|
@ -224,10 +224,13 @@ template genBindingsExtField*(Field: untyped) =
|
|||
func `ctt _ Field _ inv_in_place`(a: var Field) =
|
||||
a.inv()
|
||||
# --------------------------------------------------------------------------------------
|
||||
func `ctt _ Field _ csetZero`(a: var Field, ctl: SecretBool) =
|
||||
func `ctt _ Field _ ccopy`(a: var Field, b: Field, ctl: SecretBool) =
|
||||
a.ccopy(b, ctl)
|
||||
|
||||
func `ctt _ Field _ cset_zero`(a: var Field, ctl: SecretBool) =
|
||||
a.csetZero(ctl)
|
||||
|
||||
func `ctt _ Field _ csetOne`(a: var Field, ctl: SecretBool) =
|
||||
func `ctt _ Field _ cset_one`(a: var Field, ctl: SecretBool) =
|
||||
a.csetOne(ctl)
|
||||
|
||||
func `ctt _ Field _ cneg_in_place`(a: var Field, ctl: SecretBool) =
|
||||
|
|
|
@ -72,8 +72,8 @@ void ctt_bls12381_fr_inv(bls12381_fr* r, const bls12381_fr* a);
|
|||
void ctt_bls12381_fr_inv_in_place(bls12381_fr* a);
|
||||
void ctt_bls12381_fr_ccopy(bls12381_fr* a, const bls12381_fr* b, const secret_bool ctl);
|
||||
void ctt_bls12381_fr_cswap(bls12381_fr* a, bls12381_fr* b, const secret_bool ctl);
|
||||
void ctt_bls12381_fr_csetZero(bls12381_fr* a, const secret_bool ctl);
|
||||
void ctt_bls12381_fr_csetOne(bls12381_fr* a, const secret_bool ctl);
|
||||
void ctt_bls12381_fr_cset_zero(bls12381_fr* a, const secret_bool ctl);
|
||||
void ctt_bls12381_fr_cset_one(bls12381_fr* a, const secret_bool ctl);
|
||||
void ctt_bls12381_fr_cneg_in_place(bls12381_fr* a, const secret_bool ctl);
|
||||
void ctt_bls12381_fr_cadd_in_place(bls12381_fr* a, const bls12381_fr* b, const secret_bool ctl);
|
||||
void ctt_bls12381_fr_csub_in_place(bls12381_fr* a, const bls12381_fr* b, const secret_bool ctl);
|
||||
|
@ -103,8 +103,8 @@ void ctt_bls12381_fp_inv(bls12381_fp* r, const bls12381_fp* a);
|
|||
void ctt_bls12381_fp_inv_in_place(bls12381_fp* a);
|
||||
void ctt_bls12381_fp_ccopy(bls12381_fp* a, const bls12381_fp* b, const secret_bool ctl);
|
||||
void ctt_bls12381_fp_cswap(bls12381_fp* a, bls12381_fp* b, const secret_bool ctl);
|
||||
void ctt_bls12381_fp_csetZero(bls12381_fp* a, const secret_bool ctl);
|
||||
void ctt_bls12381_fp_csetOne(bls12381_fp* a, const secret_bool ctl);
|
||||
void ctt_bls12381_fp_cset_zero(bls12381_fp* a, const secret_bool ctl);
|
||||
void ctt_bls12381_fp_cset_one(bls12381_fp* a, const secret_bool ctl);
|
||||
void ctt_bls12381_fp_cneg_in_place(bls12381_fp* a, const secret_bool ctl);
|
||||
void ctt_bls12381_fp_cadd_in_place(bls12381_fp* a, const bls12381_fp* b, const secret_bool ctl);
|
||||
void ctt_bls12381_fp_csub_in_place(bls12381_fp* a, const bls12381_fp* b, const secret_bool ctl);
|
||||
|
@ -143,8 +143,9 @@ void ctt_bls12381_fp2_square_in_place(bls12381_fp2* a);
|
|||
void ctt_bls12381_fp2_div2(bls12381_fp2* a);
|
||||
void ctt_bls12381_fp2_inv(bls12381_fp2* r, const bls12381_fp2* a);
|
||||
void ctt_bls12381_fp2_inv_in_place(bls12381_fp2* a);
|
||||
void ctt_bls12381_fp2_csetZero(bls12381_fp2* a, const secret_bool ctl);
|
||||
void ctt_bls12381_fp2_csetOne(bls12381_fp2* a, const secret_bool ctl);
|
||||
void ctt_bls12381_fp2_ccopy(bls12381_fp2* a, const bls12381_fp2* b, const secret_bool ctl);
|
||||
void ctt_bls12381_fp2_cset_zero(bls12381_fp2* a, const secret_bool ctl);
|
||||
void ctt_bls12381_fp2_cset_one(bls12381_fp2* a, const secret_bool ctl);
|
||||
void ctt_bls12381_fp2_cneg_in_place(bls12381_fp2* a, const secret_bool ctl);
|
||||
void ctt_bls12381_fp2_cadd_in_place(bls12381_fp2* a, const bls12381_fp2* b, const secret_bool ctl);
|
||||
void ctt_bls12381_fp2_csub_in_place(bls12381_fp2* a, const bls12381_fp2* b, const secret_bool ctl);
|
||||
|
|
|
@ -73,8 +73,8 @@ void ctt_pallas_fr_inv(pallas_fr* r, const pallas_fr* a);
|
|||
void ctt_pallas_fr_inv_in_place(pallas_fr* a);
|
||||
void ctt_pallas_fr_ccopy(pallas_fr* a, const pallas_fr* b, const secret_bool ctl);
|
||||
void ctt_pallas_fr_cswap(pallas_fr* a, pallas_fr* b, const secret_bool ctl);
|
||||
void ctt_pallas_fr_csetZero(pallas_fr* a, const secret_bool ctl);
|
||||
void ctt_pallas_fr_csetOne(pallas_fr* a, const secret_bool ctl);
|
||||
void ctt_pallas_fr_cset_zero(pallas_fr* a, const secret_bool ctl);
|
||||
void ctt_pallas_fr_cset_one(pallas_fr* a, const secret_bool ctl);
|
||||
void ctt_pallas_fr_cneg_in_place(pallas_fr* a, const secret_bool ctl);
|
||||
void ctt_pallas_fr_cadd_in_place(pallas_fr* a, const pallas_fr* b, const secret_bool ctl);
|
||||
void ctt_pallas_fr_csub_in_place(pallas_fr* a, const pallas_fr* b, const secret_bool ctl);
|
||||
|
@ -104,8 +104,8 @@ void ctt_pallas_fp_inv(pallas_fp* r, const pallas_fp* a);
|
|||
void ctt_pallas_fp_inv_in_place(pallas_fp* a);
|
||||
void ctt_pallas_fp_ccopy(pallas_fp* a, const pallas_fp* b, const secret_bool ctl);
|
||||
void ctt_pallas_fp_cswap(pallas_fp* a, pallas_fp* b, const secret_bool ctl);
|
||||
void ctt_pallas_fp_csetZero(pallas_fp* a, const secret_bool ctl);
|
||||
void ctt_pallas_fp_csetOne(pallas_fp* a, const secret_bool ctl);
|
||||
void ctt_pallas_fp_cset_zero(pallas_fp* a, const secret_bool ctl);
|
||||
void ctt_pallas_fp_cset_one(pallas_fp* a, const secret_bool ctl);
|
||||
void ctt_pallas_fp_cneg_in_place(pallas_fp* a, const secret_bool ctl);
|
||||
void ctt_pallas_fp_cadd_in_place(pallas_fp* a, const pallas_fp* b, const secret_bool ctl);
|
||||
void ctt_pallas_fp_csub_in_place(pallas_fp* a, const pallas_fp* b, const secret_bool ctl);
|
||||
|
@ -144,8 +144,8 @@ void ctt_vesta_fr_inv(vesta_fr* r, const vesta_fr* a);
|
|||
void ctt_vesta_fr_inv_in_place(vesta_fr* a);
|
||||
void ctt_vesta_fr_ccopy(vesta_fr* a, const vesta_fr* b, const secret_bool ctl);
|
||||
void ctt_vesta_fr_cswap(vesta_fr* a, vesta_fr* b, const secret_bool ctl);
|
||||
void ctt_vesta_fr_csetZero(vesta_fr* a, const secret_bool ctl);
|
||||
void ctt_vesta_fr_csetOne(vesta_fr* a, const secret_bool ctl);
|
||||
void ctt_vesta_fr_cset_zero(vesta_fr* a, const secret_bool ctl);
|
||||
void ctt_vesta_fr_cset_one(vesta_fr* a, const secret_bool ctl);
|
||||
void ctt_vesta_fr_cneg_in_place(vesta_fr* a, const secret_bool ctl);
|
||||
void ctt_vesta_fr_cadd_in_place(vesta_fr* a, const vesta_fr* b, const secret_bool ctl);
|
||||
void ctt_vesta_fr_csub_in_place(vesta_fr* a, const vesta_fr* b, const secret_bool ctl);
|
||||
|
@ -175,8 +175,8 @@ void ctt_vesta_fp_inv(vesta_fp* r, const vesta_fp* a);
|
|||
void ctt_vesta_fp_inv_in_place(vesta_fp* a);
|
||||
void ctt_vesta_fp_ccopy(vesta_fp* a, const vesta_fp* b, const secret_bool ctl);
|
||||
void ctt_vesta_fp_cswap(vesta_fp* a, vesta_fp* b, const secret_bool ctl);
|
||||
void ctt_vesta_fp_csetZero(vesta_fp* a, const secret_bool ctl);
|
||||
void ctt_vesta_fp_csetOne(vesta_fp* a, const secret_bool ctl);
|
||||
void ctt_vesta_fp_cset_zero(vesta_fp* a, const secret_bool ctl);
|
||||
void ctt_vesta_fp_cset_one(vesta_fp* a, const secret_bool ctl);
|
||||
void ctt_vesta_fp_cneg_in_place(vesta_fp* a, const secret_bool ctl);
|
||||
void ctt_vesta_fp_cadd_in_place(vesta_fp* a, const vesta_fp* b, const secret_bool ctl);
|
||||
void ctt_vesta_fp_csub_in_place(vesta_fp* a, const vesta_fp* b, const secret_bool ctl);
|
||||
|
|
Loading…
Reference in New Issue