/dports/lang/mono/mono-5.10.1.57/external/corefx/src/System.Runtime/tests/System/ |
H A D | HashCodeTests.netcoreapp.cs | 17 var hc = new HashCode(); in HashCode_Add() 62 var hc1 = new HashCode(); in HashCode_Add_HashCode() 65 var hc2 = new HashCode(); in HashCode_Add_HashCode() 74 var hc = new HashCode(); in HashCode_Add_Generic() 88 var hc = new HashCode(); in HashCode_Add_Null() 100 var hc = new HashCode(); in HashCode_Add_GenericEqualityComparer() 114 var hc = new HashCode(); in HashCode_Add_NullEqualityComparer() 130 HashCode.Combine(1), in HashCode_Combine() 139 HashCode.Combine(2), in HashCode_Combine() 160 var hc = new HashCode(); in HashCode_Combine_Add_1() [all …]
|
/dports/java/eclipse/eclipse.platform.releng.aggregator-R4_16/eclipse.jdt.debug/org.eclipse.jdt.launching/launching/org/eclipse/jdt/internal/launching/sourcelookup/advanced/ |
H A D | FileHashing.java | 90 private static class HashCode { class in FileHashing 93 public HashCode(byte[] bytes) { in HashCode() method in FileHashing.HashCode 107 if (!(obj instanceof HashCode)) { in equals() 110 return Arrays.equals(bytes, ((HashCode) obj).bytes); in equals() 127 private final Map<CacheKey, HashCode> cache; 131 this.cache = new LinkedHashMap<CacheKey, HashCode>() { in HasherImpl() 133 protected boolean removeEldestEntry(Map.Entry<CacheKey, HashCode> eldest) { in HasherImpl() 151 HashCode hashCode = cache.get(cacheKey); in hash() 157 HashCode hashCode = sha1(file); in hash() 170 private static HashCode sha1(File file) throws IOException { in sha1() [all …]
|
/dports/lang/mono/mono-5.10.1.57/external/corefx/src/System.Runtime/tests/Performance/ |
H A D | Perf.HashCode.cs | 38 var hc = new HashCode(); in Add() 61 DontDiscard(HashCode.Combine( in Combine_1() 78 DontDiscard(HashCode.Combine( in Combine_2() 95 DontDiscard(HashCode.Combine( in Combine_3() 113 DontDiscard(HashCode.Combine( in Combine_4() 132 DontDiscard(HashCode.Combine( in Combine_5() 152 DontDiscard(HashCode.Combine( in Combine_6() 173 DontDiscard(HashCode.Combine( in Combine_7() 195 DontDiscard(HashCode.Combine( in Combine_8()
|
/dports/lang/v8/v8-9.6.180.12/test/cctest/compiler/ |
H A D | test-operator.cc | 36 CHECK_EQ(17, static_cast<int>(op1.HashCode())); in TEST() 39 CHECK_EQ(18, static_cast<int>(op2.HashCode())); in TEST() 97 CHECK(op1a.HashCode() == op1b.HashCode()); in TEST() 102 CHECK(op1a.HashCode() != op2a.HashCode()); in TEST() 103 CHECK(op2a.HashCode() != op2b.HashCode()); in TEST() 167 CHECK(op1a.HashCode() == op1b.HashCode()); in TEST() 172 CHECK(op1a.HashCode() != op2a.HashCode()); in TEST() 173 CHECK(op2a.HashCode() != op2b.HashCode()); in TEST()
|
/dports/cad/opencascade/opencascade-7.6.0/inc/ |
H A D | NCollection_DoubleMap.hxx | 163 Standard_Integer iK1 = Hasher1::HashCode (aKey1, NbBuckets()); in Assign() 201 iK1 = Hasher1::HashCode (p->Key1(), newBuck); in ReSize() 202 iK2 = Hasher2::HashCode (p->Key2(), newBuck); in ReSize() 222 Standard_Integer iK1 = Hasher1::HashCode (theKey1, NbBuckets()); in Bind() 223 Standard_Integer iK2 = Hasher2::HashCode (theKey2, NbBuckets()); in Bind() 252 Standard_Integer iK1 = Hasher1::HashCode (theKey1, NbBuckets()); in AreBound() 253 Standard_Integer iK2 = Hasher2::HashCode (theKey2, NbBuckets()); in AreBound() 282 Standard_Integer iK1 = Hasher1::HashCode (theKey1, NbBuckets()); in IsBound1() 299 Standard_Integer iK2 = Hasher2::HashCode (theKey2, NbBuckets()); in IsBound2() 316 Standard_Integer iK1 = Hasher1::HashCode (theKey1, NbBuckets()); in UnBind1() [all …]
|
H A D | BRepMesh_OrientedEdge.hxx | 60 Standard_Integer HashCode (const Standard_Integer theUpperBound) const in HashCode() function in BRepMesh_OrientedEdge 62 return ::HashCode (myFirstNode + myLastNode, theUpperBound); in HashCode() 89 inline Standard_Integer HashCode (const BRepMesh_OrientedEdge& theOrientedEdge, const Standard_Inte… in HashCode() function 91 return theOrientedEdge.HashCode (theUpperBound); in HashCode()
|
H A D | Standard_Integer.hxx | 116 inline Standard_Integer HashCode (const Standard_Integer theValue, in HashCode() function 136 inline Standard_Integer HashCode (const unsigned int theValue, const Standard_Integer theUpperBound) in HashCode() function 138 return ::HashCode (static_cast<Standard_Integer> (theValue), theUpperBound); in HashCode() 145 inline Standard_Integer HashCode (const long long int theValue, const Standard_Integer theUpperBoun… in HashCode() function 163 HashCode (const TheUtf32Char theValue, const Standard_Integer theUpperBound) in HashCode() function
|
H A D | NCollection_IndexedDataMap.hxx | 203 const Standard_Integer iK1 = Hasher::HashCode (aKey1, NbBuckets()); in Assign() 237 const Standard_Integer iK1 = Hasher::HashCode (p->Key1(), newBuck); in ReSize() 261 const Standard_Integer iK1 = Hasher::HashCode (theKey1, NbBuckets()); in Add() 284 Standard_Integer iK1 = Hasher::HashCode (theKey1, NbBuckets()); in Contains() 306 const Standard_Integer iK1 = Hasher::HashCode (theKey1, NbBuckets()); in Substitute() 328 const Standard_Integer iK = Hasher::HashCode (p->Key1(), NbBuckets()); in Substitute() 376 const Standard_Integer iK1 = Hasher::HashCode (p->Key1(), NbBuckets()); in RemoveLast() 448 … IndexedDataMapNode* pNode1 = (IndexedDataMapNode* )myData1[Hasher::HashCode(theKey1,NbBuckets())]; in FindIndex() 465 … IndexedDataMapNode* pNode1 = (IndexedDataMapNode* )myData1[Hasher::HashCode(theKey1,NbBuckets())]; in FindFromKey() 482 … IndexedDataMapNode* pNode1 = (IndexedDataMapNode* )myData1[Hasher::HashCode(theKey1,NbBuckets())]; in ChangeFromKey() [all …]
|
H A D | XCAFPrs_Style.hxx | 137 …static Standard_Integer HashCode (const XCAFPrs_Style& theStyle, const Standard_Integer theUpperBo… in HashCode() function in XCAFPrs_Style 147 … aHashCode = aHashCode ^ Quantity_ColorRGBAHasher::HashCode (theStyle.myColorSurf, theUpperBound); in HashCode() 151 aHashCode = aHashCode ^ Quantity_ColorHasher::HashCode (theStyle.myColorCurv, theUpperBound); in HashCode() 155 aHashCode = aHashCode ^ ::HashCode (theStyle.myMaterial, theUpperBound); in HashCode() 157 return ::HashCode (aHashCode, theUpperBound); in HashCode()
|
/dports/cad/opencascade/opencascade-7.6.0/src/NCollection/ |
H A D | NCollection_DoubleMap.hxx | 163 Standard_Integer iK1 = Hasher1::HashCode (aKey1, NbBuckets()); in Assign() 201 iK1 = Hasher1::HashCode (p->Key1(), newBuck); in ReSize() 202 iK2 = Hasher2::HashCode (p->Key2(), newBuck); in ReSize() 222 Standard_Integer iK1 = Hasher1::HashCode (theKey1, NbBuckets()); in Bind() 223 Standard_Integer iK2 = Hasher2::HashCode (theKey2, NbBuckets()); in Bind() 252 Standard_Integer iK1 = Hasher1::HashCode (theKey1, NbBuckets()); in AreBound() 253 Standard_Integer iK2 = Hasher2::HashCode (theKey2, NbBuckets()); in AreBound() 282 Standard_Integer iK1 = Hasher1::HashCode (theKey1, NbBuckets()); in IsBound1() 299 Standard_Integer iK2 = Hasher2::HashCode (theKey2, NbBuckets()); in IsBound2() 316 Standard_Integer iK1 = Hasher1::HashCode (theKey1, NbBuckets()); in UnBind1() [all …]
|
H A D | NCollection_IndexedDataMap.hxx | 203 const Standard_Integer iK1 = Hasher::HashCode (aKey1, NbBuckets()); in Assign() 237 const Standard_Integer iK1 = Hasher::HashCode (p->Key1(), newBuck); in ReSize() 261 const Standard_Integer iK1 = Hasher::HashCode (theKey1, NbBuckets()); in Add() 284 Standard_Integer iK1 = Hasher::HashCode (theKey1, NbBuckets()); in Contains() 306 const Standard_Integer iK1 = Hasher::HashCode (theKey1, NbBuckets()); in Substitute() 328 const Standard_Integer iK = Hasher::HashCode (p->Key1(), NbBuckets()); in Substitute() 376 const Standard_Integer iK1 = Hasher::HashCode (p->Key1(), NbBuckets()); in RemoveLast() 448 … IndexedDataMapNode* pNode1 = (IndexedDataMapNode* )myData1[Hasher::HashCode(theKey1,NbBuckets())]; in FindIndex() 465 … IndexedDataMapNode* pNode1 = (IndexedDataMapNode* )myData1[Hasher::HashCode(theKey1,NbBuckets())]; in FindFromKey() 482 … IndexedDataMapNode* pNode1 = (IndexedDataMapNode* )myData1[Hasher::HashCode(theKey1,NbBuckets())]; in ChangeFromKey() [all …]
|
/dports/devel/py-cadquery-pywrap/pywrap-e8c7bc9/opencascade/ |
H A D | NCollection_DoubleMap.hxx | 163 Standard_Integer iK1 = Hasher1::HashCode (aKey1, NbBuckets()); in Assign() 201 iK1 = Hasher1::HashCode (p->Key1(), newBuck); in ReSize() 202 iK2 = Hasher2::HashCode (p->Key2(), newBuck); in ReSize() 222 Standard_Integer iK1 = Hasher1::HashCode (theKey1, NbBuckets()); in Bind() 223 Standard_Integer iK2 = Hasher2::HashCode (theKey2, NbBuckets()); in Bind() 252 Standard_Integer iK1 = Hasher1::HashCode (theKey1, NbBuckets()); in AreBound() 253 Standard_Integer iK2 = Hasher2::HashCode (theKey2, NbBuckets()); in AreBound() 282 Standard_Integer iK1 = Hasher1::HashCode (theKey1, NbBuckets()); in IsBound1() 299 Standard_Integer iK2 = Hasher2::HashCode (theKey2, NbBuckets()); in IsBound2() 316 Standard_Integer iK1 = Hasher1::HashCode (theKey1, NbBuckets()); in UnBind1() [all …]
|
H A D | BRepMesh_OrientedEdge.hxx | 60 inline Standard_Integer HashCode (const Standard_Integer theUpperBound) const in HashCode() function in BRepMesh_OrientedEdge 62 return ::HashCode (myFirstNode + myLastNode, theUpperBound); in HashCode() 89 inline Standard_Integer HashCode (const BRepMesh_OrientedEdge& theOrientedEdge, const Standard_Inte… in HashCode() function 91 return theOrientedEdge.HashCode (theUpperBound); in HashCode()
|
H A D | TCollection_IndexedDataMap.gxx | 92 k1 = Hasher::HashCode(p->Key1(),newBuck); 93 k2 = ::HashCode(p->Key2(),newBuck); 142 Standard_Integer k1 = Hasher::HashCode(K1,NbBuckets()); 152 Standard_Integer k2 = ::HashCode(Extent(),NbBuckets()); 175 Standard_Integer k1 = Hasher::HashCode(K1,NbBuckets()); 191 Standard_Integer k2 = ::HashCode(I,NbBuckets()); 230 Standard_Integer k2 = ::HashCode(Extent(),NbBuckets()); 267 Standard_Integer k2 = ::HashCode(K2,NbBuckets()); 288 Standard_Integer k2 = ::HashCode(K2,NbBuckets()); 308 Standard_Integer k2 = ::HashCode(K2,NbBuckets()); [all …]
|
H A D | Standard_Integer.hxx | 116 inline Standard_Integer HashCode (const Standard_Integer theValue, in HashCode() function 136 inline Standard_Integer HashCode (const unsigned int theValue, const Standard_Integer theUpperBound) in HashCode() function 138 return ::HashCode (static_cast<Standard_Integer> (theValue), theUpperBound); in HashCode() 145 inline Standard_Integer HashCode (const long long int theValue, const Standard_Integer theUpperBoun… in HashCode() function 163 HashCode (const TheUtf32Char theValue, const Standard_Integer theUpperBound) in HashCode() function
|
H A D | NCollection_IndexedDataMap.hxx | 203 const Standard_Integer iK1 = Hasher::HashCode (aKey1, NbBuckets()); in Assign() 237 const Standard_Integer iK1 = Hasher::HashCode (p->Key1(), newBuck); in ReSize() 261 const Standard_Integer iK1 = Hasher::HashCode (theKey1, NbBuckets()); in Add() 284 Standard_Integer iK1 = Hasher::HashCode (theKey1, NbBuckets()); in Contains() 306 const Standard_Integer iK1 = Hasher::HashCode (theKey1, NbBuckets()); in Substitute() 328 const Standard_Integer iK = Hasher::HashCode (p->Key1(), NbBuckets()); in Substitute() 376 const Standard_Integer iK1 = Hasher::HashCode (p->Key1(), NbBuckets()); in RemoveLast() 448 … IndexedDataMapNode* pNode1 = (IndexedDataMapNode* )myData1[Hasher::HashCode(theKey1,NbBuckets())]; in FindIndex() 465 … IndexedDataMapNode* pNode1 = (IndexedDataMapNode* )myData1[Hasher::HashCode(theKey1,NbBuckets())]; in FindFromKey() 482 … IndexedDataMapNode* pNode1 = (IndexedDataMapNode* )myData1[Hasher::HashCode(theKey1,NbBuckets())]; in ChangeFromKey() [all …]
|
H A D | TCollection_DoubleMap.gxx | 86 k1 = Hasher1::HashCode(p->Key1(),newBuck); 87 k2 = Hasher2::HashCode(p->Key2(),newBuck); 136 Standard_Integer k1 = Hasher1::HashCode(K1,NbBuckets()); 137 Standard_Integer k2 = Hasher2::HashCode(K2,NbBuckets()); 168 Standard_Integer k1 = Hasher1::HashCode(K1,NbBuckets()); 169 Standard_Integer k2 = Hasher2::HashCode(K2,NbBuckets()); 196 Standard_Integer k1 = Hasher1::HashCode(K1,NbBuckets()); 215 Standard_Integer k2 = Hasher2::HashCode(K2,NbBuckets()); 234 Standard_Integer k1 = Hasher1::HashCode(K1,NbBuckets()); 288 k2 = Hasher2::HashCode(p1->Key2(),NbBuckets()); [all …]
|
/dports/cad/opencascade/opencascade-7.6.0/src/TopoDS/ |
H A D | TopoDS_Shape.cxx | 30 Standard_Integer TopoDS_Shape::HashCode (const Standard_Integer theUpperBound) const in HashCode() function in TopoDS_Shape 33 const Standard_Integer aHS = ::HashCode (myTShape.get(), theUpperBound); in HashCode() 34 const Standard_Integer aHL = myLocation.HashCode (theUpperBound); in HashCode() 35 return ::HashCode (aHS ^ aHL, theUpperBound); in HashCode()
|
/dports/cad/opencascade/opencascade-7.6.0/src/StepToTopoDS/ |
H A D | StepToTopoDS_PointPairHasher.cxx | 26 Standard_Integer StepToTopoDS_PointPairHasher::HashCode (const StepToTopoDS_PointPair& thePointPair, in HashCode() function in StepToTopoDS_PointPairHasher 29 …return ::HashCode (::HashCode (thePointPair.myP1, theUpperBound) + ::HashCode (thePointPair.myP2, … in HashCode()
|
/dports/cad/opencascade/opencascade-7.6.0/src/TColStd/ |
H A D | TColStd_PackedMapOfInteger.cxx | 126 const Standard_Integer aHashCode = p->HashCode(nBuckets); in Assign() 167 Standard_Integer k = p->HashCode (aNewBuck); in ReSize() 223 const Standard_Integer aHashCode = HashCode (aKeyInt, myNbBuckets); in Add() 285 TColStd_intMapNode*& aBucketHead = myData1[HashCode(aKeyInt, myNbBuckets)]; in Remove() 430 const Standard_Integer aHashCode = HashCode (aKeyInt, myNbBuckets); in Union() 463 const Standard_Integer aHashCode = HashCode (aKeyInt, myNbBuckets); in Union() 502 Standard_Integer aHashCode = HashCode (aKeyInt, myNbBuckets); in Unite() 525 aHashCode = HashCode (aKeyInt, myNbBuckets); in Unite() 585 const TColStd_intMapNode* p2 = aData2[HashCode (aKeyInt, nBuckets2)]; in Intersection() 961 TColStd_intMapNode* p1 = myData1[HashCode (aKeyInt, myNbBuckets)]; in Differ() [all …]
|
/dports/cad/opencascade/opencascade-7.6.0/src/BRepMesh/ |
H A D | BRepMesh_OrientedEdge.hxx | 60 Standard_Integer HashCode (const Standard_Integer theUpperBound) const in HashCode() function in BRepMesh_OrientedEdge 62 return ::HashCode (myFirstNode + myLastNode, theUpperBound); in HashCode() 89 inline Standard_Integer HashCode (const BRepMesh_OrientedEdge& theOrientedEdge, const Standard_Inte… in HashCode() function 91 return theOrientedEdge.HashCode (theUpperBound); in HashCode()
|
/dports/cad/opencascade/opencascade-7.6.0/src/Standard/ |
H A D | Standard_Integer.hxx | 116 inline Standard_Integer HashCode (const Standard_Integer theValue, in HashCode() function 136 inline Standard_Integer HashCode (const unsigned int theValue, const Standard_Integer theUpperBound) in HashCode() function 138 return ::HashCode (static_cast<Standard_Integer> (theValue), theUpperBound); in HashCode() 145 inline Standard_Integer HashCode (const long long int theValue, const Standard_Integer theUpperBoun… in HashCode() function 163 HashCode (const TheUtf32Char theValue, const Standard_Integer theUpperBound) in HashCode() function
|
/dports/lang/oo2c/oo2c_64-2.1.11/lib/src/ |
H A D | HashCode.Mod | 1 (* $Id: HashCode.Mod,v 1.1 2003/05/30 16:06:40 mva Exp $ *) 2 MODULE HashCode [FOREIGN "C"; LINK FILE "HashCode.c" END]; 34 x := HashCode.init; 36 HashCode.Append(y, x); 53 END HashCode.
|
/dports/devel/wasi-compiler-rt12/llvm-project-12.0.1.src/llvm/tools/llvm-profgen/ |
H A D | PerfReader.h | 117 uint64_t HashCode = 0; member 120 uint64_t getHashCode() const { return HashCode; } in getHashCode() 122 return HashCode == K->HashCode; in isEqual() 186 HashCode = Hash; in genHashCode() 297 uint64_t HashCode = 0; member 299 uint64_t getHashCode() const { return HashCode; } in getHashCode() 301 return HashCode == K->HashCode; in isEqual() 324 void genHashCode() { HashCode = hash_value(Context); } in genHashCode() 349 HashCode = hash_combine(HashCode, P); in genHashCode() 351 if (HashCode == 0) { in genHashCode() [all …]
|
/dports/devel/llvm12/llvm-project-12.0.1.src/llvm/tools/llvm-profgen/ |
H A D | PerfReader.h | 117 uint64_t HashCode = 0; member 120 uint64_t getHashCode() const { return HashCode; } in getHashCode() 122 return HashCode == K->HashCode; in isEqual() 186 HashCode = Hash; in genHashCode() 297 uint64_t HashCode = 0; member 299 uint64_t getHashCode() const { return HashCode; } in getHashCode() 301 return HashCode == K->HashCode; in isEqual() 324 void genHashCode() { HashCode = hash_value(Context); } in genHashCode() 349 HashCode = hash_combine(HashCode, P); in genHashCode() 351 if (HashCode == 0) { in genHashCode() [all …]
|