diff options
author | Sven Gothel <[email protected]> | 2013-03-12 17:50:22 +0100 |
---|---|---|
committer | Sven Gothel <[email protected]> | 2013-03-12 17:50:22 +0100 |
commit | 1a4514accc8f61ab7ff5fe8c82d22a5ef356c865 (patch) | |
tree | e1819d6baabdb1a0d53b0078b89fa1e572c7dee8 /make/build.xml | |
parent | 692ee1477a5422cb119070ecd87321833c302873 (diff) |
Fix Long*HashMap impl. of IntIntHashMap: Better 64bit hash value, using new HashUtil.
Introduce markup: /*keyHash*/(.*)/*keyHash*/ allowing Long*HashMap to inject hash function for 64bit value.
Diffstat (limited to 'make/build.xml')
-rw-r--r-- | make/build.xml | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/make/build.xml b/make/build.xml index 886b2db..188f518 100644 --- a/make/build.xml +++ b/make/build.xml @@ -597,6 +597,7 @@ <antcall target="create-map" inheritrefs="true"> <param name="map.name" value="IntObjectHashMap"/> <param name="map.key" value="int"/> + <param name="map.keyHash" value="\1"/> <param name="map.value" value="Object"/> <param name="map.null" value="null"/> </antcall> @@ -604,6 +605,7 @@ <antcall target="create-map" inheritrefs="true"> <param name="map.name" value="IntLongHashMap"/> <param name="map.key" value="int"/> + <param name="map.keyHash" value="\1"/> <param name="map.value" value="long"/> <param name="map.null" value="-1"/> </antcall> @@ -612,6 +614,7 @@ <antcall target="create-map" inheritrefs="true"> <param name="map.name" value="LongObjectHashMap"/> <param name="map.key" value="long"/> + <param name="map.keyHash" value="HashUtil.getAddrHash32_EqualDist(\1)"/> <param name="map.value" value="Object"/> <param name="map.null" value="null"/> </antcall> @@ -619,6 +622,7 @@ <antcall target="create-map" inheritrefs="true"> <param name="map.name" value="LongIntHashMap"/> <param name="map.key" value="long"/> + <param name="map.keyHash" value="HashUtil.getAddrHash32_EqualDist(\1)"/> <param name="map.value" value="int"/> <param name="map.null" value="-1"/> </antcall> @@ -626,6 +630,7 @@ <antcall target="create-map" inheritrefs="true"> <param name="map.name" value="LongLongHashMap"/> <param name="map.key" value="long"/> + <param name="map.keyHash" value="HashUtil.getAddrHash32_EqualDist(\1)"/> <param name="map.value" value="long"/> <param name="map.null" value="-1"/> </antcall> @@ -641,6 +646,7 @@ <replaceregex pattern="@see ${map.name}" replace="@see IntIntHashMap"/> <replaceregex pattern="/\*value\*/int/\*value\*/" replace="${map.value}"/> <replaceregex pattern="/\*key\*/int/\*key\*/" replace="${map.key}"/> + <replaceregex pattern="/\*keyHash\*/(.*)/\*keyHash\*/" replace="${map.keyHash}"/> <replaceregex pattern="/\*null\*/-1/\*null\*/" replace="${map.null}"/> </filterchain> <!-- no clue why we have to do this twice... otherwise it will only replace one token per line --> |