home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Monster Media 1994 #1
/
monster.zip
/
monster
/
PROG_C
/
SNIP9404.ZIP
/
ISPOW2.C
< prev
next >
Wrap
C/C++ Source or Header
|
1994-04-03
|
233b
|
13 lines
#include <stdio.h>
int another_function(int x) { return! ((~(~0U>>1)|x)&x -1) ;}
int main(void)
{
int i;
for (i = 0; i < 256; ++i)
printf("%3d: %d\n", i, another_function(i));
return 0;
}