/usr/include/xc_config.h is in libxc-dev 2.1.1-1.
This file is owned by root:root, with mode 0o644.
The actual contents of the file can be viewed below.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 | #ifdef SINGLE_PRECISION
# define FLOAT float
# define POW powf
# define LOG logf
# define ABS fabsf
# define EXP expf
# define ERF erff
# define ERFC erfcf
# define SIN sinf
# define COS cosf
# define TAN tanf
# define ATAN atanf
# define ATAN2 atan2f
# define ASINH asinhf
#ifdef HAVE_SQRTF
# define SQRT sqrtf
#else
# define SQRT sqrt
#endif
#ifdef HAVE_CBRTF
#define CBRT cbrtf
#elif defined(HAVE_CBRT)
#define CBRT cbrt
#else
#define CBRT(x) powf((x), 1.0/3.0)
#endif
# define XC(x) xc_s_ ## x
# define XC_U(X) XC_S_ ## X
# define FLOAT_EPSILON FLT_EPSILON
# define FLOAT_MIN FLT_MIN
# define FLOAT_MAX FLT_MAX
#else
/* Double precision */
# define FLOAT double
# define POW pow
# define LOG log
# define ABS fabs
# define EXP exp
# define ERF erf
# define ERFC erfc
# define SIN sin
# define COS cos
# define TAN tan
# define ATAN atan
# define ATAN2 atan2
# define ASINH asinh
# define SQRT sqrt
#ifdef HAVE_CBRT
#define CBRT cbrt
#else
#define CBRT(x) pow((x), 1.0/3.0)
#endif
# define XC(x) xc_ ## x
# define XC_U(X) XC_ ## X
# define FLOAT_EPSILON DBL_EPSILON
# define FLOAT_MIN DBL_MIN
# define FLOAT_MAX DBL_MAX
#endif
#define XC_FC_FUNC2(a,b) FC_FUNC_(a,b)
#define XC_FC_FUNC(a,b) XC_FC_FUNC2(XC(a), XC_U(b))
|