Re: [go-nuts] Re: Efficient bitmask twiddling

2020-09-01 Thread Rob Pike
It's not a bit array, it's a bool array. Can you make it a bit array and use bit != 0 for the boolean elsewhere? -rob On Wed, Sep 2, 2020 at 5:55 AM Oliver Smith < oliver.sm...@superevilmegacorp.com> wrote: > Do godbolt links get eaten? https://godbolt.org/z/vbeobs > > On Tuesday, September 1,

[go-nuts] Re: Efficient bitmask twiddling

2020-09-01 Thread Oliver Smith
Do godbolt links get eaten? https://godbolt.org/z/vbeobs On Tuesday, September 1, 2020 at 12:53:57 PM UTC-7 Oliver Smith wrote: > In the process of developing a piece of middleware, I need to translate > from a bit-array into a bitmask. I am struggling to find a way to express > this in go that