Program Listing for File utils.hpp¶
↰ Return to documentation for file (/home/docs/checkouts/readthedocs.org/user_builds/intel-qs/checkouts/latest/include/utils.hpp
)
#ifndef IQS_UTILS_HPP
#define IQS_UTILS_HPP
#include <complex>
// Helpful defines, if not already provided.
#define DO_PRAGMA(x) _Pragma(#x)
#ifndef TODO
#define TODO(x) DO_PRAGMA(message("\033[30;43mTODO\033[0m - " #x))
#endif
#ifndef INFO
#define INFO(x) DO_PRAGMA(message("\033[30;46mINFO\033[0m - " #x))
#endif
#define D(x) ((double)(x))
#define UL(x) ((std::size_t)(x))
#define sec() time_in_seconds()
#define xstr(s) __str__(s)
#define __str__(s) #s
using ComplexSP = std::complex<float>;
using ComplexDP = std::complex<double>;
double time_in_seconds(void);
namespace qhipster {
void WhatCompileDefinitions();
}
#endif // header guard IQS_UTILS_HPP