hash-double

functionsince v1.11.132Edit
(hash-double f)

Source code @ clojurescript:src/main/cljs/cljs/core.cljs
(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)))