source: git/libpolys/coeffs/si_gmp.h @ 75f10d

spielwiese
Last change on this file since 75f10d was 9127cc, checked in by Hans Schoenemann <hannes@…>, 12 years ago
add: basics for bigintmat
  • Property mode set to 100644
File size: 630 bytes
Line 
1#ifndef COEFFS_SI_GMP_H
2#define COEFFS_SI_GMP_H
3
4
5// just assume that factory have been built (cplusplus.h!)
6// instead of duplicating cf_gmp.h here for now...
7//#include <factory/cf_gmp.h>
8
9#if defined(__cplusplus) && defined(__GNUC__)
10  #define __cplusplus_backup __cplusplus
11  #undef __cplusplus
12  extern "C" {
13  #include <gmp.h>
14  }
15  #define __cplusplus __cplusplus_backup
16#else
17  #include <gmp.h>
18#endif
19
20
21#ifndef mpz_size1
22// This is taken from longrat.h: it seems to be generally GMP-related
23#define mpz_size1(A) (ABS((A)->_mp_size))
24//#define mpz_size1(A) mpz_size(A)
25#endif // mpz_size1
26
27
28#endif /* ! COEFFS_SI_GMP_H */
Note: See TracBrowser for help on using the repository browser.