diff options
author | 2014-04-07 15:45:33 -0400 | |
---|---|---|
committer | 2014-04-09 01:05:48 -0400 | |
commit | 2e8c02d5644e8e8e446ab6dfd832322276e44f89 (patch) | |
tree | 9f7564ac88d210611cbd5fa5cf2de8efad038e36 /kernel/primitives.mli | |
parent | a91518d0b07b9a2cd7d9381044c20365771ec382 (diff) |
Machine arithmetic operations for native compiler.
This completes the port of the native compiler to retroknowledge.
However, some testing and optimizations are still to be done.
Diffstat (limited to 'kernel/primitives.mli')
-rw-r--r-- | kernel/primitives.mli | 39 |
1 files changed, 39 insertions, 0 deletions
diff --git a/kernel/primitives.mli b/kernel/primitives.mli new file mode 100644 index 000000000..1b70a9be8 --- /dev/null +++ b/kernel/primitives.mli @@ -0,0 +1,39 @@ +(************************************************************************) +(* v * The Coq Proof Assistant / The Coq Development Team *) +(* <O___,, * INRIA - CNRS - LIX - LRI - PPS - Copyright 1999-2014 *) +(* \VV/ **************************************************************) +(* // * This file is distributed under the terms of the *) +(* * GNU Lesser General Public License Version 2.1 *) +(************************************************************************) + +type t = + | Int31head0 + | Int31tail0 + | Int31add + | Int31sub + | Int31mul + | Int31div + | Int31mod +(* + | Int31lsr + | Int31lsl + *) + | Int31land + | Int31lor + | Int31lxor + | Int31addc + | Int31subc + | Int31addcarryc + | Int31subcarryc + | Int31mulc + | Int31diveucl + | Int31div21 + | Int31addmuldiv + | Int31eq + | Int31lt + | Int31le + | Int31compare + +val hash : t -> int + +val to_string : t -> string |