MCPcopy Create free account
hub / github.com/BlitterStudio/amiberry / ImBitArraySetBit

Function ImBitArraySetBit

external/imgui/imgui_internal.h:632–632  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

630inline bool ImBitArrayTestBit(const ImU32* arr, int n) { ImU32 mask = (ImU32)1 << (n & 31); return (arr[n >> 5] & mask) != 0; }
631inline void ImBitArrayClearBit(ImU32* arr, int n) { ImU32 mask = (ImU32)1 << (n & 31); arr[n >> 5] &= ~mask; }
632inline void ImBitArraySetBit(ImU32* arr, int n) { ImU32 mask = (ImU32)1 << (n & 31); arr[n >> 5] |= mask; }
633inline void ImBitArraySetBitRange(ImU32* arr, int n, int n2) // Works on range [n..n2)
634{
635 n2--;

Callers 4

TableUpdateLayoutMethod · 0.85
SetBitMethod · 0.85
SetBitFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected