From e2967396ac73cb7410787886cdaf072a184ffc49 Mon Sep 17 00:00:00 2001 From: irungentoo Date: Tue, 2 Jul 2013 09:53:34 -0400 Subject: Added NaCl crypto library. --- nacl/okcompilers/lib.cpp | 19 +++++++++++++++++++ 1 file changed, 19 insertions(+) create mode 100644 nacl/okcompilers/lib.cpp (limited to 'nacl/okcompilers/lib.cpp') 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 @@ +int not3(int n) +{ + return n != 3; +} + +int bytes(int n) +{ + return (n + 7) / 8; +} + +long long shr32(long long n) +{ + return n >> 32; +} + +double double5(void) +{ + return 5.0; +} -- cgit v1.2.3