1 // cl_RA equal_hashcode().
7 #include "cln/rational.h"
17 uint32 equal_hashcode (const cl_RA& r)
21 return equal_hashcode(r);
23 // Making sure that a float and its rational equivalent have
24 // the same hash code is tricky. This code depends on the fact
25 // that the equal_hashcode_low macro is linear in `exp'.
27 return equal_hashcode(numerator(r))
28 - equal_hashcode(denominator(r))