]> www.ginac.de Git - cln.git/blob - src/float/dfloat/misc/cl_DF_precision.cc
5bafcedd27355cb8e746b13d87696776761436ef
[cln.git] / src / float / dfloat / misc / cl_DF_precision.cc
1 // float_precision().
2
3 // General includes.
4 #include "cl_sysdep.h"
5
6 // Specification.
7 #include "cln/dfloat.h"
8
9
10 // Implementation.
11
12 #include "cl_DF.h"
13
14 #undef MAYBE_INLINE
15 #define MAYBE_INLINE inline
16 #include "cl_DF_zerop.cc"
17
18 namespace cln {
19
20 MAYBE_INLINE2
21 uintL float_precision (const cl_DF& x)
22 {
23         if (zerop(x)) return 0;
24         return DF_mant_len+1; // 53
25 }
26
27 }  // namespace cln