Re: Check mask all ones / all zeros
toggle quoted messageShow quoted text
yeeesh glad i don’t have to stare at that code too long.
i know it’s not your code ...
i think it could use a abs followed by a max reduction, then do the rest as scalar ops?
these macros appear to be targeted towards fixed-width simd. in particular i think they are making an assumption of very short vectors. in this snippet, it appears to want to compute all elements of the vector the same way ... with longer vectors, i would expect to use masks to separate the different computation types so it can be individualized for each element.
i haven’t studied the code in depth, but on the surface the all-mask-ones case seems to be not very useful here, nor does it really help with performance.
On Thu, May 20, 2021 at 4:02 AM Roger Ferrer Ibanez <roger.ferrer@...> wrote: