mirror of
https://github.com/c-cube/ocaml-containers.git
synced 2026-03-07 21:27:55 -05:00
CCNativeint(cleanup): cleanup with bump ocaml version to 4.08
This commit is contained in:
parent
571f9f3793
commit
5e60c0d237
2 changed files with 13 additions and 9 deletions
|
|
@ -2,8 +2,13 @@
|
|||
|
||||
include Nativeint
|
||||
|
||||
[@@@iflt 4.13]
|
||||
|
||||
let min : t -> t -> t = Stdlib.min
|
||||
let max : t -> t -> t = Stdlib.max
|
||||
|
||||
[@@@endif]
|
||||
|
||||
let hash x = Stdlib.abs (to_int x)
|
||||
let sign i = compare i zero
|
||||
|
||||
|
|
@ -95,8 +100,7 @@ let random_range i j st = add i (random (sub j i) st)
|
|||
(** {2 Conversion} *)
|
||||
|
||||
let of_string_exn = of_string
|
||||
let of_string x = try Some (of_string_exn x) with Failure _ -> None
|
||||
let of_string_opt = of_string
|
||||
let of_string = of_string_opt
|
||||
let most_significant_bit = logxor (neg 1n) (shift_right_logical (neg 1n) 1)
|
||||
|
||||
type output = char -> unit
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue