From 5c29185ff3a42b50a593e0fcc4af7ed22f84eb41 Mon Sep 17 00:00:00 2001 From: Michael Beck Date: Tue, 24 Jul 2007 16:56:34 +0000 Subject: [PATCH] tarval_ieee754_set_immediate_precision(), tarval_enable_fp_ops() added [r15326] --- include/libfirm/tv.h | 14 ++++++++++++++ 1 file changed, 14 insertions(+) diff --git a/include/libfirm/tv.h b/include/libfirm/tv.h index f43f2733e..f41a42cb0 100644 --- a/include/libfirm/tv.h +++ b/include/libfirm/tv.h @@ -600,4 +600,18 @@ int tarval_ieee754_zero_mantissa(tarval *tv); */ int tarval_ieee754_get_exponent(tarval *tv); +/** + * Set the immediate precision for IEEE-754 results. Set this to + * 0 to get the same precision as the operands. + * For x87 compatibility, set this to 80. + * + * @return the old setting + */ +unsigned tarval_ieee754_set_immediate_precision(unsigned bits); + +/** + * Enable/Disable floating point constant folding. + */ +int tarval_enable_fp_ops(int enable); + #endif /* FIRM_TV_TV_H */ -- 2.20.1