File: unsigned.h

package info (click to toggle)
nacl 20110221-4
  • links: PTS
  • area: main
  • in suites: wheezy
  • size: 4,264 kB
  • sloc: asm: 19,669; ansic: 13,199; cpp: 1,125; sh: 793; makefile: 72
file content (17 lines) | stat: -rw-r--r-- 251 bytes parent folder | download | duplicates (8)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
#define DOIT(bits,target) \
int main() \
{ \
  target x; \
  int i; \
 \
  x = 1; \
  for (i = 0;i < bits;++i) { \
    if (x == 0) return 100; \
    x += x; \
  } \
  if (x != 0) return 100; \
  x -= 1; \
  if (x < 0) return 100; \
 \
  return 0; \
}