Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Make msolve build with flint 3 alpha #76

Merged
merged 1 commit into from
Sep 15, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 3 additions & 0 deletions src/fglm/berlekamp_massey.c
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,9 @@
*/

#include <stdlib.h>
#if __FLINT_VERSION >= 3
# include <flint/nmod.h>
#endif
//#include "nmod_poly.h"
//#include "mpn_extras.h"

Expand Down
7 changes: 5 additions & 2 deletions src/fglm/data_fglm.c
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,7 @@
#include <flint/mpn_extras.h>
#include <flint/nmod_poly.h>
#include <flint/nmod_poly_factor.h>
#include <flint/ulong_extras.h>


typedef uint32_t szmat_t;
Expand Down Expand Up @@ -299,9 +300,11 @@ static inline void nmod_poly_set_prime(nmod_poly_t poly,
mp_limb_t ninv = n_preinvert_limb(prime);
poly->mod.n = prime;
poly->mod.ninv = ninv;
#if __FLINT_VERSION < 3
count_leading_zeros(poly->mod.norm, prime);
/* poly->mod.norm = flint_clz(prime); */

#else
poly->mod.norm = flint_clz(prime);
#endif
}

static inline void fglm_param_set_prime(param_t *param, mp_limb_t prime){
Expand Down