I kind of have need of a fast 256-bit type which I can do bit operations (AND, OR, any, all) on. Is such a type available in the burst intrinsic somewhere? Thanks!
Not that I’m aware of, but you can stack multiple ints to achieve 256 bit capacity. Having 8 ints (32 bit) can get there and will probably be similar speed.
There are AVX instructions for working with 256-bit vectors, namely _mm256_testc_si256, which does the test and the AND as a single step and can be as low as 3 cycles of latency (so basically as fast as an integer multiply). This is very useful for bloom filters and database indexing (eg processing billions of rows of financial data).
But for my use case right now, 4 ulongs will probably be fast enough :-). Just checking to see if it was exposed in the unity collection types, but it seems not.