[cairo-bugs] [Bug 9994] performance opportunities in cairo

bugzilla-daemon at freedesktop.org bugzilla-daemon at freedesktop.org
Thu Mar 1 23:02:33 PST 2007


http://bugs.freedesktop.org/show_bug.cgi?id=9994





------- Comment #1 from brian.cameron at sun.com  2007-03-01 23:02 PST -------

I also notice that these macros are used extensively in this function.

#define DIV(a,b) ((((a) < 0) == ((b) < 0)) ? (a) / (b) :\
        ((a) - (b) + 1 - (((b) < 0) << 1)) / (b))

#define MOD(a, b) ((b) == 1 ? 0 : \
        (a) >= 0 ? (a) % (b) : (b) - (-(a) - 1) % (b) - 1)

I wonder whether they can be simplified and/or sped up.  They look a bit labor
intensive.


-- 
Configure bugmail: http://bugs.freedesktop.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the QA contact for the bug, or are watching the QA contact.


More information about the cairo-bugs mailing list