Tarval:
[libfirm] / ir / tv / fltcalc.h
index 5e611dc..e58f655 100644 (file)
@@ -1,6 +1,12 @@
 #ifndef _FLTCALC_H_
 #define _FLTCALC_H_
 
+#ifdef USE_LONG_DOUBLE
+typedef long double LLDBL;
+#else
+typedef double LLDBL;
+#endif
+
 enum {
   FC_ADD,
   FC_SUB,
@@ -19,8 +25,8 @@ const void *fc_get_buffer(void);
 const int fc_get_buffer_length(void);
 
 void fc_val_from_str(const char *str, unsigned int len);
-void fc_val_from_float(long double l);
-long double fc_val_to_float(const void *val);
+void fc_val_from_float(LLDBL l);
+LLDBL fc_val_to_float(const void *val);
 
 void fc_get_min(unsigned int num_bits);
 void fc_get_max(unsigned int num_bits);
@@ -28,7 +34,9 @@ void fc_get_nan(void);
 void fc_get_inf(void);
 
 void fc_calc(const void *a, const void *b, int opcode);
-char *fc_print_dec(const void *a);
+char *fc_print_dec(const void *a, char *buf, int buflen);
 int fc_comp(const void *a, const void *b);
 
+unsigned char fc_sub_bits(const void *val, unsigned num_bit, unsigned byte_ofs);
+
 #endif /* _FLTCALC_H_ */