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
cc0a92ac
Commit
cc0a92ac
authored
Sep 09, 2008
by
Michael Beck
Browse files
- finally kicked size_t, both calls return unsigned
[r21776]
parent
7143a9a3
Changes
1
Hide whitespace changes
Inline
Side-by-side
ir/ir/iropt.c
View file @
cc0a92ac
...
...
@@ -1262,8 +1262,8 @@ restart:
if
(
get_mode_arithmetic
(
n_mode
)
==
irma_twos_complement
&&
get_mode_arithmetic
(
a_mode
)
==
irma_ieee754
)
{
/* ConvI(ConvF(I)) -> I, iff float mantissa >= int mode */
size_t
int_mantissa
=
get_mode_size_bits
(
n_mode
)
-
(
mode_is_signed
(
n_mode
)
?
1
:
0
);
size_t
float_mantissa
=
tarval_ieee754_get_mantissa_size
(
a_mode
);
unsigned
int_mantissa
=
get_mode_size_bits
(
n_mode
)
-
(
mode_is_signed
(
n_mode
)
?
1
:
0
);
unsigned
float_mantissa
=
tarval_ieee754_get_mantissa_size
(
a_mode
);
if
(
float_mantissa
>=
int_mantissa
)
{
n
=
b
;
...
...
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