| 1 | (* Copyright (C) 2002-2007 Henry Cejtin, Matthew Fluet, Suresh |
| 2 | * Jagannathan, and Stephen Weeks. |
| 3 | * |
| 4 | * MLton is released under a BSD-style license. |
| 5 | * See the file MLton-LICENSE for details. |
| 6 | *) |
| 7 | |
| 8 | signature MLTON_INT_INF = |
| 9 | sig |
| 10 | type t |
| 11 | |
| 12 | val areSmall: t * t -> bool |
| 13 | val gcd: t * t -> t |
| 14 | val isSmall: t -> bool |
| 15 | |
| 16 | structure BigWord : WORD |
| 17 | structure SmallInt : INTEGER |
| 18 | datatype rep = |
| 19 | Big of BigWord.word vector |
| 20 | | Small of SmallInt.int |
| 21 | val rep: t -> rep |
| 22 | val fromRep: rep -> t option |
| 23 | end |