source:
git/factory/gmpext.h
@
9c6887
Last change on this file since 9c6887 was 9899df, checked in by , 14 years ago | |
---|---|
|
|
File size: 367 bytes |
Rev | Line | |
---|---|---|
[493c477] | 1 | /* emacs edit mode for this file is -*- C++ -*- */ |
[341696] | 2 | /* $Id$ */ |
[2dd068] | 3 | |
[9d7aaa] | 4 | #ifndef INCL_GMPEXT_H |
5 | #define INCL_GMPEXT_H | |
[2dd068] | 6 | |
[9d7aaa] | 7 | #include <config.h> |
8 | ||
[2dd068] | 9 | #include "cf_gmp.h" |
10 | ||
11 | #include "cf_defs.h" | |
12 | #include "imm.h" | |
13 | ||
14 | ||
15 | inline bool | |
16 | mpz_is_imm( const MP_INT * mpi ) | |
17 | { | |
18 | return ( mpz_cmp_si( mpi, MINIMMEDIATE ) >= 0 ) && | |
19 | ( mpz_cmp_si( mpi, MAXIMMEDIATE ) <= 0 ); | |
20 | } | |
21 | ||
[493c477] | 22 | #endif /* ! INCL_GMPEXT_H */ |
Note: See TracBrowser
for help on using the repository browser.