You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

26 lines
324 B

5 years ago
#ifndef UTILS_H
#define UTILS_H
#define USE_DBL
#ifdef USE_DBL
typedef double myflt;
typedef long myint;
#else
typedef float myflt;
typedef int myint;
#endif
#define INP2MYFLT(x) *((myflt*)(&x))
#ifdef USE_DBL
#define PARSE toLong(Q_NULLPTR, 16)
#else
#define PARSE toInt(Q_NULLPTR, 16)
#endif
#endif // UTILS_H