Next Previous Up Top Contents Index

6.3 The MACHINE-WORDS module

6.3.1 Variables

The following variables are exported from the Machine-Words module.

$machine-word-size

Constant

$machine-word-size :: integer

The number of bits in the representation of a <machine-word>.
$maximum-signed-machine-word

Constant

$maximum-signed-machine-word :: machine-word

The largest machine word, when interpreted as a signed integer value.

$minimum-signed-machine-word

Constant

$minimum-signed-machine-word :: machine-word

The smallest machine word, when interpreted as a signed integer value.

$maximum-unsigned-machine-word

Constant

$maximum-unsigned-machine-word :: machine-word 

The largest machine word, when interpreted as an unsigned integer value.

$minimum-unsigned-machine-word

Constant

$minimum-unsigned-machine-word :: machine-word

The smallest machine word, when interpreted as an unsigned integer value.

as-unsigned

Function

as-unsigned (t :: type, m :: machine-word) => result

The value of m is interpreted as an unsigned value and converted to an instance of <abstract-integer>, then the result of that conversion is converted to type t using as.

Common Dylan and Functional Extensions - 31 Mar 00

Next Previous Up Top Contents Index