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

Function GetTileHash1D

src/vehicle.cpp:397–400  ·  view source on GitHub ↗

* Compute hash for 1D tile coordinate. */

Source from the content-addressed store, hash-verified

395 * Compute hash for 1D tile coordinate.
396 */
397static inline uint GetTileHash1D(uint p)
398{
399 return GB(p, TILE_HASH_RES, TILE_HASH_BITS);
400}
401
402/**
403 * Increment 1D hash to next bucket.

Callers 2

GetTileHashFunction · 0.85
IteratorMethod · 0.85

Calls 1

GBFunction · 0.85

Tested by

no test coverage detected