9 ms·
why would you possibly want that? and in what size? byte? long?
by dmitrygr 7y ago
why would you possibly want that?
and in what size? byte? long?
- IshKebab 7y agoI think it's helpful for SIMD operations, in some way that I can't quite remember.
- haneefmubarak 7y agoThe reasoning there would be that you could use bitwise operations to mask inputs from two vectors into one (think vectorized conditional move), which effectively allows you to easily achieve performant branch predication. However, you can trivially achieve this the normal way by including simple instructions that allow you to select or combine vector inputs. If that's not a path they want to go down, it's also doable to take a slight performance hit and achieve the same with the use of multiplication instructions.