Merge branch 'hashvalue_int3' into 'master'

Add a HashValue<INT<3>> for ParallelHashTable

See merge request jschoeberl/netgen!278
This commit is contained in:
Joachim Schöberl 2019-10-21 13:46:12 +00:00
commit 9d0902fb57
2 changed files with 7 additions and 2 deletions

View File

@ -827,7 +827,13 @@ namespace ngcore
return ost;
}
template <typename TI>
NETGEN_INLINE size_t HashValue (const INT<3,TI> ind)
{
INT<3,size_t> lind = ind;
return 113*lind[0]+59*lind[1]+lind[2];
}
template <typename TI>
NETGEN_INLINE size_t HashValue (const INT<2,TI> ind)
{

View File

@ -1390,7 +1390,6 @@ inline size_t HashValue (INDEX_2 i2, size_t size) { return (113*size_t(i2[0])+si
ClosedHashTable (ClosedHashTable && ht2) = default;
// who needs that ?
ClosedHashTable (NgFlatArray<T_HASH> _hash, NgFlatArray<T> _cont)
: size(_hash.Size()), used(0), hash(_hash.Size(), _hash.Addr(0)), cont(_cont.Size(), _cont.Addr(0))
{