This is the mail archive of the libc-alpha@sourceware.org mailing list for the glibc project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: [PATCH] Use saturated arithmetic for overflow detection.


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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]