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
f35117c9
Commit
f35117c9
authored
Nov 02, 2011
by
Matthias Braun
Browse files
tv: fix float->int conversion problems
(they were introduced when moving value_classes out of the descriptor)
parent
f44be6a4
Changes
1
Hide whitespace changes
Inline
Side-by-side
ir/tv/fltcalc.c
View file @
f35117c9
...
...
@@ -787,8 +787,10 @@ static void _trunc(const fp_value *a, fp_value *result)
temp
=
(
char
*
)
alloca
(
value_size
);
if
(
a
!=
result
)
if
(
a
!=
result
)
{
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
;
...
...
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