Functions
gmpext.h File Reference

utility functions for gmp More...

#include "cf_defs.h"
#include "imm.h"

Go to the source code of this file.

Functions

bool mpz_is_imm (const mpz_t mpi)
 

Detailed Description

utility functions for gmp

Definition in file gmpext.h.

Function Documentation

◆ mpz_is_imm()

bool mpz_is_imm ( const mpz_t  mpi)
inline

Definition at line 20 of file gmpext.h.

21 {
22  return ( mpz_cmp_si( mpi, MINIMMEDIATE ) >= 0 ) &&
23  ( mpz_cmp_si( mpi, MAXIMMEDIATE ) <= 0 );
24 }
const long MINIMMEDIATE
Definition: imm.h:50
const long MAXIMMEDIATE
Definition: imm.h:51