source: git/libpolys/coeffs/si_gmp.h @ e4fe2b

spielwiese
Last change on this file since e4fe2b was e4fe2b, checked in by Oleksandr Motsak <motsak@…>, 13 years ago
FIX: Fixed huge BUG in cf_gmp.h CHG: starting to cleanup factory
  • Property mode set to 100644
File size: 634 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/*
10#if defined(__cplusplus) && defined(__GNUC__)
11  #define __cplusplus_backup __cplusplus
12  #undef __cplusplus
13  extern "C" {
14  #include <gmp.h>
15  }
16  #define __cplusplus __cplusplus_backup
17#else
18  #include <gmp.h>
19#endif
20*/
21
22
23#ifndef mpz_size1
24// This is taken from longrat.h: it seems to be generally GMP-related
25#define mpz_size1(A) (ABS((A)->_mp_size))
26//#define mpz_size1(A) mpz_size(A)
27#endif // mpz_size1
28
29
30#endif /* ! COEFFS_SI_GMP_H */
Note: See TracBrowser for help on using the repository browser.