X-Git-Url: https://git.llucax.com/software/dgc/cdgc.git/blobdiff_plain/b78600681ff7735e523edbae7adfeb3577db0f41..5b2d2da5852125f6accb61bdaf6eeda0776ebf85:/rt/gc/cdgc/bits.d?ds=sidebyside diff --git a/rt/gc/cdgc/bits.d b/rt/gc/cdgc/bits.d index 6bfb073..7c06c83 100644 --- a/rt/gc/cdgc/bits.d +++ b/rt/gc/cdgc/bits.d @@ -165,6 +165,23 @@ struct GCBits cstring.memset(data + 1, 0, nwords * uint.sizeof); } + void set_all() + { + cstring.memset(data + 1, 0xff, nwords * uint.sizeof); + } + + void set_group(size_t base, size_t nbits) + in + { + } + body + { + assert ((base % 8) == 0); + assert ((nbits % 8) == 0); + size_t nbytes = nbits / 8; + cstring.memset(data + 1 + (base >> BITS_SHIFT), 0xff, nbytes); + } + void copy(GCBits *f) in {