Module onescomplement

Module onescomplement 

Source
Expand description

This module implements one’s complement fixed-width signed types for use in emulating the TX-2, plus related unsigned types of the same width.

Modules§

error
Basic error reporting.
signed 🔒
unsigned 🔒
This is an implementation of unsigned types of various bit widths which accompanies the signed one’s-complement types. Since these types are unsigned, there is no sign bit and they aren’t really one’s-complement types. But the interface to these is mostly similar to that of the signed (real one’s-complement) types.

Enums§

Signum 🔒
The sign of a number (mathematically, sgn(x)). Although in a one’s-complement system all values have a sign, we treat zero specially in order to simplify working with native types and one’s-complement types together.

Traits§

WordCommon 🔒
Trait common to both signed one’s-complement types (defined in the signed module) and unsigned types (defined in the unsigned module).