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

Issue 193028: DJB2 Hash for applications where high speed hash or checksum values are neede... (Closed)

Created:
11 years, 3 months ago by fbarchard
Modified:
9 years, 7 months ago
CC:
chromium-reviews_googlegroups.com, Paweł Hajdan Jr., Alpha Left Google, tim (not reviewing), scherkus (not reviewing)
Visibility:
Public.

Description

DJB2 Hash for applications where high speed hash or checksum values are needed. BUG=21126 TEST=djb2_unittest.cc has a quick test. will replace versions in media unittests and media_bench in future. Committed: http://src.chromium.org/viewvc/chrome?view=rev&revision=28532

Patch Set 1 #

Patch Set 2 : '' #

Patch Set 3 : '' #

Patch Set 4 : '' #

Patch Set 5 : '' #

Total comments: 18

Patch Set 6 : '' #

Patch Set 7 : '' #

Patch Set 8 : '' #

Patch Set 9 : DJB2 Hash for applications where high speed hash or checksum values are neede... #

Patch Set 10 : '' #

Patch Set 11 : '' #

Patch Set 12 : '' #

Patch Set 13 : '' #

Patch Set 14 : '' #

Patch Set 15 : '' #

Total comments: 3

Patch Set 16 : '' #

Patch Set 17 : '' #

Patch Set 18 : '' #

Patch Set 19 : '' #

Patch Set 20 : '' #

Patch Set 21 : '' #

Unified diffs Side-by-side diffs Delta from patch set Stats (+74 lines, -0 lines) Patch
A media/base/djb2.h View 9 10 11 12 13 14 15 1 chunk +40 lines, -0 lines 0 comments Download
A media/base/djb2.cc View 9 10 11 12 1 chunk +16 lines, -0 lines 0 comments Download
A media/base/djb2_unittest.cc View 9 10 11 12 1 chunk +15 lines, -0 lines 0 comments Download
M media/media.gyp View 9 10 11 12 13 14 15 2 chunks +3 lines, -0 lines 0 comments Download

Messages

Total messages: 14 (0 generated)
fbarchard
any feedback on this? I'm switching to a new machine and it would be easier ...
11 years, 3 months ago (2009-09-09 22:32:40 UTC) #1
scherkus (not reviewing)
mostly nits on the documentation in the header file a lot of stuff under /base ...
11 years, 3 months ago (2009-09-09 23:37:00 UTC) #2
fbarchard
fixed up md5 errors http://codereview.chromium.org/193028/diff/7003/6004 File base/djb2.cc (right): http://codereview.chromium.org/193028/diff/7003/6004#newcode11 Line 11: hash = hash * ...
11 years, 3 months ago (2009-09-10 00:19:19 UTC) #3
fbarchard
Here is the code generated for djb2 mov esi,eax shl esi,5 add esi,eax movzx eax,byte ...
11 years, 3 months ago (2009-09-11 18:06:50 UTC) #4
fbarchard
ping? The code for djb2 has been used in several unittests and benchmarks. It would ...
11 years, 3 months ago (2009-09-12 02:41:59 UTC) #5
fbarchard
can I go ahead with the commit? This code is on my old machine, which ...
11 years, 3 months ago (2009-09-17 18:11:53 UTC) #6
fbarchard
any thoughts on djb2 hash?
11 years, 3 months ago (2009-09-21 22:36:24 UTC) #7
fbarchard
ping
11 years, 2 months ago (2009-10-05 21:47:36 UTC) #8
brettw
Is there a need to put this in base? Can you just put it in ...
11 years, 2 months ago (2009-10-05 21:53:30 UTC) #9
scherkus (not reviewing)
doh sorry for not reviewing this earlier.. if media/base is the better fit then so ...
11 years, 2 months ago (2009-10-05 22:00:18 UTC) #10
fbarchard
split md5 change into its own CL. moved into media/base
11 years, 2 months ago (2009-10-08 18:43:44 UTC) #11
brettw
LGTM with one change. http://codereview.chromium.org/193028/diff/21003/21007 File media/base/djb2.h (right): http://codereview.chromium.org/193028/diff/21003/21007#newcode5 Line 5: #ifndef BASE_DJB2_H_ Be sure ...
11 years, 2 months ago (2009-10-08 22:40:42 UTC) #12
awong
http://codereview.chromium.org/193028/diff/21003/21007 File media/base/djb2.h (right): http://codereview.chromium.org/193028/diff/21003/21007#newcode21 Line 21: const uint32 kDJB2HashSeed = 5381u; On 2009/10/08 22:40:42, ...
11 years, 2 months ago (2009-10-08 22:56:53 UTC) #13
fbarchard
11 years, 2 months ago (2009-10-08 23:08:14 UTC) #14
originally I had a macro.  andrew suggested const.  I did static const, which
works in c, but he said remove static.
i'll add the static again, which I know limits the scope to each file.

Powered by Google App Engine
This is Rietveld 408576698