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
/
rot.c
1
#include <stdio.h>
2
3
int main(int argc, char **argv) {
4
printf("Result: %d (should be 42)\n", rot(21,1));
5
6
return 0;
7
}
8
9
unsigned rot(unsigned x, unsigned y)
10
{
11
return x << y | x >> (32-y);
12
}