| 1 |
(* Copyright (C) 2009,2019 Matthew Fluet. |
| 2 |
* Copyright (C) 1999-2006 Henry Cejtin, Matthew Fluet, Suresh |
| 3 |
* Jagannathan, and Stephen Weeks. |
| 4 |
* Copyright (C) 1997-2000 NEC Research Institute. |
| 5 |
* |
| 6 |
* MLton is released under a HPND-style license. |
| 7 |
* See the file MLton-LICENSE for details. |
| 8 |
*) |
| 9 |
|
| 10 |
(* Dummy implementation that will not be used at run-time. *) |
| 11 |
structure PackReal64Big : PACK_REAL where type real = Real64.real = struct |
| 12 |
type real = Real64.real |
| 13 |
val bytesPerElem = 8 |
| 14 |
val isBigEndian = true |
| 15 |
fun toBytes _ = raise Fail "PackReal64Big.toBytes" |
| 16 |
fun fromBytes _ = raise Fail "PackReal64Big.fromBytes" |
| 17 |
fun subVec _ = raise Fail "PackReal64Big.subVec" |
| 18 |
fun subArr _ = raise Fail "PackReal64Big.subArr" |
| 19 |
fun update _ = raise Fail "PackReal64Big.update" |
| 20 |
end |
| 21 |
(* Dummy implementation that will not be used at run-time. *) |
| 22 |
structure PackReal64Little : PACK_REAL where type real = Real64.real = struct |
| 23 |
type real = Real64.real |
| 24 |
val bytesPerElem = 8 |
| 25 |
val isBigEndian = false |
| 26 |
fun toBytes _ = raise Fail "PackReal64Little.toBytes" |
| 27 |
fun fromBytes _ = raise Fail "PackReal64Little.fromBytes" |
| 28 |
fun subVec _ = raise Fail "PackReal64Little.subVec" |
| 29 |
fun subArr _ = raise Fail "PackReal64Little.subArr" |
| 30 |
fun update _ = raise Fail "PackReal64Little.update" |
| 31 |
end |