forked from rescript-lang/rescript
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathcaml_nativeint_extern.ml
19 lines (17 loc) · 1.13 KB
/
caml_nativeint_extern.ml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
external add : nativeint -> nativeint -> nativeint = "%nativeint_add"
external div : nativeint -> nativeint -> nativeint = "%nativeint_div"
external rem : nativeint -> nativeint -> nativeint = "%nativeint_mod"
external logor : nativeint -> nativeint -> nativeint = "%nativeint_or"
external shift_left : nativeint -> int -> nativeint = "%nativeint_lsl"
external logand : nativeint -> nativeint -> nativeint = "%nativeint_and"
external shift_right_logical : nativeint -> int -> nativeint = "%nativeint_lsr"
external shift_right : nativeint -> int -> nativeint = "%nativeint_asr"
external mul : nativeint -> nativeint -> nativeint = "%nativeint_mul"
external logxor : nativeint -> nativeint -> nativeint = "%nativeint_xor"
external to_float : nativeint -> float = "caml_nativeint_to_float"
external of_float : float -> nativeint = "caml_nativeint_of_float"
external to_int : nativeint -> int = "%nativeint_to_int"
external to_int32 : nativeint -> int32 = "%nativeint_to_int32"
external of_int : int -> nativeint = "%nativeint_of_int"
external neg : nativeint -> nativeint = "%nativeint_neg"
external to_string : nativeint -> string = "String" [@@bs.val]