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

Function AssignBit

src/core/bitmath_func.hpp:176–179  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

174 */
175template <typename T>
176constexpr T AssignBit(T &x, const uint8_t y, bool value)
177{
178 return SB<T>(x, y, 1, value ? 1 : 0);
179}
180
181/**
182 * Search the first set bit in a value.

Callers 15

SetWaitTimetabledMethod · 0.85
SetTravelTimetabledMethod · 0.85
SetStationTileBlockedFunction · 0.85
SetStationTileHaveWiresFunction · 0.85
SetStationTileHavePylonsFunction · 0.85
SetCrossingReservationFunction · 0.85
SetCrossingBarredFunction · 0.85
BuildGuiGroupListFunction · 0.85
RestoreMethod · 0.85
SetDockingTileFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected