|
25 | 25 | #include<stdio.h> |
26 | 26 | #include<stdlib.h> |
27 | 27 | #include<string.h> |
| 28 | +#include<stdint.h> |
28 | 29 | #include<unistd.h> |
29 | 30 | #include<time.h> |
30 | 31 | /* for timing functions */ |
@@ -504,15 +505,15 @@ static inline void sparse_mat_fglm_mult_vec(CF_t *res, sp_matfglm_t *mat, |
504 | 505 | nmod_t mod; |
505 | 506 | uint64_t pow2_precomp; |
506 | 507 | nmod_init(&mod, (uint64_t)prime); |
507 | | - NMOD_RED(pow2_precomp, (UWORD(1) << __DOT_SPLIT_BITS), mod); |
| 508 | + NMOD_RED(pow2_precomp, (UINT64_C(1) << __DOT_SPLIT_BITS), mod); |
508 | 509 |
|
509 | 510 | _avx512_matrix_vector_product(vres, mat->dense_mat, vec, mat->dst, |
510 | 511 | ncols, nrows, mod, pow2_precomp, st); |
511 | 512 | #elif defined(HAVE_AVX2) |
512 | 513 | nmod_t mod; |
513 | 514 | uint64_t pow2_precomp; |
514 | 515 | nmod_init(&mod, (uint64_t)prime); |
515 | | - NMOD_RED(pow2_precomp, (UWORD(1) << __DOT_SPLIT_BITS), mod); |
| 516 | + NMOD_RED(pow2_precomp, (UINT64_C(1) << __DOT_SPLIT_BITS), mod); |
516 | 517 |
|
517 | 518 | _avx2_matrix_vector_product(vres, mat->dense_mat, vec, mat->dst, |
518 | 519 | ncols, nrows, mod, pow2_precomp, st); |
@@ -565,15 +566,15 @@ static inline void sparse_mat_fglm_colon_mult_vec(CF_t *res, sp_matfglmcol_t *ma |
565 | 566 | nmod_t mod; |
566 | 567 | uint64_t pow2_precomp; |
567 | 568 | nmod_init(&mod, (uint64_t)prime); |
568 | | - NMOD_RED(pow2_precomp, (UWORD(1) << __DOT_SPLIT_BITS), mod); |
| 569 | + NMOD_RED(pow2_precomp, (UINT64_C(1) << __DOT_SPLIT_BITS), mod); |
569 | 570 |
|
570 | 571 | _avx512_matrix_vector_product(vres, mat->dense_mat, vec, mat->dst, |
571 | 572 | ncols, nrows, mod, pow2_precomp, st); |
572 | 573 | #elif defined(HAVE_AVX2) |
573 | 574 | nmod_t mod; |
574 | 575 | uint64_t pow2_precomp; |
575 | 576 | nmod_init(&mod, (uint64_t)prime); |
576 | | - NMOD_RED(pow2_precomp, (UWORD(1) << __DOT_SPLIT_BITS), mod); |
| 577 | + NMOD_RED(pow2_precomp, (UINT64_C(1) << __DOT_SPLIT_BITS), mod); |
577 | 578 |
|
578 | 579 | _avx2_matrix_vector_product(vres, mat->dense_mat, vec, mat->dst, |
579 | 580 | ncols, nrows, mod, pow2_precomp, st); |
@@ -2208,4 +2209,3 @@ param_t *nmod_fglm_guess_colon(sp_matfglmcol_t *matrix, |
2208 | 2209 | return param; |
2209 | 2210 | } |
2210 | 2211 |
|
2211 | | - |
0 commit comments