]> www.ginac.de Git - cln.git/blob - src/float/base/cl_ieee.h
Replace CL_REQUIRE/CL_PROVIDE(cl_DF_globals) with portable code.
[cln.git] / src / float / base / cl_ieee.h
1 // IEEE floating-point
2
3 #ifndef _CL_IEEE_H
4 #define _CL_IEEE_H
5
6 namespace cln {
7
8 // To make sure that cl_ieee.cc is linked in.
9 // NEED_IEEE_FLOATS()
10 #if (defined(linux) || defined(__linux)) // only needed on Linux
11   #define NEED_IEEE_FLOATS()  \
12     CL_REQUIRE(cl_ieee)                                                 \
13     CL_FORCE_LINK(CONCAT(cl_ieee_dummy_,__LINE__), cl_ieee_module)
14 #else
15   #define NEED_IEEE_FLOATS()
16 #endif
17 extern int cl_ieee_module;
18
19 }  // namespace cln
20
21 #endif /* _CL_IEEE_H */