GCC Middle and Back End API Reference
wi::primitive_int_traits< T, signed_p > Struct Template Reference

#include <wide-int.h>

Inheritance diagram for wi::primitive_int_traits< T, signed_p >:

Static Public Member Functions

static unsigned int get_precision (T)
 
static wi::storage_ref decompose (HOST_WIDE_INT *, unsigned int, T)
 

Static Public Attributes

static enum precision_type precision_type = FLEXIBLE_PRECISION
 
static const bool host_dependent_precision = true
 
static const bool is_sign_extended = true
 
static const bool needs_write_val_arg = false
 

Member Function Documentation

◆ decompose()

template<typename T , bool signed_p>
wi::storage_ref wi::primitive_int_traits< T, signed_p >::decompose ( HOST_WIDE_INT * scratch,
unsigned int precision,
T x )
inlinestatic

◆ get_precision()

template<typename T , bool signed_p>
unsigned int wi::primitive_int_traits< T, signed_p >::get_precision ( T )
inlinestatic

References CHAR_BIT, and T.

Field Documentation

◆ host_dependent_precision

template<typename T , bool signed_p>
const bool wi::primitive_int_traits< T, signed_p >::host_dependent_precision = true
static

◆ is_sign_extended

template<typename T , bool signed_p>
const bool wi::primitive_int_traits< T, signed_p >::is_sign_extended = true
static

◆ needs_write_val_arg

template<typename T , bool signed_p>
const bool wi::primitive_int_traits< T, signed_p >::needs_write_val_arg = false
static

◆ precision_type

template<typename T , bool signed_p>
enum precision_type wi::primitive_int_traits< T, signed_p >::precision_type = FLEXIBLE_PRECISION
static

The documentation for this struct was generated from the following file: