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
How about a = max(a,0)
and let the compiler do it’s magic? Easy to understand and likely to inline to almost nothing.