Rietveld Code Review Tool
Help | Bug tracker | Discussion group | Source code | Sign in
(2610)

Issue 6094047: code review 6094047: math: ARM assembly implementation for Abs (Closed)

Can't Edit
Can't Publish+Mail
Start Review
Created:
12 years ago by minux1
Modified:
12 years ago
Reviewers:
CC:
dave_cheney.net, remyoudompheng, mtj1, rsc, golang-dev
Visibility:
Public.

Description

math: ARM assembly implementation for Abs Obtained on 700MHz OMAP4460: benchmark old ns/op new ns/op delta BenchmarkAbs 61 23 -61.63%

Patch Set 1 #

Patch Set 2 : diff -r 23c94e7b3fd6 https://code.google.com/p/go/ #

Patch Set 3 : diff -r 23c94e7b3fd6 https://code.google.com/p/go/ #

Total comments: 1

Patch Set 4 : diff -r 69a5c6d983b4 https://code.google.com/p/go/ #

Patch Set 5 : diff -r 69a5c6d983b4 https://code.google.com/p/go/ #

Unified diffs Side-by-side diffs Delta from patch set Stats (+6 lines, -1 line) Patch
M src/pkg/math/abs_arm.s View 1 2 3 1 chunk +6 lines, -1 line 0 comments Download

Messages

Total messages: 13
minux1
Hello golang-dev@googlegroups.com (cc: golang-dev@googlegroups.com), I'd like you to review this change to https://code.google.com/p/go/
12 years ago (2012-04-21 11:13:21 UTC) #1
dave_cheney.net
I can't speak to the accuracy of this change, but the results are equally impressive ...
12 years ago (2012-04-21 11:22:35 UTC) #2
minux1
I can squeeze one more ns out if we use ldrd and strd. TEXT ·Abs(SB),7,$0 ...
12 years ago (2012-04-21 14:34:11 UTC) #3
remyoudompheng
How does this compare to the following Go code? func abs(x float64) (y float64) { ...
12 years ago (2012-04-21 17:28:10 UTC) #4
minux1
On Sun, Apr 22, 2012 at 1:28 AM, <remyoudompheng@gmail.com> wrote: > How does this compare ...
12 years ago (2012-04-21 17:46:11 UTC) #5
mtj1
Which is the key to all of this tuning -- it is "non floating point" ...
12 years ago (2012-04-21 17:52:03 UTC) #6
minux1
On Sun, Apr 22, 2012 at 1:45 AM, minux <minux.ma@gmail.com> wrote: > > On Sun, ...
12 years ago (2012-04-21 18:01:54 UTC) #7
remyoudompheng
Le 21 avril 2012 19:51, Michael Jones <mtj@google.com> a écrit : > Which is the ...
12 years ago (2012-04-21 18:02:19 UTC) #8
dave_cheney.net
> But, to make it acceptable, I must first add LDRD and STRD to 5a ...
12 years ago (2012-04-21 23:55:56 UTC) #9
rsc
http://codereview.appspot.com/6094047/diff/5001/src/pkg/math/abs_arm.s File src/pkg/math/abs_arm.s (right): http://codereview.appspot.com/6094047/diff/5001/src/pkg/math/abs_arm.s#newcode7 src/pkg/math/abs_arm.s:7: MOVW 0(FP), R0 please use variable names and try ...
12 years ago (2012-04-23 14:54:09 UTC) #10
minux1
Hello dave@cheney.net, remyoudompheng@gmail.com, mtj@google.com, rsc@golang.org (cc: golang-dev@googlegroups.com), Please take another look.
12 years ago (2012-04-23 15:40:49 UTC) #11
rsc
LGTM
12 years ago (2012-04-23 15:42:39 UTC) #12
minux1
12 years ago (2012-04-23 15:47:50 UTC) #13
*** Submitted as http://code.google.com/p/go/source/detail?r=5a1d471de6d2 ***

math: ARM assembly implementation for Abs

Obtained on 700MHz OMAP4460:
benchmark       old ns/op    new ns/op    delta
BenchmarkAbs           61           23  -61.63%

R=dave, remyoudompheng, mtj, rsc
CC=golang-dev
http://codereview.appspot.com/6094047
Sign in to reply to this message.

Powered by Google App Engine
RSS Feeds Recent Issues | This issue
This is Rietveld f62528b