|
@ -147,7 +147,7 @@ f1 |
|
|
for (std::size_t j = 0; j < N; ++j) |
|
|
for (std::size_t j = 0; j < N; ++j) |
|
|
{ |
|
|
{ |
|
|
if (tiling[j]) |
|
|
if (tiling[j]) |
|
|
hash_position[j] = std::fmod(hash_position[j], tiling[j]); |
|
|
|
|
|
|
|
|
hash_position[j] = std::fmod(hash_position[j] + tiling[j], tiling[j]); |
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|
// Calculate hash values for the hash position
|
|
|
// Calculate hash values for the hash position
|
|
@ -237,7 +237,7 @@ f1_edge |
|
|
for (std::size_t j = 0; j < N; ++j) |
|
|
for (std::size_t j = 0; j < N; ++j) |
|
|
{ |
|
|
{ |
|
|
if (tiling[j]) |
|
|
if (tiling[j]) |
|
|
hash_position[j] = std::fmod(hash_position[j], tiling[j]); |
|
|
|
|
|
|
|
|
hash_position[j] = std::fmod(hash_position[j] + tiling[j], tiling[j]); |
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|
// Calculate hash values for the hash position
|
|
|
// Calculate hash values for the hash position
|
|
@ -364,7 +364,7 @@ f1_f2 |
|
|
for (std::size_t j = 0; j < N; ++j) |
|
|
for (std::size_t j = 0; j < N; ++j) |
|
|
{ |
|
|
{ |
|
|
if (tiling[j]) |
|
|
if (tiling[j]) |
|
|
hash_position[j] = std::fmod(hash_position[j], tiling[j]); |
|
|
|
|
|
|
|
|
hash_position[j] = std::fmod(hash_position[j] + tiling[j], tiling[j]); |
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|
// Calculate hash values for the hash position
|
|
|
// Calculate hash values for the hash position
|
|
|