~npalix/coccinelle/upstream

« back to all changes in this revision

Viewing changes to bundles/stdcompat/stdcompat-current/interfaces/4.04/nativeint.mli

  • Committer: Thierry Martinez
  • Date: 2019-08-20 13:37:04 UTC
  • Revision ID: git-v1:0214afad4a32c95349c2c5a38e37cea407c455d0
Update bundles

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
val zero : nativeint
 
2
val one : nativeint
 
3
val minus_one : nativeint
 
4
external neg : nativeint -> nativeint = "%nativeint_neg"
 
5
external add : nativeint -> nativeint -> nativeint = "%nativeint_add"
 
6
external sub : nativeint -> nativeint -> nativeint = "%nativeint_sub"
 
7
external mul : nativeint -> nativeint -> nativeint = "%nativeint_mul"
 
8
external div : nativeint -> nativeint -> nativeint = "%nativeint_div"
 
9
external rem : nativeint -> nativeint -> nativeint = "%nativeint_mod"
 
10
val succ : nativeint -> nativeint
 
11
val pred : nativeint -> nativeint
 
12
val abs : nativeint -> nativeint
 
13
val size : int
 
14
val max_int : nativeint
 
15
val min_int : nativeint
 
16
external logand : nativeint -> nativeint -> nativeint = "%nativeint_and"
 
17
external logor : nativeint -> nativeint -> nativeint = "%nativeint_or"
 
18
external logxor : nativeint -> nativeint -> nativeint = "%nativeint_xor"
 
19
val lognot : nativeint -> nativeint
 
20
external shift_left : nativeint -> int -> nativeint = "%nativeint_lsl"
 
21
external shift_right : nativeint -> int -> nativeint = "%nativeint_asr"
 
22
external shift_right_logical :
 
23
  nativeint -> int -> nativeint = "%nativeint_lsr"
 
24
external of_int : int -> nativeint = "%nativeint_of_int"
 
25
external to_int : nativeint -> int = "%nativeint_to_int"
 
26
external of_float :
 
27
  float -> nativeint = "caml_nativeint_of_float"
 
28
    "caml_nativeint_of_float_unboxed"[@@unboxed ][@@noalloc ]
 
29
external to_float :
 
30
  nativeint -> float = "caml_nativeint_to_float"
 
31
    "caml_nativeint_to_float_unboxed"[@@unboxed ][@@noalloc ]
 
32
external of_int32 : int32 -> nativeint = "%nativeint_of_int32"
 
33
external to_int32 : nativeint -> int32 = "%nativeint_to_int32"
 
34
external of_string : string -> nativeint = "caml_nativeint_of_string"
 
35
val to_string : nativeint -> string
 
36
type t = nativeint
 
37
val compare : t -> t -> int
 
38
val equal : t -> t -> bool
 
39
external format : string -> nativeint -> string = "caml_nativeint_format"