A helper for RegType.
Function or value | Description |
|
|
Full Usage:
RegType.double t
Parameters:
RegType
-
RegType.
Returns: int<MeasureProduct<rt, MeasureOne>>
A RegType.
|
|
Full Usage:
RegType.fromBitWidth n
Parameters:
int
-
Bit width in integer.
Returns: int<MeasureProduct<rt, MeasureOne>>
A RegType.
|
Get the corresponding integer RegType from the given bit width. When a negative integer is given, it will return a floating point type.
|
Full Usage:
RegType.fromByteWidth n
Parameters:
int
-
Byte width in integer.
Returns: int<MeasureProduct<rt, MeasureOne>>
A RegType.
|
|
Full Usage:
RegType.getMask t
Parameters:
int<MeasureProduct<rt, MeasureOne>>
Returns: bigint
A bit mask in big integer.
|
|
Full Usage:
RegType.isFP t
Parameters:
RegType
-
RegType.
Returns: bool
A Boolean value that is true if the given RegType is a floating-point
type, false otherwise.
|
|
Full Usage:
RegType.toBitWidth t
Parameters:
RegType
-
RegType.
Returns: int
A bit width in integer of the given RegType.
|
|
Full Usage:
RegType.toByteWidth t
Parameters:
RegType
-
RegType.
Returns: int
A byte width in integer of the given RegType.
|
|
Full Usage:
RegType.toString t
Parameters:
RegType
-
RegType.
Returns: string
A string representation for RegType. For example, I32 means a 32-bit
integer type.
|
|