]> www.ginac.de Git - cln.git/blob - src/float/lfloat/misc/cl_LF_exponent.cc
2006-04-25 Bruno Haible <bruno@clisp.org>
[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 MAYBE_INLINE
17 sintL float_exponent (const cl_LF& x)
18 {
19         var uintL uexp = TheLfloat(x)->expo;
20         if (uexp==0) { return 0; }
21         return (sintL)(uexp - LF_exp_mid);
22 }
23
24 }  // namespace cln