Skip to content

Commit

Permalink
make constant expression for MSVC in fft_small/mpn_mul.c
Browse files Browse the repository at this point in the history
  • Loading branch information
albinahlback committed Nov 17, 2023
1 parent 109c48d commit 8b750ab
Showing 1 changed file with 7 additions and 4 deletions.
11 changes: 7 additions & 4 deletions src/fft_small/mpn_mul.c
Original file line number Diff line number Diff line change
Expand Up @@ -375,6 +375,8 @@ void slow_mpn_to_fft(

#define aindex(i) (((i) < an) ? a[i] : (uint32_t)(0))

#define N_CDIV(a, b) ((a) + (b) - 1) / (b)

#define DEFINE_IT(NP) \
FLINT_STATIC_NOINLINE void CAT(mpn_to_ffts_hard, NP)( \
sd_fft_ctx_struct* Rffts, double* d, ulong dstride, \
Expand All @@ -384,10 +386,10 @@ FLINT_STATIC_NOINLINE void CAT(mpn_to_ffts_hard, NP)( \
ulong bits) \
{ \
ulong np = NP; \
ulong nvs = n_cdiv(np, VEC_SZ); \
vec4d X[nvs]; \
vec4d P[nvs]; \
vec4d PINV[nvs]; \
ulong nvs = N_CDIV(NP, VEC_SZ); \
vec4d X[N_CDIV(NP, VEC_SZ)]; \
vec4d P[N_CDIV(NP, VEC_SZ)]; \
vec4d PINV[N_CDIV(NP, VEC_SZ)]; \
\
for (ulong l = 0; l < nvs; l++) \
{ \
Expand Down Expand Up @@ -440,6 +442,7 @@ DEFINE_IT(7)
DEFINE_IT(8)
#undef DEFINE_IT
#undef aindex
#undef N_CDIV

#define CODE(ir) \
{ \
Expand Down

0 comments on commit 8b750ab

Please sign in to comment.