mpfr.h 686 B

1234567891011121314151617181920212223242526272829303132333435
  1. #ifndef AVM_MPFR_H
  2. #define AVM_MPFR_H 1
  3. #ifdef __cplusplus
  4. extern "C"
  5. {
  6. #endif
  7. #if HAVE_MPFR
  8. #include <mpfr.h>
  9. #if HAVE_GMP
  10. #include <gmp.h>
  11. #include <mpf2mpfr.h>
  12. #endif
  13. #endif
  14. #if HAVE_MPFR
  15. typedef mpfr_t *avm_mpfr_ptr;
  16. #else
  17. typedef void *avm_mpfr_ptr;
  18. #endif
  19. extern list avm_mpfr_call (list function_name, list argument, int *fault);
  20. extern list avm_have_mpfr_call (list function_name, int *fault);
  21. extern avm_mpfr_ptr avm_mpfr_of_list (list operand, list *message, int *fault);
  22. extern list avm_list_of_mpfr (avm_mpfr_ptr x,int *fault);
  23. extern void avm_initialize_mpfr ();
  24. extern void avm_count_mpfr ();
  25. #ifdef __cplusplus
  26. }
  27. #endif
  28. #endif /* !AVM_MPFR_H */