aboutsummaryrefslogtreecommitdiff
path: root/lib/int.ml
blob: 19cdfac0a6e88e6ac3d42e803d589d7826e64d2b (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
(************************************************************************)
(*  v      *   The Coq Proof Assistant  /  The Coq Development Team     *)
(* <O___,, *   INRIA - CNRS - LIX - LRI - PPS - Copyright 1999-2012     *)
(*   \VV/  **************************************************************)
(*    //   *      This file is distributed under the terms of the       *)
(*         *       GNU Lesser General Public License Version 2.1        *)
(************************************************************************)

type t = int

external equal : int -> int -> bool = "%eq"

external compare : int -> int -> int = "caml_int_compare"

let hash i = i land max_int