Main Page
Related Pages
Data Structures
Files
File List
Globals
All
Data Structures
Namespaces
Files
Functions
Variables
Typedefs
Enumerations
Enumerator
Friends
Macros
Pages
factory
gmpext.h
Go to the documentation of this file.
1
/* emacs edit mode for this file is -*- C++ -*- */
2
3
#ifndef INCL_GMPEXT_H
4
#define INCL_GMPEXT_H
5
6
/**
7
* @file gmpext.h
8
*
9
* utility functions for gmp
10
**/
11
12
// #include "config.h"
13
// #include <factory/cf_gmp.h>
14
15
#include "
cf_defs.h
"
16
#include "
imm.h
"
17
18
19
inline
bool
20
mpz_is_imm
(
const
mpz_t mpi )
21
{
22
return
( mpz_cmp_si( mpi,
MINIMMEDIATE
) >= 0 ) &&
23
( mpz_cmp_si( mpi,
MAXIMMEDIATE
) <= 0 );
24
}
25
26
#endif
/* ! INCL_GMPEXT_H */
MINIMMEDIATE
const long MINIMMEDIATE
Definition:
imm.h:50
cf_defs.h
factory switches.
MAXIMMEDIATE
const long MAXIMMEDIATE
Definition:
imm.h:51
imm.h
operations on immediates, that is elements of F_p, GF, Z, Q that fit into intrinsic int...
mpz_is_imm
bool mpz_is_imm(const mpz_t mpi)
Definition:
gmpext.h:20
Generated on Mon Mar 6 2017 11:17:28 by
doxygen 1.8.8
for
Singular debian-1:4.0.3-p3+ds-5~bpo8+1