QUDA
1.0.0
|
Go to the source code of this file.
Macros | |
#define | SHORT_LENGTH 65536 |
#define | SCALE_FLOAT ((SHORT_LENGTH-1) * 0.5) |
#define | SHIFT_FLOAT (-1.f / (SHORT_LENGTH-1)) |
Functions | |
template<typename Float > | |
short | FloatToShort (Float a) |
template<typename Float > | |
Float | shortToFloat (short a) |
#define SCALE_FLOAT ((SHORT_LENGTH-1) * 0.5) |
Definition at line 5 of file short.h.
Referenced by FloatToShort(), and shortToFloat().
#define SHIFT_FLOAT (-1.f / (SHORT_LENGTH-1)) |
Definition at line 6 of file short.h.
Referenced by FloatToShort(), and shortToFloat().
|
inline |
Definition at line 9 of file short.h.
References SCALE_FLOAT, and SHIFT_FLOAT.
|
inline |
Definition at line 16 of file short.h.
References SCALE_FLOAT, and SHIFT_FLOAT.