The problem should be equivalent to: https://www.reddit.com/r/simd/comments/1hmwukl/mask_calculat...
Falvyu's and bremac's solution seems to be the best.
Falvyu's and bremac's solution seems to be the best.
https://gist.github.com/zokrezyl/8574bf5d40a6efae28c9569a8d6...