]> www.ginac.de Git - cln.git/blob - src/float/sfloat/misc/cl_SF_eqhashcode.cc
Fix linking problems on some platforms caused by inline/non-inline versions
[cln.git] / src / float / sfloat / misc / cl_SF_eqhashcode.cc
1 // cl_SF equal_hashcode().
2
3 // General includes.
4 #include "cl_sysdep.h"
5
6 // Specification.
7 #include "cln/sfloat.h"
8
9
10 // Implementation.
11
12 #include "cl_N.h"
13 #include "cl_SF.h"
14
15 namespace cln {
16
17 CL_INLINE uint32 CL_INLINE_DECL(equal_hashcode) (const cl_SF& x)
18 {
19         var cl_signean sign;
20         var sintL exp;
21         var uint32 mant;
22         SF_decode(x, { return 0; }, sign=,exp=,mant=);
23         var uint32 msd = mant << (32-(SF_mant_len+1));
24         return equal_hashcode_low(msd,exp,sign);
25 }
26
27 }  // namespace cln