diff --git a/src/fft_fr.h b/src/fft_fr.h index 3a75edd..f9a2048 100644 --- a/src/fft_fr.h +++ b/src/fft_fr.h @@ -19,7 +19,7 @@ #include "fft_common.h" void fft_fr_slow(blst_fr *out, const blst_fr *in, uint64_t stride, const blst_fr *roots, uint64_t roots_stride, - uint64_t l); + uint64_t n); void fft_fr_fast(blst_fr *out, const blst_fr *in, uint64_t stride, const blst_fr *roots, uint64_t roots_stride, - uint64_t l); -C_KZG_RET fft_fr(blst_fr *out, const blst_fr *in, bool inv, uint64_t n, const FFTSettings *fs); + uint64_t n); +C_KZG_RET fft_fr(blst_fr *out, const blst_fr *in, bool inverse, uint64_t n, const FFTSettings *fs); diff --git a/src/fft_g1.c b/src/fft_g1.c index f7df6e9..29354d7 100644 --- a/src/fft_g1.c +++ b/src/fft_g1.c @@ -96,11 +96,11 @@ void fft_g1_fast(blst_p1 *out, const blst_p1 *in, uint64_t stride, const blst_fr * @retval C_CZK_OK All is well * @retval C_CZK_BADARGS Invalid parameters were supplied */ -C_KZG_RET fft_g1(blst_p1 *out, const blst_p1 *in, bool inv, uint64_t n, const FFTSettings *fs) { +C_KZG_RET fft_g1(blst_p1 *out, const blst_p1 *in, bool inverse, uint64_t n, const FFTSettings *fs) { uint64_t stride = fs->max_width / n; ASSERT(n <= fs->max_width, C_KZG_BADARGS); ASSERT(is_power_of_two(n), C_KZG_BADARGS); - if (inv) { + if (inverse) { blst_fr inv_len; fr_from_uint64(&inv_len, n); blst_fr_eucl_inverse(&inv_len, &inv_len); diff --git a/src/fft_g1.h b/src/fft_g1.h index 286e0e5..5b3eb66 100644 --- a/src/fft_g1.h +++ b/src/fft_g1.h @@ -19,7 +19,7 @@ #include "fft_common.h" void fft_g1_slow(blst_p1 *out, const blst_p1 *in, uint64_t stride, const blst_fr *roots, uint64_t roots_stride, - uint64_t l); + uint64_t n); void fft_g1_fast(blst_p1 *out, const blst_p1 *in, uint64_t stride, const blst_fr *roots, uint64_t roots_stride, - uint64_t l); -C_KZG_RET fft_g1(blst_p1 *out, const blst_p1 *in, bool inv, uint64_t n, const FFTSettings *fs); + uint64_t n); +C_KZG_RET fft_g1(blst_p1 *out, const blst_p1 *in, bool inverse, uint64_t n, const FFTSettings *fs);