X-Git-Url: http://nsz.repo.hu/git/?a=blobdiff_plain;f=ir%2Ftv%2Ftv_t.h;h=8f6fa3b5aea9ee65430880b9cca4492a1498f4b3;hb=0d61f4e9a295d71deca66e1580273e484e7f0f9f;hp=aa6ea2c90eeb593953823aef85eaa7b960632a09;hpb=f43025532c25319fff5d01e8fa18592d4e9c7c68;p=libfirm diff --git a/ir/tv/tv_t.h b/ir/tv/tv_t.h index aa6ea2c90..8f6fa3b5a 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. @@ -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 tarval *tv) +{ assert(tv); return tv->mode; } -static INLINE tarval * -_get_tarval_bad(void) { +static inline tarval *_get_tarval_bad(void) +{ return tarval_bad; } -static INLINE tarval * -_get_tarval_undefined(void) { +static inline tarval *_get_tarval_undefined(void) +{ return tarval_undefined; } -static INLINE tarval * -_get_tarval_b_false(void) { +static inline tarval *_get_tarval_b_false(void) +{ return tarval_b_false; } -static INLINE tarval * -_get_tarval_b_true(void) { +static inline tarval *_get_tarval_b_true(void) +{ return tarval_b_true; } -static INLINE tarval * -_get_tarval_reachable(void) { +static inline tarval *_get_tarval_reachable(void) +{ return tarval_reachable; } -static INLINE tarval * -_get_tarval_unreachable(void) { +static inline 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 */