]> www.ginac.de Git - cln.git/blob - src/float/lfloat/misc/cl_LF_eqhashcode.cc
* */*: Remove cl_boolean, cl_true, and cl_false in favor of built-in
[cln.git] / src / float / lfloat / misc / cl_LF_eqhashcode.cc
1 // cl_LF equal_hashcode().
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_N.h"
13 #include "cl_LF_impl.h"
14 #include "cl_DS.h"
15
16 namespace cln {
17
18 MAYBE_INLINE
19 uint32 equal_hashcode (const cl_LF& x)
20 {
21         var cl_signean sign;
22         var sintL exp;
23         var const uintD* MSDptr;
24         LF_decode(x, { return 0; }, sign=,exp=,MSDptr=,,);
25         #if (intDsize==64)
26         var uint32 msd = mspref(MSDptr,0) >> 32;
27         #else // (intDsize<=32)
28         var uint32 msd = get_32_Dptr(MSDptr);
29         #endif
30         return equal_hashcode_low(msd,exp,sign);
31 }
32
33 }  // namespace cln