Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Newer
Older
100644 57 lines (52 sloc) 2.401 kB
fccc685 Initial open-source release
MLstate authored
1 (*
2 Copyright © 2011 MLstate
3
4 This file is part of OPA.
5
6 OPA is free software: you can redistribute it and/or modify it under the
7 terms of the GNU Affero General Public License, version 3, as published by
8 the Free Software Foundation.
9
10 OPA is distributed in the hope that it will be useful, but WITHOUT ANY
11 WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS
12 FOR A PARTICULAR PURPOSE. See the GNU Affero General Public License for
13 more details.
14
15 You should have received a copy of the GNU Affero General Public License
16 along with OPA. If not, see <http://www.gnu.org/licenses/>.
17 *)
18 exception Zero
19 val zero : int64
20 val one : int64
21 val minus_one : int64
22 external neg : int64 -> int64 = "%int64_neg"
23 external add : int64 -> int64 -> int64 = "%int64_add"
24 external sub : int64 -> int64 -> int64 = "%int64_sub"
25 external mul : int64 -> int64 -> int64 = "%int64_mul"
26 external div : int64 -> int64 -> int64 = "%int64_div"
27 external rem : int64 -> int64 -> int64 = "%int64_mod"
28 val succ : int64 -> int64
29 val pred : int64 -> int64
30 val abs : int64 -> int64
31 val max_int : int64
32 val min_int : int64
33 external logand : int64 -> int64 -> int64 = "%int64_and"
34 external logor : int64 -> int64 -> int64 = "%int64_or"
35 external logxor : int64 -> int64 -> int64 = "%int64_xor"
36 val lognot : int64 -> int64
37 external shift_left : int64 -> int -> int64 = "%int64_lsl"
38 external shift_right : int64 -> int -> int64 = "%int64_asr"
39 external shift_right_logical : int64 -> int -> int64 = "%int64_lsr"
40 external of_int : int -> int64 = "%int64_of_int"
41 external to_int : int64 -> int = "%int64_to_int"
42 external of_float : float -> int64 = "caml_int64_of_float"
43 external to_float : int64 -> float = "caml_int64_to_float"
44 external of_int32 : int32 -> int64 = "%int64_of_int32"
45 external to_int32 : int64 -> int32 = "%int64_to_int32"
46 external of_nativeint : nativeint -> int64 = "%int64_of_nativeint"
47 external to_nativeint : int64 -> nativeint = "%int64_to_nativeint"
48 external of_string : string -> int64 = "caml_int64_of_string"
49 val to_string : int64 -> string
50 external bits_of_float : float -> int64 = "caml_int64_bits_of_float"
51 external float_of_bits : int64 -> float = "caml_int64_float_of_bits"
52 type t = int64
53 val compare : t -> t -> int
54 external format : string -> int64 -> string = "caml_int64_format"
55 val random : unit -> Int64.t
56 val modulo : int64 -> int64 -> int64
Something went wrong with that request. Please try again.