Skip to content
GitLab
Menu
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
Zwinkau
libfirm
Commits
b02497e2
Commit
b02497e2
authored
Dec 08, 2012
by
Christoph Mallon
Browse files
tv: Correct tarval_abs(): |-0.0| and |-NAN| result in +0.0 and +NAN now.
parent
967b522b
Changes
1
Hide whitespace changes
Inline
Side-by-side
ir/tv/tv.c
View file @
b02497e2
...
...
@@ -1014,8 +1014,7 @@ ir_tarval *tarval_abs(ir_tarval *a)
return
a
;
case
irms_float_number
:
if
(
fc_comp
((
const
fp_value
*
)
a
->
value
,
(
const
fp_value
*
)
get_mode_null
(
a
->
mode
)
->
value
)
==
-
1
)
{
if
(
fc_is_negative
((
fp_value
const
*
)
a
))
{
fc_neg
((
const
fp_value
*
)
a
->
value
,
NULL
);
return
get_tarval_overflow
(
fc_get_buffer
(),
fc_get_buffer_length
(),
a
->
mode
);
}
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment