public override int GetHashCode() { int h = J2N.BitConversion.SingleToInt32Bits(m_a) + J2N.BitConversion.SingleToInt32Bits(m_m); h ^= (h << 13) | (h.TripleShift(20)); return(h + (J2N.BitConversion.SingleToInt32Bits(m_b)) + m_source.GetHashCode()); }
public override int GetHashCode() { int h = Number.SingleToInt32Bits(m_a) + Number.SingleToInt32Bits(m_m); h ^= (h << 13) | ((int)((uint)h >> 20)); return(h + (Number.SingleToInt32Bits(m_b)) + m_source.GetHashCode()); }
public override int GetHashCode() { int h = (int)BitConverter.DoubleToInt64Bits(a) + (int)BitConverter.DoubleToInt64Bits(m); h ^= (h << 13) | (int)((uint)h >> 20); return(h + ((int)BitConverter.DoubleToInt64Bits(b)) + source.GetHashCode()); }
public override int GetHashCode() { int h = Number.FloatToIntBits(a) + Number.FloatToIntBits(m); h ^= (h << 13) | ((int)((uint)h >> 20)); return(h + (Number.FloatToIntBits(b)) + source.GetHashCode()); }
public override int GetHashCode() { int result = shapeValueSource.GetHashCode(); result = 31 * result + op.GetHashCode(); result = 31 * result + queryShape.GetHashCode(); return(result); }
public override int GetHashCode() { int h = ifSource.GetHashCode(); h = h * 31 + trueSource.GetHashCode(); h = h * 31 + falseSource.GetHashCode(); return(h); }
public override int GetHashCode() { int h = Number.FloatToIntBits(slope); h = ((int)((uint)h >> 2)) | (h << 30); h += Number.FloatToIntBits(intercept); h ^= (h << 14) | ((int)((uint)h >> 19)); return(h + source.GetHashCode()); }
public override int GetHashCode() { int h = J2N.BitConversion.SingleToInt32Bits(m_slope); h = ((int)((uint)h >> 2)) | (h << 30); h += J2N.BitConversion.SingleToInt32Bits(m_intercept); h ^= (h << 14) | ((int)((uint)h >> 19)); return(h + m_source.GetHashCode()); }
public override int GetHashCode() { int h = J2N.BitConversion.SingleToInt32Bits(m_slope); h = (h.TripleShift(2)) | (h << 30); h += J2N.BitConversion.SingleToInt32Bits(m_intercept); h ^= (h << 14) | (h.TripleShift(19)); return(h + m_source.GetHashCode()); }
public override int GetHashCode() { int h = Number.FloatToIntBits(min); h = h * 29; h += Number.FloatToIntBits(max); h = h * 29; h += source.GetHashCode(); return(h); }
public override int GetHashCode() { int h = m_a.GetHashCode(); h ^= (h << 13) | (h.TripleShift(20)); h += m_b.GetHashCode(); h ^= (h << 23) | (h.TripleShift(10)); h += Name.GetHashCode(); return(h); }
public override int GetHashCode() { int h = Number.SingleToInt32Bits(m_min); h = h * 29; h += Number.SingleToInt32Bits(m_max); h = h * 29; h += m_source.GetHashCode(); return(h); }
public override int GetHashCode() { int h = a.GetHashCode(); h ^= (h << 13) | ((int)((uint)h >> 20)); h += b.GetHashCode(); h ^= (h << 23) | ((int)((uint)h >> 10)); h += Name.GetHashCode(); return(h); }
public override int GetHashCode() { int h = J2N.BitConversion.SingleToInt32Bits(m_min); h = h * 29; h += J2N.BitConversion.SingleToInt32Bits(m_max); h = h * 29; h += m_source.GetHashCode(); return(h); }
public override int GetHashCode() { int result; long temp; result = shapeValueSource.GetHashCode(); result = 31 * result + queryPoint.GetHashCode(); temp = Number.DoubleToLongBits(multiplier); result = 31 * result + (int)(temp ^ ((long)((ulong)temp) >> 32)); return(result); }
public override int GetHashCode() { int result; long temp; result = shapeValueSource.GetHashCode(); result = 31 * result + queryPoint.GetHashCode(); temp = J2N.BitConversion.DoubleToInt64Bits(multiplier); result = 31 * result + (int)(temp ^ (temp.TripleShift(32))); return(result); }
public override int GetHashCode() { int h = m_source.GetHashCode(); h ^= (h << 10) | ((int)((uint)h >> 23)); h += J2N.BitConversion.SingleToInt32Bits(m_min); h ^= (h << 14) | ((int)((uint)h >> 19)); h += J2N.BitConversion.SingleToInt32Bits(m_max); h += m_target.GetHashCode(); if (m_defaultVal != null) { h += m_defaultVal.GetHashCode(); } return(h); }
public override int GetHashCode() { int h = source.GetHashCode(); h ^= (h << 10) | ((int)((uint)h >> 23)); h += Number.FloatToIntBits(min); h ^= (h << 14) | ((int)((uint)h >> 19)); h += Number.FloatToIntBits(max); h += target.GetHashCode(); if (defaultVal != null) { h += defaultVal.GetHashCode(); } return(h); }
public virtual void TestEquals() { Expression expr = JavascriptCompiler.Compile("sqrt(a) + ln(b)"); SimpleBindings bindings = new SimpleBindings(); bindings.Add(new SortField("a", SortFieldType.INT32)); bindings.Add(new SortField("b", SortFieldType.INT32)); ValueSource vs1 = expr.GetValueSource(bindings); // same instance Assert.AreEqual(vs1, vs1); // null Assert.IsFalse(vs1.Equals(null)); // other object Assert.IsFalse(vs1.Equals("foobar")); // same bindings and expression instances ValueSource vs2 = expr.GetValueSource(bindings); Assert.AreEqual(vs1.GetHashCode(), vs2.GetHashCode()); Assert.AreEqual(vs1, vs2); // equiv bindings (different instance) SimpleBindings bindings2 = new SimpleBindings(); bindings2.Add(new SortField("a", SortFieldType.INT32)); bindings2.Add(new SortField("b", SortFieldType.INT32)); ValueSource vs3 = expr.GetValueSource(bindings2); Assert.AreEqual(vs1, vs3); // different bindings (same names, different types) SimpleBindings bindings3 = new SimpleBindings(); bindings3.Add(new SortField("a", SortFieldType.INT64)); bindings3.Add(new SortField("b", SortFieldType.INT32)); ValueSource vs4 = expr.GetValueSource(bindings3); Assert.IsFalse(vs1.Equals(vs4)); }
public override int GetHashCode() { return(predicateValueSource.GetHashCode()); }
public override int GetHashCode() { return(m_source.GetHashCode() + Name.GetHashCode()); }
public override int GetHashCode() { return((int)(func.GetHashCode() * 31 + BitConverter.DoubleToInt64Bits(Boost))); }
public override int GetHashCode() { return(source != null?source.GetHashCode() : 0); }