chore(ccnativeint): clean CCNativeint.mli

Remove duplicate functions from Infix and Nativeint
This commit is contained in:
Fardale 2020-05-23 00:15:09 +02:00
parent 1fec2f0f96
commit f2c0bc7d09

View file

@ -18,6 +18,7 @@
include module type of struct include Nativeint end
module Infix : sig
val ( + ) : t -> t -> t
(** Addition. *)
@ -71,20 +72,6 @@ val ( asr ) : t -> int -> t
and inserted in the vacated bits.
The result is unspecified if [y < 0] or [y >= bitsize]. *)
module Infix : sig
val (+) : t -> t -> t
val (-) : t -> t -> t
val (~-) : t -> t
val ( * ) : t -> t -> t
val (/) : t -> t -> t
val (mod) : t -> t -> t
val (land) : t -> t -> t
val (lor) : t -> t -> t
val (lxor) : t -> t -> t
val lnot : t -> t
val (lsl) : t -> int -> t
val (lsr) : t -> int -> t
val (asr) : t -> int -> t
val (=) : t -> t -> bool
val (<>) : t -> t -> bool
val (>) : t -> t -> bool
@ -98,28 +85,6 @@ val hash : t -> int
(** {2 Conversion} *)
val to_int : t -> int
(** Convert the given native integer (type [nativeint]) to an
integer (type [int]). The high-order bit is lost
during the conversion. *)
val of_int : int -> t
(** Alias to {!Nativeint.of_int}.
Convert the given integer (type [int]) to a native integer (type [nativeint]). *)
val to_float : t -> float
(** Convert the given native integer to a floating-point number. *)
val of_float : float -> t
(** Alias to {!Nativeint.of_float}.
Convert the given floating-point number to a native integer,
discarding the fractional part (truncate towards 0).
The result of the conversion is undefined if, after truncation, the number
is outside the range \[{!CCNativeint.min_int}, {!CCNativeint.max_int}\]. *)
val to_string : t -> string
(** Return the string representation of its argument, in decimal. *)
val of_string_exn : string -> t
(** Alias to {!Nativeint.of_string}.
Convert the given string to a native integer.