X-Git-Url: http://nsz.repo.hu/git/?a=blobdiff_plain;f=ir%2Ftv%2Ftv_t.h;h=979b56e55f62b02864e94dfc9ba299e0c0378e44;hb=b50ba7aa16edbf7d978c182d90b2e5f08c6f6a56;hp=aa6ea2c90eeb593953823aef85eaa7b960632a09;hpb=f43025532c25319fff5d01e8fa18592d4e9c7c68;p=libfirm diff --git a/ir/tv/tv_t.h b/ir/tv/tv_t.h index aa6ea2c90..979b56e55 100644 --- a/ir/tv/tv_t.h +++ b/ir/tv/tv_t.h @@ -28,7 +28,6 @@ #ifndef FIRM_TV_TV_T_H #define FIRM_TV_TV_T_H -#include "firm_config.h" #include "firm_common.h" #include @@ -50,9 +49,12 @@ enum reserved_id { * * Call before init_mode(). * - * @param null_value The reference mode NULL value, typical 0l + * @param null_value + * The reference mode NULL value, typical 0l + * @param support_quad_precision + * If non-zero, activate support for quad precision */ -void init_tarval_1(long null_value); +void init_tarval_1(long null_value, int support_quad_precision); /** * Initialization of the tarval module. @@ -79,7 +81,7 @@ void finish_tarval(void); * @sa * irmode.h for predefined modes */ -struct tarval { +struct ir_tarval { firm_kind kind; /**< must be k_tarval */ ir_mode *mode; /**< the mode of the stored value */ const void *value; /**< the value stored in an internal way... */ @@ -90,44 +92,44 @@ struct tarval { /* * Access routines for tarval fields ======================================== */ -static INLINE ir_mode * -_get_tarval_mode(const tarval *tv) { +static inline ir_mode *_get_tarval_mode(const ir_tarval *tv) +{ assert(tv); return tv->mode; } -static INLINE tarval * -_get_tarval_bad(void) { +static inline ir_tarval *_get_tarval_bad(void) +{ return tarval_bad; } -static INLINE tarval * -_get_tarval_undefined(void) { +static inline ir_tarval *_get_tarval_undefined(void) +{ return tarval_undefined; } -static INLINE tarval * -_get_tarval_b_false(void) { +static inline ir_tarval *_get_tarval_b_false(void) +{ return tarval_b_false; } -static INLINE tarval * -_get_tarval_b_true(void) { +static inline ir_tarval *_get_tarval_b_true(void) +{ return tarval_b_true; } -static INLINE tarval * -_get_tarval_reachable(void) { +static inline ir_tarval *_get_tarval_reachable(void) +{ return tarval_reachable; } -static INLINE tarval * -_get_tarval_unreachable(void) { +static inline ir_tarval *_get_tarval_unreachable(void) +{ return tarval_unreachable; } -static INLINE int -_is_tarval(const void *thing) { +static inline int _is_tarval(const void *thing) +{ return get_kind(thing) == k_tarval; } @@ -138,7 +140,6 @@ _is_tarval(const void *thing) { #define get_tarval_b_true() _get_tarval_b_true() #define get_tarval_unreachable() _get_tarval_unreachable() #define get_tarval_reachable() _get_tarval_reachable() -#define get_tarval_P_void() _get_tarval_P_void() #define is_tarval(thing) _is_tarval(thing) #endif /* FIRM_TV_TV_T_H */