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
eaee22dd
Commit
eaee22dd
authored
Sep 06, 2006
by
Sebastian Hack
Browse files
Fixed a bug concerning integer translation
[r8184]
parent
e32a7ad5
Changes
1
Hide whitespace changes
Inline
Side-by-side
ir/ana/execfreq.c
View file @
eaee22dd
...
...
@@ -275,13 +275,13 @@ compute_execfreq(ir_graph * irg, double loop_weight)
/* compute m and b of the transformation used to convert the doubles into scaled ints */
{
/*
double l1 = 1
; */
double
l1
=
1
.
0
;
double
h1
=
MAX_INT_FREQ
;
double
l2
=
ef
->
min_non_zero
;
double
h2
=
ef
->
max
;
ef
->
m
=
(
h1
/*
- l1
*/
)
/
(
h2
-
l2
);
ef
->
b
=
(
/*
l1 *
*/
h2
-
l2
*
h1
)
/
(
h2
-
l2
);
ef
->
m
=
(
h1
-
l1
)
/
(
h2
-
l2
);
ef
->
b
=
(
l1
*
h2
-
l2
*
h1
)
/
(
h2
-
l2
);
}
#ifdef USE_GSL
...
...
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