Block: private internal function

This commit is contained in:
Dylan K. Taylor 2023-10-17 15:23:39 +01:00
parent 63fcf9879a
commit 7f3de835e4
No known key found for this signature in database
GPG Key ID: 8927471A91CAFD3D

View File

@ -95,7 +95,7 @@ class Block{
* The type ID is included in the XOR mask. This is not necessary to improve distribution, but it reduces the number
* of operations required to compute the state ID (micro optimization).
*/
public static function computeStateIdXorMask(int $typeId) : int{
private static function computeStateIdXorMask(int $typeId) : int{
return
$typeId << self::INTERNAL_STATE_DATA_BITS |
(Binary::readLong(hash('xxh3', Binary::writeLLong($typeId), binary: true)) & self::INTERNAL_STATE_DATA_MASK);