diff options
Diffstat (limited to 'nacl/okcompilers/lib.c')
-rw-r--r-- | nacl/okcompilers/lib.c | 29 |
1 files changed, 29 insertions, 0 deletions
diff --git a/nacl/okcompilers/lib.c b/nacl/okcompilers/lib.c new file mode 100644 index 00000000..cf2e3790 --- /dev/null +++ b/nacl/okcompilers/lib.c | |||
@@ -0,0 +1,29 @@ | |||
1 | int not3(int n) | ||
2 | { | ||
3 | return n != 3; | ||
4 | } | ||
5 | |||
6 | int bytes(int n) | ||
7 | { | ||
8 | return (n + 7) / 8; | ||
9 | } | ||
10 | |||
11 | long long shr32(long long n) | ||
12 | { | ||
13 | return n >> 32; | ||
14 | } | ||
15 | |||
16 | double double5(void) | ||
17 | { | ||
18 | return 5.0; | ||
19 | } | ||
20 | |||
21 | int intbytes(void) | ||
22 | { | ||
23 | return sizeof(int); | ||
24 | } | ||
25 | |||
26 | int longbytes(void) | ||
27 | { | ||
28 | return sizeof(long); | ||
29 | } | ||