wideIntImpl

Recursive 2^n integer implementation.

struct wideIntImpl (
bool signed
int bits
) {
version(LittleEndian)
low_t lo;
version(LittleEndian)
hi_t hi;
version(!LittleEndian)
hi_t hi;
version(!LittleEndian)
low_t lo;
}

Constructors

this
this(T x)

Construct from a value.

Members

Functions

opAssign
self opAssign(T n)

Assign with a smaller unsigned type.

opAssign
self opAssign(T n)

Assign with a smaller signed type (sign is extended).

opAssign
self opAssign(T n)

Assign with a wide integer of the same size (sign is lost).

opAssign
self opAssign(T n)

Assign with a smaller wide integer (sign is extended accordingly).

opCast
T opCast()

Cast to a smaller integer type (truncation).

opCast
T opCast()

Cast to bool.

opCast
T opCast()

Cast to wide integer of any size.

toString
void toString(DG sink, FormatSpec!Char fmt)

Converts to a string. Supports format specifiers %d, %s (both decimal) and %x (hex).

Templates

literal
template literal(string digits)

Construct from compile-time digit string.

Meta