BitSet: Some small additions

Also add requirements for using range functions.
And micro-optimize testing if a bit is set (GCC and MSVC struggle to emit `bt` or `tbz`/`tbnz` with `bs & (1 << n)` compared to `(bs >> n) & 1`).
This commit is contained in:
Martino Fontana committed 2026-11-15 22:31:04 +01:00
1 parent c73fcc1530
commit 14d5fe714d
9 files changed
+41 -28

No files matched your search

@@ -135,8 +135,8 @@ void UpdateVertexArrayPointers()
void MarkAllDirty()
{
g_bases_dirty = true;
g_main_vat_dirty = BitSet8::AllTrue(8);
g_preprocess_vat_dirty = BitSet8::AllTrue(8);
g_main_vat_dirty = BitSet8::AllTrue();
g_preprocess_vat_dirty = BitSet8::AllTrue();
g_needs_cp_xf_consistency_check = true;
}