blob: 01533baa91d3bb8ba584ff2f26b75bb1cad2fdd2 (
plain)
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
|
#ifndef __NONSTD_TGMATH_H__
#define __NONSTD_TGMATH_H__
#include <math.h>
#ifdef TGSOURCE
# if (defined __STDC_VERSION__ && __STDC_VERSION__ >= 199901L)
# define TGFN(x) x##f
# define TYPE float
# define TGHUGE HUGE_VALF
# include TGSOURCE
# undef TGFN
# undef TYPE
# undef TGHUGE
# define TGFN(x) x##l
# define TYPE long double
# define TGHUGE HUGE_VALL
# include TGSOURCE
# undef TGFN
# undef TYPE
# undef TGHUGE
# endif
#endif
#define TGFN(x) x
#define TYPE double
#define TGHUGE HUGE_VAL
#endif
|