Relative Content

Tag Archive for phpoopset

bitmasking for values over 2³²

I know PHP integers are between -2³² and 2³² and unsigned integers don’t exist. Would there be a way to bitmask for values over 2³²? I’m looking for a way to implement a effecient Set class using bit wise operators and being able to cater for more that 32 elements (64 as there are 64 bits in an integer)