On 09/15/2012 12:24 PM, Torbjorn Granlund wrote:
Pádraig Brady<p...@draigbrady.com>  writes:

   For comparison here is an add function that used to be in coreutils:
   
http://git.sv.gnu.org/gitweb/?p=coreutils.git;a=blob;f=src/getlimits.c;hb=a2be861b#l81

Same thing, very different styles.

I cannot help writing code for high performance.  Compact source code is
low on my list.  There is only one branch in my code that will not
predict well for typical usage (the on at cy != 0).  I suppose many
people find your higher-level and more compact style easier to read.

Speed is the main reason for such code.
I expect we'll use your version.
My reference was mainly for myself so
I could compare speed.

thanks!
Pádraig.


Reply via email to