Style question: ternary operator or short circuit operator or if-end

How about a = max(a,0) and let the compiler do it’s magic? Easy to understand and likely to inline to almost nothing.

8 Likes