GCC Middle and Back End API Reference
double-int.h File Reference
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Data Structures

struct  double_int
struct  wi::int_traits< double_int >


namespace  wi


#define double_int_minus_one   (double_int::from_shwi (-1))
#define double_int_zero   (double_int::from_shwi (0))
#define double_int_one   (double_int::from_shwi (1))
#define double_int_two   (double_int::from_shwi (2))
#define double_int_ten   (double_int::from_shwi (10))


void dump_double_int (FILE *, double_int, bool)
void mpz_set_double_int (mpz_t, double_int, bool)
double_int mpz_get_double_int (const_tree, mpz_t, bool)

Macro Definition Documentation



◆ double_int_minus_one

#define double_int_minus_one   (double_int::from_shwi (-1))
Some useful constants.   
FIXME(crowl): Maybe remove after converting callers?
The problem is that a named constant would not be as optimizable,
while the functional syntax is more verbose.   

Referenced by build_minus_one_cst().

◆ double_int_one

◆ double_int_ten

#define double_int_ten   (double_int::from_shwi (10))

◆ double_int_two

#define double_int_two   (double_int::from_shwi (2))

◆ double_int_zero


Function Documentation

◆ dump_double_int()

void dump_double_int ( FILE * file,
double_int cst,
bool uns )
Dumps CST to FILE.  If UNS is true, CST is considered to be unsigned,
otherwise it is signed.   

References double_int_split_digit(), ggc_alloc(), and i.

◆ mpz_get_double_int()

double_int mpz_get_double_int ( const_tree type,
mpz_t val,
bool wrap )
Returns VAL converted to TYPE.  If WRAP is true, then out-of-range
values of VAL will be wrapped; otherwise, they will be set to the
appropriate minimum or maximum TYPE bound.   

References alloca, count, double_int::ext(), gcc_assert, get_type_static_bounds(), ggc_alloc(), double_int::high, double_int::low, TYPE_PRECISION, and TYPE_UNSIGNED.

◆ mpz_set_double_int()

void mpz_set_double_int ( mpz_t result,
double_int val,
bool uns )
Conversion to and from GMP integer representations.   
Sets RESULT to VAL, taken unsigned if UNS is true and as signed

References ggc_alloc(), double_int::high, double_int::is_negative(), and double_int::low.