[PATCH] Use saturated arithmetic for overflow detection.

Joseph S. Myers joseph@codesourcery.com
Fri Nov 1 16:51:00 GMT 2013


On Fri, 1 Nov 2013, Ondrej Bilka wrote:

> I wrote and attached quick benchmark for v2 of patch.

What's relevant is real uses of glibc.  Unless saturated operations are 
significant to the performance of normal glibc operations, optimize for 
code size (I don't know which version would be smallest) and for ease of 
understanding and maintaining the glibc code (which dictates not having 
architecture-specific variants).

-- 
Joseph S. Myers
joseph@codesourcery.com



More information about the Libc-alpha mailing list