You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Improvements over the vnl_math variants these functions replace:
- squared_magnitude(int/long/long long): multiply in the unsigned type;
vnl's x * x is signed-overflow UB for |x| > sqrt(max).
- remainder_floored (signed integral): single-modulo conditional add;
vnl's ((x % y) + y) % y overflows the intermediate for |y| > max/2.
- angle_0_to_2pi: drop an unreachable tail return inherited from vnl.
0 commit comments