Debian Codegraph @

lib/stubs/smlnj/basis/pack-real32.sml

raw
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 PackReal32Big : PACK_REAL where type real = Real32.real = struct
12 type real = Real32.real
13 val bytesPerElem = 4
14 val isBigEndian = true
15 fun toBytes _ = raise Fail "PackReal32Big.toBytes"
16 fun fromBytes _ = raise Fail "PackReal32Big.fromBytes"
17 fun subVec _ = raise Fail "PackReal32Big.subVec"
18 fun subArr _ = raise Fail "PackReal32Big.subArr"
19 fun update _ = raise Fail "PackReal32Big.update"
20 end
21 (* Dummy implementation that will not be used at run-time. *)
22 structure PackReal32Little : PACK_REAL where type real = Real32.real = struct
23 type real = Real32.real
24 val bytesPerElem = 4
25 val isBigEndian = false
26 fun toBytes _ = raise Fail "PackReal32Little.toBytes"
27 fun fromBytes _ = raise Fail "PackReal32Little.fromBytes"
28 fun subVec _ = raise Fail "PackReal32Little.subVec"
29 fun subArr _ = raise Fail "PackReal32Little.subArr"
30 fun update _ = raise Fail "PackReal32Little.update"
31 end