projects
/
libfirm
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
be: remove unused reg_class_for_mode callback
[libfirm]
/
ir
/
tv
/
fltcalc.c
diff --git
a/ir/tv/fltcalc.c
b/ir/tv/fltcalc.c
index
2d9d9ec
..
c6edcc2
100644
(file)
--- a/
ir/tv/fltcalc.c
+++ b/
ir/tv/fltcalc.c
@@
-22,7
+22,6
@@
* @brief tarval floating point calculations
* @date 2003
* @author Mathias Heil
* @brief tarval floating point calculations
* @date 2003
* @author Mathias Heil
- * @version $Id$
*/
#include "config.h"
*/
#include "config.h"
@@
-787,8
+786,10
@@
static void _trunc(const fp_value *a, fp_value *result)
temp = (char*) alloca(value_size);
temp = (char*) alloca(value_size);
- if (a != result)
+ if (a != result)
{
result->desc = a->desc;
result->desc = a->desc;
+ result->clss = a->clss;
+ }
exp_bias = (1 << (a->desc.exponent_size - 1)) - 1;
exp_val = sc_val_to_long(_exp(a)) - exp_bias;
exp_bias = (1 << (a->desc.exponent_size - 1)) - 1;
exp_val = sc_val_to_long(_exp(a)) - exp_bias;