std.experimental.normint

This module implements support for normalized integers.

Members

Enums

BitsSMax
eponymoustemplate BitsSMax(size_t n)
Undocumented in source.
BitsUMax
eponymoustemplate BitsUMax(size_t n)
Undocumented in source.
SignBit
eponymoustemplate SignBit(size_t n)
Undocumented in source.
isNormalizedIntegralType
eponymoustemplate isNormalizedIntegralType(I)

Check if I is a valid NormalizedInt type. Valid integers are (u)byte, (u)short, (u)int. (u)long is not supported.

Functions

convertNormBits
T convertNormBits(S v)
Undocumented in source. Be warned that the author may not have intended to support it.
convertNormInt
To convertNormInt(From i)

Convert values between normalized integer types.

floatToNormBits
T floatToNormBits(F f)
Undocumented in source. Be warned that the author may not have intended to support it.
floatToNormInt
To floatToNormInt(From f)

Convert a float to a normalized integer.

normBitsToFloat
F normBitsToFloat(uint v)
Undocumented in source. Be warned that the author may not have intended to support it.
normIntToFloat
To normIntToFloat(From i)

Convert a normalized integer to a float.

Structs

NormalizedInt
struct NormalizedInt(I)

Normalized integers express a fractional range of values within an integer data type.

Templates

FloatTypeFor
template FloatTypeFor(IntType, RequestedFloat = float)
Undocumented in source.

Meta

Authors

Manu Evans