]> www.ginac.de Git - cln.git/blob - src/float/dfloat/misc/cl_DF_exponent.cc
* Removed internal gmp/ directory and other traces of it like $GMP_INCLUDES.
[cln.git] / src / float / dfloat / misc / cl_DF_exponent.cc
1 // float_exponent().
2
3 // General includes.
4 #include "cl_sysdep.h"
5
6 // Specification.
7 #include "cl_dfloat.h"
8
9
10 // Implementation.
11
12 #include "cl_DF.h"
13
14 MAYBE_INLINE
15 sintL float_exponent (const cl_DF& x)
16 {
17         var uintL uexp = DF_uexp(TheDfloat(x)->dfloat_value_semhi);
18         if (uexp==0) { return 0; }
19         return (sintL)(uexp - DF_exp_mid);
20 }