MCPcopy Create free account
hub / github.com/OpenTTD/OpenTTD / Validate

Method Validate

src/core/bitmath_func.hpp:300–306  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

298 Tbitset bitset;
299 Tbitpos bitpos;
300 void Validate()
301 {
302 if (this->bitset != 0) {
303 typename std::make_unsigned<Tbitset>::type unsigned_value = this->bitset;
304 this->bitpos = static_cast<Tbitpos>(FindFirstBit(unsigned_value));
305 }
306 }
307 void Next()
308 {
309 this->bitset = KillFirstBit(this->bitset);

Callers 2

IteratorMethod · 0.95
IteratorClass · 0.95

Calls 1

FindFirstBitFunction · 0.85

Tested by

no test coverage detected