CUTLASS
CUDA Templates for Linear Algebra Subroutines and Solvers
|
4-bit signed integer type
#include <integer_subbyte.h>
Public Types | |
using | T = typename std::conditional< kSigned, int, unsigned >::type |
External type. More... | |
using | Storage = uint8_t |
Storage type. More... | |
Public Member Functions | |
CUTLASS_HOST_DEVICE | integer_subbyte () |
No operation. More... | |
CUTLASS_HOST_DEVICE | integer_subbyte (int value) |
Conversion from integer type. More... | |
CUTLASS_HOST_DEVICE | integer_subbyte (unsigned value) |
CUTLASS_HOST_DEVICE | integer_subbyte (double value) |
Conversion from double. More... | |
CUTLASS_HOST_DEVICE | operator T () const |
CUTLASS_HOST_DEVICE bool | operator== (integer_subbyte const &rhs) const |
Equality. More... | |
CUTLASS_HOST_DEVICE bool | operator!= (integer_subbyte const &rhs) const |
Inequality. More... | |
CUTLASS_HOST_DEVICE bool | operator<= (integer_subbyte const &rhs) const |
Less than or equal. More... | |
CUTLASS_HOST_DEVICE bool | operator< (integer_subbyte const &rhs) const |
Less than. More... | |
CUTLASS_HOST_DEVICE bool | operator>= (integer_subbyte const &rhs) const |
Greater than or equal. More... | |
CUTLASS_HOST_DEVICE bool | operator> (integer_subbyte const &rhs) const |
Greater than. More... | |
Public Attributes | |
Storage | storage |
Static Public Attributes | |
static int const | kBits = Bits |
Number of bits. More... | |
static bool const | kSigned = Signed |
Whether type is signed. More... | |
static Storage const | kMask = Storage((1 << kBits) - 1) |
Bitmask used to truncate from larger integers. More... | |
using cutlass::integer_subbyte< Bits, Signed >::Storage = uint8_t |
using cutlass::integer_subbyte< Bits, Signed >::T = typename std::conditional<kSigned, int, unsigned>::type |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
static |
|
static |
|
static |
Storage cutlass::integer_subbyte< Bits, Signed >::storage |