We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent a149584 commit bb579e2Copy full SHA for bb579e2
pandas/_libs/src/klib/khash_python.h
@@ -22,10 +22,12 @@ khint64_t PANDAS_INLINE asint64(double key) {
22
23
// correct for all inputs but not -0.0 and NaNs
24
#define kh_float64_hash_func_0_NAN(key) (khint32_t)((asint64(key))>>33^(asint64(key))^(asint64(key))<<11)
25
+
26
// correct for all inputs but not NaNs
27
#define kh_float64_hash_func_NAN(key) ((key) == 0.0 ? \
28
kh_float64_hash_func_0_NAN(0.0) : \
29
kh_float64_hash_func_0_NAN(key))
30
31
// correct for all
32
#define kh_float64_hash_func(key) ((key) != (key) ? \
33
kh_float64_hash_func_NAN(NAN) : \
0 commit comments