[Gnucash-changes] QOF/CashUtil Sync: Engine

Neil Williams linux at codehelp.co.uk
Wed Aug 17 09:30:22 EDT 2005


On Wednesday 17 August 2005 1:24 pm, Derek Atkins wrote:
> Neil Williams <codehelp at cvs.gnucash.org> writes:
> > diff -Lsrc/engine/gnc-numeric.c -Lsrc/engine/gnc-numeric.c -u -r1.26.4.7
> > -r1.26.4.8 --- src/engine/gnc-numeric.c
> > +++ src/engine/gnc-numeric.c
> > @@ -33,7 +33,7 @@
> >  #include <string.h>
> >
> >  #include "gnc-numeric.h"
> > -#include "qofmath128.c"
> > +#include "qofmath128.h"
>
> Why did you change this?  This was done this way for a reason,
> to allow the compiler to optimize the 128-bit math functions
> in the gnc-numeric object file.  By #including the .c file you
> let the compiler optimize out the function calls, whereas if you
> don't then it can't.

If it is included, does it have to also go into the distribution and include 
directory?

I wanted to change it so that qofmath128.h is put into qof/include, not the C 
file - (if indeed the h file needs to be there at all.)

-- 

Neil Williams
=============
http://www.data-freedom.org/
http://www.nosoftwarepatents.com/
http://www.linux.codehelp.co.uk/

-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 189 bytes
Desc: not available
Url : http://lists.gnucash.org/pipermail/gnucash-devel/attachments/20050817/730e673c/attachment.bin


More information about the gnucash-devel mailing list