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

Issue 6351058: math: add fast path for Pow(x, 2) (Closed)

Can't Edit
Can't Publish+Mail
Start Review
Created:
11 years, 10 months ago by dave
Modified:
11 years, 8 months ago
Reviewers:
minux1, remyoudompheng
Visibility:
Public.

Description

math: add fast path for Pow(x, 2) linux/arm. ARMv5 benchmark old ns/op new ns/op delta BenchmarkPowInt 59195 6505 -89.01% BenchmarkPowFrac 153932 154104 +0.11% BenchmarkPow10Pos 13941 14052 +0.80% BenchmarkPow10Neg 17312 17283 -0.17% linux/amd64. Core i5 benchmark old ns/op new ns/op delta BenchmarkPowInt 60 6 -89.65% BenchmarkPowFrac 127 128 +0.79% BenchmarkPow10Pos 75 75 -0.13% BenchmarkPow10Neg 80 79 -0.12% darwin/386. Core Duo benchmark old ns/op new ns/op delta BenchmarkPowInt 191 14 -92.67% BenchmarkPowFrac 348 348 +0.00% BenchmarkPow10Pos 336 336 +0.00% BenchmarkPow10Neg 324 325 +0.31% Also reduces math/rand test runtime by 6x on linux/arm,Arm5.

Patch Set 1 #

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

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

Messages

Total messages: 5
dave_cheney.net
PTAL
11 years, 10 months ago (2012-07-03 00:09:13 UTC) #1
minux1
On Jul 3, 2012 8:09 AM, <dave@cheney.net> wrote: > Description: > math: add fast path ...
11 years, 10 months ago (2012-07-03 02:31:55 UTC) #2
dave_cheney.net
Ironically, the only place in the whole tree that called Pow(x, 2), was the math/rand ...
11 years, 10 months ago (2012-07-03 02:34:05 UTC) #3
minux1
On Jul 3, 2012 10:34 AM, "Dave Cheney" <dave@cheney.net> wrote: > > Ironically, the only ...
11 years, 10 months ago (2012-07-03 02:43:20 UTC) #4
dave_cheney.net
11 years, 8 months ago (2012-08-21 01:14:27 UTC) #5
*** Abandoned ***
Sign in to reply to this message.

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