GCC Middle and Back End API Reference
|
#include <wide-int.h>
Public Member Functions | |
wide_int_ref_storage () | |
wide_int_ref_storage (const wi::storage_ref &) | |
template<typename T> | |
wide_int_ref_storage (const T &) | |
template<typename T> | |
wide_int_ref_storage (const T &, unsigned int) | |
unsigned int | get_len () const |
unsigned int | get_precision () const |
const HOST_WIDE_INT * | get_val () const |
Data Fields | |
const HOST_WIDE_INT * | val |
unsigned int | len |
unsigned int | precision |
Private Attributes | |
HOST_WIDE_INT | scratch [2] |
wi::storage_ref can be a reference to a primitive type, so this is the conservatively-correct setting.
Provide the storage for a wide_int_ref. This acts like a read-only wide_int, with the optimization that VAL is normally a pointer to another integer's storage, so that no array copy is needed.
|
inline |
|
inline |
Create a reference from an existing reference.
References wi::storage_ref::storage_ref().
|
inline |
Create a reference to integer X in its natural precision. Note that the natural precision is host-dependent for primitive types.
References wi::get_precision(), scratch, wi::storage_ref::storage_ref(), and T.
|
inline |
Create a reference to integer X in precision PRECISION.
References decompose(), wi::storage_ref::precision, scratch, wi::storage_ref::storage_ref(), and T.
|
inlineinherited |
References len.
Referenced by alloc_dw_wide_int(), wi::divmod_internal(), immed_wide_int_const_1(), wi::to_mpz(), and wide_int_to_tree_1().
|
inlineinherited |
References precision.
Referenced by alloc_dw_wide_int(), build_poly_int_cst(), immed_wide_int_const(), immed_wide_int_const_1(), print_hex(), real_from_integer(), and wi::to_mpz().
|
inlineinherited |
References val.
Referenced by alloc_dw_wide_int(), wi::divmod_internal(), and wi::to_mpz().
|
inherited |
Referenced by wi::clrsb(), wi::clz(), wi::ctz(), wi::exact_log2(), wide_int_storage::from(), get_len(), and wi::popcount().
|
inherited |
|
private |
Referenced by wide_int_ref_storage(), and wide_int_ref_storage().
|
inherited |
Referenced by wi::ctz(), wi::exact_log2(), wide_int_storage::from(), get_val(), and wi::popcount().