projects
/
libfirm
/ blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
history
|
raw
|
HEAD
Added getter for non address mode heuristic.
[libfirm]
/
ir
/
be
/
test
/
fehler147.c
1
float g = 0.098;
2
3
#define myftol(x) ((int)(x))
4
5
void foo(unsigned char *colors) {
6
int v;
7
float glow = g;
8
9
v = myftol(255*glow);
10
colors[0] = colors[1] = colors[2] = v;
11
}
12
13
int main(void) {
14
unsigned char colors[3];
15
foo(colors);
16
printf("%d %d %d\n", colors[0], colors[1], colors[2]);
17
return 0;
18
}