r21130 - gnucash/trunk/src/libqof/qof - Add note for qofmath128.c include in the source file itself
Geert Janssens
gjanssens at code.gnucash.org
Mon Aug 8 10:31:23 EDT 2011
Author: gjanssens
Date: 2011-08-08 10:31:23 -0400 (Mon, 08 Aug 2011)
New Revision: 21130
Trac: http://svn.gnucash.org/trac/changeset/21130
Modified:
gnucash/trunk/src/libqof/qof/gnc-numeric.c
Log:
Add note for qofmath128.c include in the source file itself
Modified: gnucash/trunk/src/libqof/qof/gnc-numeric.c
===================================================================
--- gnucash/trunk/src/libqof/qof/gnc-numeric.c 2011-08-08 12:42:30 UTC (rev 21129)
+++ gnucash/trunk/src/libqof/qof/gnc-numeric.c 2011-08-08 14:31:23 UTC (rev 21130)
@@ -34,8 +34,13 @@
#include <string.h>
#include "gnc-numeric.h"
-#include "qofmath128.c" /* FIXME: Why is this C file included here?!? */
+/* Note: The qofmath128 functions are used mostly here and almost
+ nowhere else. Hence, we inline the C code directly into here so
+ that the compiler can potentially inline the code as-is and speed
+ up the gnc-numeric.c functions. */
+#include "qofmath128.c"
+
/* static short module = MOD_ENGINE; */
/* =============================================================== */
More information about the gnucash-changes
mailing list