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

Issue 1407213002: Implement Math.tanh using fdlibm port. (Closed)

Created:
5 years, 2 months ago by Yang
Modified:
5 years, 2 months ago
CC:
v8-reviews_googlegroups.com
Base URL:
https://chromium.googlesource.com/v8/v8.git@master
Target Ref:
refs/pending/heads/master
Project:
v8
Visibility:
Public.

Description

Implement Math.tanh using fdlibm port. Contributed by Raymond Toy: http://rtoy.github.io/fdlibm-js/ R=jkummerow@chromium.org BUG=v8:3495 LOG=N Committed: https://crrev.com/47c9e1c904050f82c4e527c5f86fc287856cdd3c Cr-Commit-Position: refs/heads/master@{#31335}

Patch Set 1 #

Patch Set 2 : simplified some comments #

Patch Set 3 : delete the actual old implementation #

Total comments: 1
Unified diffs Side-by-side diffs Delta from patch set Stats (+76 lines, -13 lines) Patch
M src/js/math.js View 1 2 2 chunks +0 lines, -13 lines 0 comments Download
M src/third_party/fdlibm/fdlibm.js View 1 2 chunks +58 lines, -0 lines 1 comment Download
M test/mjsunit/es6/math-hyperbolic.js View 1 chunk +18 lines, -0 lines 0 comments Download

Messages

Total messages: 16 (6 generated)
Yang
5 years, 2 months ago (2015-10-16 08:11:10 UTC) #1
Jakob Kummerow
lgtm
5 years, 2 months ago (2015-10-16 08:35:05 UTC) #2
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1407213002/20001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1407213002/20001
5 years, 2 months ago (2015-10-16 09:55:05 UTC) #5
commit-bot: I haz the power
Try jobs failed on following builders: v8_linux_nodcheck_rel on tryserver.v8 (JOB_FAILED, http://build.chromium.org/p/tryserver.v8/builders/v8_linux_nodcheck_rel/builds/7564) v8_linux_rel on tryserver.v8 (JOB_FAILED, ...
5 years, 2 months ago (2015-10-16 09:57:25 UTC) #7
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1407213002/40001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1407213002/40001
5 years, 2 months ago (2015-10-16 11:40:56 UTC) #10
commit-bot: I haz the power
Committed patchset #3 (id:40001)
5 years, 2 months ago (2015-10-16 12:56:23 UTC) #11
commit-bot: I haz the power
Patchset 3 (id:??) landed as https://crrev.com/47c9e1c904050f82c4e527c5f86fc287856cdd3c Cr-Commit-Position: refs/heads/master@{#31335}
5 years, 2 months ago (2015-10-16 12:56:43 UTC) #12
Raymond Toy
Thanks so much for doing this! https://codereview.chromium.org/1407213002/diff/40001/src/third_party/fdlibm/fdlibm.js File src/third_party/fdlibm/fdlibm.js (right): https://codereview.chromium.org/1407213002/diff/40001/src/third_party/fdlibm/fdlibm.js#newcode869 src/third_party/fdlibm/fdlibm.js:869: define TWO_M55 = ...
5 years, 2 months ago (2015-10-16 17:07:25 UTC) #14
Yang
On 2015/10/16 17:07:25, Raymond Toy wrote: > Thanks so much for doing this! > > ...
5 years, 2 months ago (2015-10-16 18:06:40 UTC) #15
Raymond Toy
5 years, 2 months ago (2015-10-20 15:55:11 UTC) #16
Message was sent while issue was closed.
On 2015/10/16 at 18:06:40, yangguo wrote:
> On 2015/10/16 17:07:25, Raymond Toy wrote:
> > Thanks so much for doing this!
> > 
> >
https://codereview.chromium.org/1407213002/diff/40001/src/third_party/fdlibm/...
> > File src/third_party/fdlibm/fdlibm.js (right):
> > 
> >
https://codereview.chromium.org/1407213002/diff/40001/src/third_party/fdlibm/...
> > src/third_party/fdlibm/fdlibm.js:869: define TWO_M55 =
> > 2.77555756156289135105e-17;  // 2^-55, empty lower half
> > A bit late, but this comment is incorrect.  Since 2^-55 is a power of two,
the
> > lower half is always empty.  The comment here implies to me that you've
forcibly
> > made the lower half zero, but it was already zero anyway.
> 
> What I meant is exactly that: the lower half of 2^-55 is already empty, which
is why we define it as number literal and not part of the constant array, as
loading the constant into memory on 32 bit systems is cheap. A little bit above
we have the same definition and comment for 2^-28.

I don't understand why the lower half being zero makes defining it as a literal
better.  But no worries. I don't have to know as long as it makes sense to you
and the reviewers.

Powered by Google App Engine
This is Rietveld 408576698