summaryrefslogtreecommitdiffhomepage
path: root/ir/tv
diff options
context:
space:
mode:
authorChristoph Mallon <mallon@cs.uni-saarland.de>2015-02-01 13:00:49 +0100
committerChristoph Mallon <mallon@cs.uni-saarland.de>2015-02-01 13:00:49 +0100
commit1ae0a2867498132967b7bc7bf5f0834e3d4f8a59 (patch)
treecf1caa17128daf21807c55c64f36c5bed6c8fcc8 /ir/tv
parent6de1dfa09f3d91c4f794992ba1e6510b5f3457d8 (diff)
tv: NaN can be negated, too.
Diffstat (limited to 'ir/tv')
-rw-r--r--ir/tv/fltcalc.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/ir/tv/fltcalc.c b/ir/tv/fltcalc.c
index c226581..8699683 100644
--- a/ir/tv/fltcalc.c
+++ b/ir/tv/fltcalc.c
@@ -1084,8 +1084,7 @@ void fc_neg(const fp_value *a, fp_value *result)
{
if (a != result)
memcpy(result, a, fp_value_size);
- if (result->clss != FC_NAN)
- result->sign = !a->sign;
+ result->sign = !a->sign;
}
flt2int_result_t fc_flt2int(const fp_value *a, sc_word *result,