QUDA v0.4.0
A library for QCD on GPUs
Defines | Functions
quda/tests/short.h File Reference

Go to the source code of this file.

Defines

#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 Documentation

#define SCALE_FLOAT   ((SHORT_LENGTH-1) * 0.5)

Definition at line 5 of file short.h.

#define SHIFT_FLOAT   (-1.f / (SHORT_LENGTH-1))

Definition at line 6 of file short.h.

#define SHORT_LENGTH   65536

Definition at line 4 of file short.h.


Function Documentation

template<typename Float >
short FloatToShort ( Float  a) [inline]

Definition at line 9 of file short.h.

template<typename Float >
Float shortToFloat ( short  a) [inline]

Definition at line 16 of file short.h.

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Defines