Comment Comment by chkas You can take a look at this - it's fast even without vector operations, as long as you avoid the branches that are often predicted incorrectly.https://easylang.online/blog/branchless parent chkas 6 months ago
https://easylang.online/blog/branchless