]> www.ginac.de Git - cln.git/blob - src/float/lfloat/misc/cl_LF_exponent.cc
Fix linking problems on some platforms caused by inline/non-inline versions
[cln.git] / src / float / lfloat / misc / cl_LF_exponent.cc
1 // float_exponent().
2
3 // General includes.
4 #include "cl_sysdep.h"
5
6 // Specification.
7 #include "cln/lfloat.h"
8
9
10 // Implementation.
11
12 #include "cl_LF.h"
13
14 namespace cln {
15
16 CL_INLINE sintE CL_INLINE_DECL(float_exponent) (const cl_LF& x)
17 {
18         var uintE uexp = TheLfloat(x)->expo;
19         if (uexp==0) { return 0; }
20         return (sintE)(uexp - LF_exp_mid);
21 }
22
23 }  // namespace cln