X-Git-Url: https://git.llucax.com/software/dgc/cdgc.git/blobdiff_plain/b78600681ff7735e523edbae7adfeb3577db0f41..9d60963df0295d680423c4b133a75ac26db398e2:/rt/gc/cdgc/bits.d?ds=inline 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 {