Skip to content

Commit

Permalink
Update PolymurHash2_0.java
Browse files Browse the repository at this point in the history
  • Loading branch information
Coollector committed Jul 18, 2023
1 parent fb0f037 commit ac15760
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 8 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -458,7 +458,6 @@ public HashStream64 putBytes(byte[] b, int off, int len) {
offset += len;

return this;

}

@Override
Expand All @@ -473,15 +472,12 @@ public HashStream64 putChars(CharSequence s) {
byteCount += len * 2L;

if (len * 2 + offset > 98) {
// um offset auf null zu bringen für darauffolgende schnellere Methode
if (offset != 0) {
int left = (50 - offset) / 2;
len -= left;
off += left;

if (offset % 2 == 0) {
// gerader offset

int temp = Math.min(len, 24);

len -= temp;
Expand Down Expand Up @@ -509,7 +505,6 @@ public HashStream64 putChars(CharSequence s) {
}

} else {
// ungerader offset
for (int i = 0; i <= left - 4; i += 4) {
setLong(buffer, offset + i * 2, getLong(s, i));
}
Expand Down Expand Up @@ -590,7 +585,6 @@ public HashStream64 putChars(CharSequence s) {
return this;
}


private void processBuffer() {

long m0 = (getLong(buffer, 0) & 0x00ffffffffffffffL) + k;
Expand Down
2 changes: 0 additions & 2 deletions src/main/java/com/dynatrace/hash4j/hashing/package-info.java

This file was deleted.

0 comments on commit ac15760

Please sign in to comment.