function | since v1.11.132 | Edit |
(hash-double f)
(defn hash-double [f]
(let [arr (doto (js/Float64Array. 1) (aset 0 f))
buf (.-buffer arr)
high (.getInt32 (js/DataView. buf 0 4))
low (.getInt32 (js/DataView. buf 4 4))]
(hash-long high low)))