mirror of
https://github.com/openjdk/jdk.git
synced 2025-08-27 06:45:07 +02:00
8332826: Make hashCode methods in ArraysSupport friendlier
Reviewed-by: redestad, liach
This commit is contained in:
parent
2b4a4b7bd8
commit
3cff588a31
13 changed files with 234 additions and 80 deletions
|
@ -4098,8 +4098,7 @@ public class BigInteger extends Number implements Comparable<BigInteger> {
|
|||
*/
|
||||
@Override
|
||||
public int hashCode() {
|
||||
return ArraysSupport.vectorizedHashCode(mag, 0, mag.length, 0,
|
||||
ArraysSupport.T_INT) * signum;
|
||||
return ArraysSupport.hashCode(mag, 0, mag.length, 0) * signum;
|
||||
}
|
||||
|
||||
/**
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue