]> www.ginac.de Git - cln.git/blob - src/float/ffloat/misc/cl_FF_eqhashcode.cc
Initial revision
[cln.git] / src / float / ffloat / misc / cl_FF_eqhashcode.cc
1 // cl_FF equal_hashcode().
2
3 // General includes.
4 #include "cl_sysdep.h"
5
6 // Specification.
7 #include "cl_ffloat.h"
8
9
10 // Implementation.
11
12 #include "cl_N.h"
13 #include "cl_FF.h"
14
15 MAYBE_INLINE
16 uint32 cl_equal_hashcode (const cl_FF& x)
17 {
18         var cl_signean sign;
19         var sintL exp;
20         var uint32 mant;
21         FF_decode(x, { return 0; }, sign=,exp=,mant=);
22         var uint32 msd = mant << (32-(FF_mant_len+1));
23         return equal_hashcode_low(msd,exp,sign);
24 }