Details
-
Improvement
-
Status: Closed
-
Minor
-
Resolution: Fixed
-
3.1.1
-
None
Description
Faster implementations of abs() which use bitwise operations in preference to branching. By my benchmark abs(double/float) are about 10-20% faster, and abs(long/int) more than twice as fast. Patch attached.