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

Issue 2636453003: [conversions] Make "DoubleToUint32IfEqualToSelf" use bit magic (Closed)

Created:
3 years, 11 months ago by Leszek Swirski
Modified:
3 years, 11 months ago
Reviewers:
rmcilroy
CC:
v8-reviews_googlegroups.com
Target Ref:
refs/pending/heads/master
Project:
v8
Visibility:
Public.

Description

[conversions] Make "DoubleToUint32IfEqualToSelf" use bit magic Uses the structure of an IEEE float to speed up DoubleToUint32IfEqualToSelf, similar to FastD2UI. Micro-benchmarks show a ~1.2x-2x speed-up, depending on the input. Review-Url: https://codereview.chromium.org/2636453003 Cr-Commit-Position: refs/heads/master@{#42420} Committed: https://chromium.googlesource.com/v8/v8/+/5dbc1ba0f999161bb10548eba78aa9d22199d4be

Patch Set 1 #

Total comments: 6

Patch Set 2 : Change. Everything. #

Total comments: 2

Patch Set 3 : Use FastUI2D #

Unified diffs Side-by-side diffs Delta from patch set Stats (+26 lines, -8 lines) Patch
M src/conversions-inl.h View 1 2 2 chunks +26 lines, -8 lines 0 comments Download

Messages

Total messages: 24 (14 generated)
Leszek Swirski
Hi Ross, This is the bit magic I was talking about for the double to ...
3 years, 11 months ago (2017-01-13 16:41:46 UTC) #4
rmcilroy
Looks good overall, one question. https://codereview.chromium.org/2636453003/diff/1/src/conversions-inl.h File src/conversions-inl.h (right): https://codereview.chromium.org/2636453003/diff/1/src/conversions-inl.h#newcode154 src/conversions-inl.h:154: memcpy(&check, top_ptr, sizeof(uint32_t)); Could ...
3 years, 11 months ago (2017-01-16 14:12:12 UTC) #7
Leszek Swirski
https://codereview.chromium.org/2636453003/diff/1/src/conversions-inl.h File src/conversions-inl.h (right): https://codereview.chromium.org/2636453003/diff/1/src/conversions-inl.h#newcode154 src/conversions-inl.h:154: memcpy(&check, top_ptr, sizeof(uint32_t)); On 2017/01/16 14:12:11, rmcilroy wrote: > ...
3 years, 11 months ago (2017-01-16 14:26:55 UTC) #8
rmcilroy
https://codereview.chromium.org/2636453003/diff/1/src/conversions-inl.h File src/conversions-inl.h (right): https://codereview.chromium.org/2636453003/diff/1/src/conversions-inl.h#newcode154 src/conversions-inl.h:154: memcpy(&check, top_ptr, sizeof(uint32_t)); On 2017/01/16 14:26:54, Leszek Swirski wrote: ...
3 years, 11 months ago (2017-01-16 15:59:51 UTC) #9
Leszek Swirski
On 2017/01/16 15:59:51, rmcilroy wrote: > >I could use > > bitcast to cast the ...
3 years, 11 months ago (2017-01-16 16:04:02 UTC) #10
Leszek Swirski
https://codereview.chromium.org/2636453003/diff/1/src/conversions-inl.h File src/conversions-inl.h (right): https://codereview.chromium.org/2636453003/diff/1/src/conversions-inl.h#newcode154 src/conversions-inl.h:154: memcpy(&check, top_ptr, sizeof(uint32_t)); On 2017/01/16 15:59:51, rmcilroy wrote: > ...
3 years, 11 months ago (2017-01-17 12:36:20 UTC) #14
rmcilroy
LGTM once comment addressed. https://codereview.chromium.org/2636453003/diff/20001/src/conversions-inl.h File src/conversions-inl.h (right): https://codereview.chromium.org/2636453003/diff/20001/src/conversions-inl.h#newcode150 src/conversions-inl.h:150: return (result & kBottomBitMask) == ...
3 years, 11 months ago (2017-01-17 15:46:07 UTC) #17
Leszek Swirski
https://codereview.chromium.org/2636453003/diff/20001/src/conversions-inl.h File src/conversions-inl.h (right): https://codereview.chromium.org/2636453003/diff/20001/src/conversions-inl.h#newcode150 src/conversions-inl.h:150: return (result & kBottomBitMask) == value; On 2017/01/17 15:46:07, ...
3 years, 11 months ago (2017-01-17 16:06:45 UTC) #18
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.org/2636453003/40001
3 years, 11 months ago (2017-01-17 16:07:08 UTC) #21
commit-bot: I haz the power
3 years, 11 months ago (2017-01-17 16:38:54 UTC) #24
Message was sent while issue was closed.
Committed patchset #3 (id:40001) as
https://chromium.googlesource.com/v8/v8/+/5dbc1ba0f999161bb10548eba78aa9d2219...

Powered by Google App Engine
This is Rietveld 408576698