(* * Our implementation of big_int. * * ---------------------------------------------------------------- * * This file is part of MetaPRL, a modular, higher order * logical framework that provides a logical programming * environment for OCaml and other languages. * * See the file doc/htmlman/default.html or visit http://metaprl.org/ * for more information. * * Copyright (C) 1998-2005 PRL Group, Cornell University and Caltech * * This library is free software; you can redistribute it and/or * modify it under the terms of the GNU Lesser General Public * License as published by the Free Software Foundation, * version 2.1 of the License. * * This library is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU * Lesser General Public License for more details. * * You should have received a copy of the GNU Lesser General Public * License along with this library; if not, write to the Free Software * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA * * Additional permission is given to link this library with the * OpenSSL project's "OpenSSL" library, and with the OCaml runtime, * and you may distribute the linked executables. See the file * LICENSE.libmojave for more details. * * Author: Jason Hickey *) type big_int val big_int_of_int : int -> big_int (* * Operations. *) val add_big_int : big_int -> big_int -> big_int val sub_big_int : big_int -> big_int -> big_int val mult_big_int : big_int -> big_int -> big_int val div_big_int : big_int -> big_int -> big_int val quo_big_int : big_int -> big_int -> big_int val mod_big_int : big_int -> big_int -> big_int val rem_big_int : big_int -> big_int -> big_int val neg_big_int : big_int -> big_int val abs_big_int : big_int -> big_int (* * Comparisons. *) val eq_big_int : big_int -> big_int -> bool val compare_big_int : big_int -> big_int -> int (* * Conversion. *) val is_integer_big_int : big_int -> bool val integer_big_int : big_int -> int val string_of_big_int : big_int -> string val big_int_of_string : string -> big_int val to_string : big_int -> string val of_string : string -> big_int val to_int32 : big_int -> Int32.t val of_int32 : Int32.t -> big_int (* * Special cases. *) val div10 : big_int -> int * big_int val mult10 : big_int -> big_int val is_zero_big_int : big_int -> bool (* * -*- * Local Variables: * Caml-master: "refiner" * End: * -*- *)