source: git/libpolys/coeffs/si_gmp.h @ 2bc4f5

spielwiese
Last change on this file since 2bc4f5 was 2bc4f5, checked in by Oleksandr Motsak <motsak@…>, 13 years ago
ADD: expose mpz_size1: moved from longrat.h to si_gmp.h
  • Property mode set to 100644
File size: 488 bytes
Line 
1#ifndef COEFFS_SI_GMP_H
2#define COEFFS_SI_GMP_H
3
4#if defined(__cplusplus) && defined(__GNUC__)
5  #define __cplusplus_backup __cplusplus
6  #undef __cplusplus
7  extern "C" {
8  #include <gmp.h>
9  }
10  #define __cplusplus __cplusplus_backup
11#else
12  #include <gmp.h>
13#endif
14
15
16#ifndef mpz_size1
17// This is taken from longrat.h: it seems to be generally GMP-related
18#define mpz_size1(A) (ABS((A)->_mp_size))
19//#define mpz_size1(A) mpz_size(A)
20#endif // mpz_size1
21
22
23#endif /* ! COEFFS_SI_GMP_H */
Note: See TracBrowser for help on using the repository browser.