projects
/
libfirm
/ blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
history
|
raw
|
HEAD
Test case for historical reasons
[libfirm]
/
ir
/
be
/
test
/
codegen
/
crafty.c
1
int first_ones[256];
2
3
int FirstOne(unsigned long long arg1)
4
{
5
union doub {
6
unsigned short i[4];
7
unsigned long long d;
8
};
9
union doub x;
10
x.d=arg1;
11
12
if (x.i[3])
13
return (first_ones[x.i[3]]);
14
if (x.i[2])
15
return (first_ones[x.i[2]]+16);
16
if (x.i[1])
17
return (first_ones[x.i[1]]+32);
18
if (x.i[0])
19
return (first_ones[x.i[0]]+48);
20
21
return(64);
22
}