summaryrefslogtreecommitdiffstats
path: root/src/javax/vecmath/Matrix3f.java
diff options
context:
space:
mode:
Diffstat (limited to 'src/javax/vecmath/Matrix3f.java')
-rw-r--r--src/javax/vecmath/Matrix3f.java20
1 files changed, 10 insertions, 10 deletions
diff --git a/src/javax/vecmath/Matrix3f.java b/src/javax/vecmath/Matrix3f.java
index 4f27128..c5f51db 100644
--- a/src/javax/vecmath/Matrix3f.java
+++ b/src/javax/vecmath/Matrix3f.java
@@ -1969,16 +1969,16 @@ public class Matrix3f implements java.io.Serializable, Cloneable {
@Override
public int hashCode() {
long bits = 1L;
- bits = 31L * bits + (long)VecMathUtil.floatToIntBits(m00);
- bits = 31L * bits + (long)VecMathUtil.floatToIntBits(m01);
- bits = 31L * bits + (long)VecMathUtil.floatToIntBits(m02);
- bits = 31L * bits + (long)VecMathUtil.floatToIntBits(m10);
- bits = 31L * bits + (long)VecMathUtil.floatToIntBits(m11);
- bits = 31L * bits + (long)VecMathUtil.floatToIntBits(m12);
- bits = 31L * bits + (long)VecMathUtil.floatToIntBits(m20);
- bits = 31L * bits + (long)VecMathUtil.floatToIntBits(m21);
- bits = 31L * bits + (long)VecMathUtil.floatToIntBits(m22);
- return (int) (bits ^ (bits >> 32));
+ bits = VecMathUtil.hashFloatBits(bits, m00);
+ bits = VecMathUtil.hashFloatBits(bits, m01);
+ bits = VecMathUtil.hashFloatBits(bits, m02);
+ bits = VecMathUtil.hashFloatBits(bits, m10);
+ bits = VecMathUtil.hashFloatBits(bits, m11);
+ bits = VecMathUtil.hashFloatBits(bits, m12);
+ bits = VecMathUtil.hashFloatBits(bits, m20);
+ bits = VecMathUtil.hashFloatBits(bits, m21);
+ bits = VecMathUtil.hashFloatBits(bits, m22);
+ return VecMathUtil.hashFinish(bits);
}