Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(411)

Issue 1726893002: Remove FXSYS_MulDiv(a, b, c). (Closed)

Created:
4 years, 10 months ago by dsinclair
Modified:
4 years, 10 months ago
Reviewers:
Tom Sepez, Lei Zhang
CC:
pdfium-reviews_googlegroups.com
Base URL:
https://pdfium.googlesource.com/pdfium.git@master
Target Ref:
refs/heads/master
Visibility:
Public.

Description

Remove FXSYS_MulDiv(a, b, c). This is a wrapper which does (a) * (b) / (c). Inline the operations. R=thestig@chromium.org Committed: https://pdfium.googlesource.com/pdfium/+/435604d371de48044ae6c1567479b34e0d93e298

Patch Set 1 #

Patch Set 2 : Rebase to master #

Total comments: 2

Patch Set 3 : #

Total comments: 1
Unified diffs Side-by-side diffs Delta from patch set Stats (+23 lines, -30 lines) Patch
M core/include/fxcrt/fx_system.h View 1 1 chunk +0 lines, -1 line 1 comment Download
M core/src/fpdfapi/fpdf_render/fpdf_render_pattern.cpp View 1 2 2 chunks +6 lines, -10 lines 0 comments Download
M core/src/fxge/ge/fx_ge_path.cpp View 1 1 chunk +3 lines, -4 lines 0 comments Download
M third_party/agg23/agg_math.h View 2 chunks +3 lines, -3 lines 0 comments Download
M third_party/agg23/agg_math_stroke.h View 1 1 chunk +4 lines, -4 lines 0 comments Download
M third_party/agg23/agg_vcgen_stroke.cpp View 1 chunk +7 lines, -8 lines 0 comments Download

Messages

Total messages: 7 (2 generated)
dsinclair
PTAL.
4 years, 10 months ago (2016-02-23 21:00:02 UTC) #2
Lei Zhang
lgtm https://codereview.chromium.org/1726893002/diff/20001/core/src/fpdfapi/fpdf_render/fpdf_render_pattern.cpp File core/src/fpdfapi/fpdf_render/fpdf_render_pattern.cpp (right): https://codereview.chromium.org/1726893002/diff/20001/core/src/fpdfapi/fpdf_render/fpdf_render_pattern.cpp#newcode358 core/src/fpdfapi/fpdf_render/fpdf_render_pattern.cpp:358: r[nIntersects] = vertex1.r + ((vertex2.r - vertex1.r) * ...
4 years, 10 months ago (2016-02-23 21:22:40 UTC) #3
dsinclair
https://codereview.chromium.org/1726893002/diff/20001/core/src/fpdfapi/fpdf_render/fpdf_render_pattern.cpp File core/src/fpdfapi/fpdf_render/fpdf_render_pattern.cpp (right): https://codereview.chromium.org/1726893002/diff/20001/core/src/fpdfapi/fpdf_render/fpdf_render_pattern.cpp#newcode358 core/src/fpdfapi/fpdf_render/fpdf_render_pattern.cpp:358: r[nIntersects] = vertex1.r + ((vertex2.r - vertex1.r) * (y ...
4 years, 10 months ago (2016-02-23 21:31:27 UTC) #4
dsinclair
Committed patchset #3 (id:40001) manually as 435604d371de48044ae6c1567479b34e0d93e298 (presubmit successful).
4 years, 10 months ago (2016-02-23 21:31:48 UTC) #6
Tom Sepez
4 years, 10 months ago (2016-02-23 23:40:12 UTC) #7
Message was sent while issue was closed.
https://codereview.chromium.org/1726893002/diff/40001/core/include/fxcrt/fx_s...
File core/include/fxcrt/fx_system.h (right):

https://codereview.chromium.org/1726893002/diff/40001/core/include/fxcrt/fx_s...
core/include/fxcrt/fx_system.h:272: #define FXSYS_sqrt2(a, b) (FX_FLOAT)
FXSYS_sqrt((a) * (a) + (b) * (b))
Nit: Let's someday make this a function rather than a macro to avoid
mulit-evaluation, like all the others here.

Powered by Google App Engine
This is Rietveld 408576698