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

Issue 4650072: code review 4650072: hash/crc32: add SSE4.2 support (Closed)

Can't Edit
Can't Publish+Mail
Start Review
Created:
13 years, 9 months ago by agl1
Modified:
13 years, 6 months ago
Reviewers:
CC:
rsc, golang-dev
Visibility:
Public.

Description

hash/crc32: add SSE4.2 support Using the CRC32 instruction speeds up the Castagnoli computation by about 20x on a modern Intel CPU.

Patch Set 1 #

Patch Set 2 : diff -r 67b160cd5fa4 https://go.googlecode.com/hg/ #

Patch Set 3 : diff -r 743cfe1095ed https://go.googlecode.com/hg/ #

Patch Set 4 : diff -r 743cfe1095ed https://go.googlecode.com/hg/ #

Patch Set 5 : diff -r 743cfe1095ed https://go.googlecode.com/hg/ #

Patch Set 6 : diff -r 743cfe1095ed https://go.googlecode.com/hg/ #

Total comments: 6

Patch Set 7 : diff -r 207a10acbc0f https://go.googlecode.com/hg/ #

Unified diffs Side-by-side diffs Delta from patch set Stats (+285 lines, -46 lines) Patch
M src/cmd/6a/lex.c View 1 2 3 4 5 6 2 chunks +9 lines, -0 lines 0 comments Download
M src/cmd/6l/6.out.h View 1 2 1 chunk +2 lines, -0 lines 0 comments Download
M src/cmd/6l/l.h View 1 1 chunk +1 line, -0 lines 0 comments Download
M src/cmd/6l/optab.c View 1 2 3 4 5 6 2 chunks +65 lines, -0 lines 0 comments Download
M src/cmd/6l/span.c View 1 1 chunk +6 lines, -0 lines 0 comments Download
M src/pkg/hash/crc32/Makefile View 1 2 3 1 chunk +9 lines, -0 lines 0 comments Download
M src/pkg/hash/crc32/crc32.go View 1 2 3 5 chunks +32 lines, -5 lines 0 comments Download
A src/pkg/hash/crc32/crc32_amd64.go View 1 2 3 4 1 chunk +25 lines, -0 lines 0 comments Download
A src/pkg/hash/crc32/crc32_amd64.s View 1 2 3 4 1 chunk +62 lines, -0 lines 0 comments Download
A src/pkg/hash/crc32/crc32_generic.go View 1 2 3 1 chunk +12 lines, -0 lines 0 comments Download
M src/pkg/hash/crc32/crc32_test.go View 1 2 3 4 2 chunks +62 lines, -41 lines 0 comments Download

Messages

Total messages: 7
agl1
*** Abandoned ***
13 years, 9 months ago (2011-07-06 20:07:07 UTC) #1
agl1
Hello rsc@golang.org (cc: golang-dev@googlegroups.com), I'd like you to review this change to https://go.googlecode.com/hg/
13 years, 9 months ago (2011-07-06 20:12:28 UTC) #2
rsc
Only substantive thing is the handling of REX http://codereview.appspot.com/4650072/diff/4023/src/cmd/6a/lex.c File src/cmd/6a/lex.c (right): http://codereview.appspot.com/4650072/diff/4023/src/cmd/6a/lex.c#newcode172 src/cmd/6a/lex.c:172: /* ...
13 years, 8 months ago (2011-07-11 19:50:02 UTC) #3
agl1
*** Submitted as http://code.google.com/p/go/source/detail?r=cc56eaa003b6 *** hash/crc32: add SSE4.2 support Using the CRC32 instruction speeds up ...
13 years, 8 months ago (2011-07-12 13:30:49 UTC) #4
rsc
just for my own curiosity, is there a 32-bit argument form of the CRC32 instruction?
13 years, 8 months ago (2011-07-12 14:27:59 UTC) #5
agl1
On Tue, Jul 12, 2011 at 10:27 AM, Russ Cox <rsc@golang.org> wrote: > just for ...
13 years, 8 months ago (2011-07-12 14:29:04 UTC) #6
rsc
13 years, 8 months ago (2011-07-12 14:32:45 UTC) #7
On Tue, Jul 12, 2011 at 10:29, Adam Langley <agl@golang.org> wrote:
> On Tue, Jul 12, 2011 at 10:27 AM, Russ Cox <rsc@golang.org> wrote:
>> just for my own curiosity,
>> is there a 32-bit argument form of the CRC32 instruction?
>
> Yes, and a 16-bit one. I didn't add them because I wasn't using them
> and so had not testing coverage, but I can put them in if you like.

that'd be great.  even if untested they're
better than nothing.   thanks.
Sign in to reply to this message.

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