Expand description
The CPU’s raw word representation and its typed bit conversions.
Functions§
- decode_
bool - Decodes a boolean word. Zero is false and every nonzero word is true.
- decode_
f32 - Decodes an
f32from its IEEE-754 representation in the low 32 bits. - decode_
f64 - Decodes an
f64from its IEEE-754 representation. - decode_
function_ ref - Decodes a numeric function reference.
- decode_
heap_ ref - Decodes a numeric heap reference.
- decode_
i32 - Decodes an
i32from the low 32 bits of a word. - decode_
i64 - Decodes an
i64without changing its bit pattern. - decode_
string_ id - Decodes an interned string identifier.
- decode_
u32 - Decodes a
u32from the low 32 bits of a word. - decode_
u64 - Decodes a
u64without changing its bit pattern. - encode_
bool - Encodes a boolean as its canonical word representation,
0or1. - encode_
f32 - Encodes an
f32using its IEEE-754 representation in the low 32 bits. - encode_
f64 - Encodes an
f64using its IEEE-754 representation. - encode_
function_ ref - Encodes a numeric function reference.
- encode_
heap_ ref - Encodes a numeric heap reference.
- encode_
i32 - Encodes an
i32in the low 32 bits of a word. - encode_
i64 - Encodes an
i64without changing its bit pattern. - encode_
string_ id - Encodes an interned string identifier.
- encode_
u32 - Encodes a
u32in the low 32 bits of a word. - encode_
u64 - Encodes a
u64without changing its bit pattern.
Type Aliases§
- Word
- The value stored by the word-based CPU.