Open dschwoerer opened 4 months ago
clang-tidy review says "All clean, LGTM! :+1:"
I think it is not so bad - if you know the sign of the offset, you can pick a specific one, otherwise the other. Even if it is not an issue right now with a specific compiler, it might become one for a different compiler or architecture (e.g. GPUs)
If we allow z splitting, that anyway changes :sweat_smile:
This is a bit of a frustrating situation, I guess we didn't allow
zp(-1)
as it would involve extra branching to avoid negative numbers in the mod for periodicity. It would be good to know if this is really still a problem performance-wise.