MCPcopy Create free account
hub / github.com/RenderKit/embree / ImBitArraySetBit

Function ImBitArraySetBit

tutorials/common/imgui/imgui_internal.h:552–552  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

550inline bool ImBitArrayTestBit(const ImU32* arr, int n) { ImU32 mask = (ImU32)1 << (n & 31); return (arr[n >> 5] & mask) != 0; }
551inline void ImBitArrayClearBit(ImU32* arr, int n) { ImU32 mask = (ImU32)1 << (n & 31); arr[n >> 5] &= ~mask; }
552inline void ImBitArraySetBit(ImU32* arr, int n) { ImU32 mask = (ImU32)1 << (n & 31); arr[n >> 5] |= mask; }
553inline void ImBitArraySetBitRange(ImU32* arr, int n, int n2) // Works on range [n..n2)
554{
555 n2--;

Callers 2

SetBitMethod · 0.85
SetBitFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected