MCPcopy Index your code
hub / github.com/clojure/clojure / hasheq

Method hasheq

src/jvm/clojure/lang/Numbers.java:1154–1171  ·  view source on GitHub ↗
(Number x)

Source from the content-addressed store, hash-verified

1152}
1153
1154@WarnBoxedMath(false)
1155static int hasheq(Number x){
1156 Class xc = x.getClass();
1157
1158 if(xc == Long.class)
1159 {
1160 long lpart = x.longValue();
1161 return Murmur3.hashLong(lpart);
1162 //return (int) (lpart ^ (lpart >>> 32));
1163 }
1164 if(xc == Double.class)
1165 {
1166 if(x.equals(-0.0))
1167 return 0; // match 0.0
1168 return x.hashCode();
1169 }
1170 return hasheqFrom(x, xc);
1171}
1172
1173static Category category(Object x){
1174 Class xc = x.getClass();

Callers 1

hasheqMethod · 0.95

Calls 5

hashLongMethod · 0.95
hasheqFromMethod · 0.95
longValueMethod · 0.45
equalsMethod · 0.45
hashCodeMethod · 0.45

Tested by

no test coverage detected