diff options
author | irungentoo <irungentoo@gmail.com> | 2013-07-02 09:53:34 -0400 |
---|---|---|
committer | irungentoo <irungentoo@gmail.com> | 2013-07-02 09:53:34 -0400 |
commit | e2967396ac73cb7410787886cdaf072a184ffc49 (patch) | |
tree | 527a74d25a4a0705fc641994fd35bfab22662034 /nacl/okcompilers/lib.cpp | |
parent | 8928c817df345f29aa0b194743595aa11bd6a8ba (diff) |
Added NaCl crypto library.
Diffstat (limited to 'nacl/okcompilers/lib.cpp')
-rw-r--r-- | nacl/okcompilers/lib.cpp | 19 |
1 files changed, 19 insertions, 0 deletions
diff --git a/nacl/okcompilers/lib.cpp b/nacl/okcompilers/lib.cpp new file mode 100644 index 00000000..ea956244 --- /dev/null +++ b/nacl/okcompilers/lib.cpp | |||
@@ -0,0 +1,19 @@ | |||
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 | } | ||