|
|
DescriptionPerformance optimizations for Checked(Add|Sub|Mul|Div)
This skips the more complicated math functions if we can can perform
the operations on a wider intermediate type.
R=tsepez@chromium.org
Committed: https://crrev.com/fc21258997b7cf8ca1fcf5e8d66af256815d5611
Cr-Commit-Position: refs/heads/master@{#432768}
Patch Set 1 #Patch Set 2 : simplify #Patch Set 3 : nit #
Total comments: 2
Messages
Total messages: 19 (11 generated)
Patchset #2 (id:20001) has been deleted
Description was changed from ========== Performance optimization for Checked(Add|Sub|Mul) This skips the more complicated math functions if we can can perform the operations on a wider intermediate type. R=tsepez@chromium.org ========== to ========== Performance optimizations for Checked(Add|Sub|Mul|Div) This skips the more complicated math functions if we can can perform the operations on a wider intermediate type. R=tsepez@chromium.org ==========
https://codereview.chromium.org/2510793004/diff/50001/base/numerics/safe_math... File base/numerics/safe_math_impl.h (right): https://codereview.chromium.org/2510793004/diff/50001/base/numerics/safe_math... base/numerics/safe_math_impl.h:284: is_valid &= CheckedAddImpl(static_cast<Promotion>(x), Do we maybe perform an operation here that we would have skipped in the old code, and is it safe to do so without spewing UBSAN warninging.
https://codereview.chromium.org/2510793004/diff/50001/base/numerics/safe_math... File base/numerics/safe_math_impl.h (right): https://codereview.chromium.org/2510793004/diff/50001/base/numerics/safe_math... base/numerics/safe_math_impl.h:284: is_valid &= CheckedAddImpl(static_cast<Promotion>(x), On 2016/11/16 21:16:08, Tom Sepez wrote: > Do we maybe perform an operation here that we would have skipped in the old > code, and is it safe to do so without spewing UBSAN warninging. The Impl functions should all be safe from undefined behavior. I went through and cleaned them up a few months ago. If it hits any, file a bug and I'll fix it.
The CQ bit was checked by jschuh@chromium.org to run a CQ dry run
Dry run: CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.or...
The CQ bit was unchecked by commit-bot@chromium.org
Dry run: Try jobs failed on following builders: linux_chromium_chromeos_ozone_rel_ng on master.tryserver.chromium.linux (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.linux/builders/linux_chromium_...) linux_chromium_clobber_rel_ng on master.tryserver.chromium.linux (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.linux/builders/linux_chromium_...)
lgtm
The CQ bit was checked by jschuh@chromium.org
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.or...
The CQ bit was unchecked by commit-bot@chromium.org
Try jobs failed on following builders: android_arm64_dbg_recipe on master.tryserver.chromium.android (JOB_TIMED_OUT, no build URL) android_clang_dbg_recipe on master.tryserver.chromium.android (JOB_TIMED_OUT, no build URL)
The CQ bit was checked by jschuh@chromium.org
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.or...
Message was sent while issue was closed.
Description was changed from ========== Performance optimizations for Checked(Add|Sub|Mul|Div) This skips the more complicated math functions if we can can perform the operations on a wider intermediate type. R=tsepez@chromium.org ========== to ========== Performance optimizations for Checked(Add|Sub|Mul|Div) This skips the more complicated math functions if we can can perform the operations on a wider intermediate type. R=tsepez@chromium.org ==========
Message was sent while issue was closed.
Committed patchset #3 (id:50001)
Message was sent while issue was closed.
Description was changed from ========== Performance optimizations for Checked(Add|Sub|Mul|Div) This skips the more complicated math functions if we can can perform the operations on a wider intermediate type. R=tsepez@chromium.org ========== to ========== Performance optimizations for Checked(Add|Sub|Mul|Div) This skips the more complicated math functions if we can can perform the operations on a wider intermediate type. R=tsepez@chromium.org Committed: https://crrev.com/fc21258997b7cf8ca1fcf5e8d66af256815d5611 Cr-Commit-Position: refs/heads/master@{#432768} ==========
Message was sent while issue was closed.
Patchset 3 (id:??) landed as https://crrev.com/fc21258997b7cf8ca1fcf5e8d66af256815d5611 Cr-Commit-Position: refs/heads/master@{#432768} |