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
13aa0f6d
Commit
13aa0f6d
authored
Nov 21, 2013
by
Matthias Braun
Browse files
fltcalc: fix/simplify: explicit_one is only about packed format
parent
e2b0d2e7
Changes
1
Hide whitespace changes
Inline
Side-by-side
ir/tv/fltcalc.c
View file @
13aa0f6d
...
...
@@ -873,10 +873,10 @@ fp_value *fc_cast(const fp_value *value, const float_descriptor_t *desc,
assert
(
value
!=
result
);
if
(
value
->
desc
.
exponent_size
==
desc
->
exponent_size
&&
value
->
desc
.
mantissa_size
==
desc
->
mantissa_size
&&
value
->
desc
.
explicit_one
==
desc
->
explicit_one
)
{
value
->
desc
.
mantissa_size
==
desc
->
mantissa_size
)
{
if
(
value
!=
result
)
memcpy
(
result
,
value
,
calc_buffer_size
);
result
->
desc
.
explicit_one
=
desc
->
explicit_one
;
return
result
;
}
...
...
@@ -997,7 +997,6 @@ fp_value *fc_get_plusinf(const float_descriptor_t *desc, fp_value *result)
sc_val_from_ulong
(
0
,
mant
);
if
(
desc
->
explicit_one
)
sc_set_bit_at
(
mant
,
result
->
desc
.
mantissa_size
+
ROUNDING_BITS
);
return
result
;
}
...
...
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