lib/mlrisc-lib/MLRISC/mltree/mltree-mult.sig
raw| 1 | (* |
| 2 | * Let's generate good multiplication/division code! |
| 3 | * |
| 4 | * -- Allen |
| 5 | *) |
| 6 | signature MLTREE_MULT_DIV = |
| 7 | sig |
| 8 | |
| 9 | structure T : MLTREE |
| 10 | structure C : CELLS |
| 11 | structure I : INSTRUCTIONS (* where C = C *) |
| 12 | |
| 13 | exception TooComplex |
| 14 | |
| 15 | val multiply : {r:CellsBasis.cell,i:int,d:CellsBasis.cell} -> I.instruction list |
| 16 | |
| 17 | val divide : { mode:T.Basis.rounding_mode, |
| 18 | stm :T.stm -> unit |
| 19 | } -> {r:CellsBasis.cell,i:int,d:CellsBasis.cell} -> I.instruction list |
| 20 | |
| 21 | end |