diff options
author | Dan Sinclair <dsinclair@chromium.org> | 2016-02-23 15:23:29 -0500 |
---|---|---|
committer | Dan Sinclair <dsinclair@chromium.org> | 2016-02-23 15:23:29 -0500 |
commit | 2c8fad44315db58f5b3222161dcb699691dca904 (patch) | |
tree | 70e9bdf55e1e3197d8bd088abd103012b602e32f /third_party/agg23/agg_clip_liang_barsky.h | |
parent | 2886a25b68225ad3ad70d417b01108ad1d126488 (diff) | |
download | pdfium-2c8fad44315db58f5b3222161dcb699691dca904.tar.xz |
Remove FXSYS_Mul.
This define just multiples the two parameters together. Inline the *'s.
R=thestig@chromium.org
Review URL: https://codereview.chromium.org/1729613003 .
Diffstat (limited to 'third_party/agg23/agg_clip_liang_barsky.h')
-rw-r--r-- | third_party/agg23/agg_clip_liang_barsky.h | 16 |
1 files changed, 8 insertions, 8 deletions
diff --git a/third_party/agg23/agg_clip_liang_barsky.h b/third_party/agg23/agg_clip_liang_barsky.h index cfc4c91f60..13e4ab9e30 100644 --- a/third_party/agg23/agg_clip_liang_barsky.h +++ b/third_party/agg23/agg_clip_liang_barsky.h @@ -85,21 +85,21 @@ inline unsigned clip_liang_barsky(T x1, T y1, T x2, T y2, if(tin2 <= tout1) { if(tin2 > 0) { if(tinx > tiny) { - *x++ = (T)xin; - *y++ = (T)(y1 + FXSYS_Mul(deltay, tinx)); + *x++ = (T)xin; + *y++ = (T)(y1 + (deltay * tinx)); } else { - *x++ = (T)(x1 + FXSYS_Mul(deltax, tiny)); - *y++ = (T)yin; + *x++ = (T)(x1 + (deltax * tiny)); + *y++ = (T)yin; } ++np; } if(tout1 < 1.0f) { if(toutx < touty) { - *x++ = (T)xout; - *y++ = (T)(y1 + FXSYS_Mul(deltay, toutx)); + *x++ = (T)xout; + *y++ = (T)(y1 + (deltay * toutx)); } else { - *x++ = (T)(x1 + FXSYS_Mul(deltax, touty)); - *y++ = (T)yout; + *x++ = (T)(x1 + (deltax * touty)); + *y++ = (T)yout; } } else { *x++ = x2; |