Optimize gnc_numeric_check() by G_LIKELY-fying that the denominator is non-zero.

git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@17534 57a11ea4-9604-0410-9ed3-97b8803252fd
This commit is contained in:
Andreas Köhler
2008-09-16 23:00:01 +00:00
parent 609533e88d
commit 44a07ec81c
+1 -1
View File
@@ -58,7 +58,7 @@ static const char * _numeric_error_strings[] =
inline GNCNumericErrorCode
gnc_numeric_check(gnc_numeric in)
{
if(in.denom != 0)
if(G_LIKELY(in.denom != 0))
{
return GNC_ERROR_OK;
}