658bf9c21e9e20f9a843ff8ea2bf38b9322066a7
[libfirm] / ir / tv / tv_t.h
1 /* Declarations for Target Values.
2    Copyright (C) 1995, 1996 Christian von Roques */
3
4 /* $Id$ */
5
6 #ifndef _TV_T_H_
7 #define _TV_T_H_
8
9 # include "tv.h"
10 # include "misc.h"
11
12 #include "gmp.h"
13 #undef __need_size_t            /* erroneously defined by 1.3.2's gmp.h */
14
15
16 tarval *tarval_S_from_str (const char *s, size_t len);
17 tarval *tarval_s_from_str (const char *s, size_t len);
18 tarval *tarval_B_from_str (const char *s, size_t len);
19 tarval_B tv_val_B (tarval *tv);
20 tarval_s tv_val_s (tarval *tv);
21
22
23 int tarval_print (XP_PAR1, const xprintf_info *, XP_PARN);
24
25 /* Hash function on tarvals */
26 unsigned tarval_hash (tarval *);
27
28
29 #ifdef NDEBUG
30 #define TARVAL_VRFY(val) ((void)0)
31 #else
32 #define TARVAL_VRFY(val) _tarval_vrfy ((val))
33 extern void _tarval_vrfy (const tarval *);
34 #endif
35
36 #ifdef STATS
37 void tarval_stats (void);
38 #else
39 #define tarval_stats() ((void)0)
40 #endif
41
42 #endif /* _TV_T_H_ */