ClampToSignedInteger extension

This extension will clamp the integer value to the appropriate bit-width

Getters for some standard bit-width values are not modularised for minimum overhead

on

Properties

int4 int

Available on int, provided by the ClampToSignedInteger extension

Convert the value to a 4-bit Signed Integer
no setter
int8 int

Available on int, provided by the ClampToSignedInteger extension

Convert the value to a 8-bit Signed Integer
no setter
int16 int

Available on int, provided by the ClampToSignedInteger extension

Convert the value to a 16-bit Signed Integer
no setter
int32 int

Available on int, provided by the ClampToSignedInteger extension

Convert the value to a 32-bit Signed Integer
no setter

Methods

intX(int bitWidth) int

Available on int, provided by the ClampToSignedInteger extension

Convert the value to a Signed Integer having a bitWidth from 2 to 64