921e5a0eb4
From-SVN: r14840
31 lines
288 B
C
31 lines
288 B
C
barfoo (a)
|
|
{
|
|
return (a << 16) & ~0xffff;
|
|
}
|
|
|
|
foobar (a)
|
|
{
|
|
return ((unsigned short) a) << 15;}
|
|
|
|
foo (a)
|
|
{
|
|
return (a & 0x121) << 31;
|
|
}
|
|
|
|
bar (a)
|
|
{
|
|
return (a & ~0xffff) << 16;
|
|
}
|
|
|
|
main ()
|
|
{
|
|
int a;
|
|
|
|
for (a = 1; a; a += a)
|
|
{
|
|
printf ("%d", (foo (a)));
|
|
}
|
|
puts ("");
|
|
}
|
|
|