Mentions légales du service

Skip to content
Snippets Groups Projects
Commit 1e3e15a6 authored by Andreas Enge's avatar Andreas Enge
Browse files

Completely encapsulate and separate PARI and FLINT interfaces.

* lib/cm-impl.h: Do not include PARI or FLINT headers.
  (cm_flint_mpzx_xplusa_pow_modmod, cm_flint_mpzx_gcd_mod):
  Remove function declarations.
* lib/cm.h (cm_pari_print_library, cm_flint_print_library,
  cm_flint_init, cm_flint_clear): Declare new functions.
* lib/pari.c: Include pari.h.
  (cm_pari_print_library): New function.
  (cm_pari_init): Call cm_flint_init.
  (cm_pari_clear): Call cm_flint_clear.
* lib/flint.c: Include FLINT headers.
  (cm_flint_mpzx_xplusa_pow_modmod, cm_flint_mpzx_gcd_mod):
  Make functions static.
  (cm_flint_print_library, cm_flint_init, cm_flint_clear): New function.
* src/params.h: Do not include pari.h.
* src/params.c (print_libraries): Call new functions.
parent dc73b344
No related branches found
No related tags found
No related merge requests found
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment