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

Side by Side Diff: Source/build/scripts/Hasher.pm

Issue 26414004: Move core/scripts to build/scripts so that platform can use them. (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Created 7 years, 2 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
OLDNEW
1 # Copyright (C) 2005, 2006, 2007, 2008 Nikolas Zimmermann <zimmermann@kde.org> 1 # Copyright (C) 2005, 2006, 2007, 2008 Nikolas Zimmermann <zimmermann@kde.org>
2 # Copyright (C) 2006 Anders Carlsson <andersca@mac.com> 2 # Copyright (C) 2006 Anders Carlsson <andersca@mac.com>
3 # Copyright (C) 2006, 2007 Samuel Weinig <sam@webkit.org> 3 # Copyright (C) 2006, 2007 Samuel Weinig <sam@webkit.org>
4 # Copyright (C) 2006 Alexey Proskuryakov <ap@webkit.org> 4 # Copyright (C) 2006 Alexey Proskuryakov <ap@webkit.org>
5 # Copyright (C) 2006, 2007, 2008, 2009, 2010 Apple Inc. All rights reserved. 5 # Copyright (C) 2006, 2007, 2008, 2009, 2010 Apple Inc. All rights reserved.
6 # Copyright (C) 2009 Cameron McCormack <cam@mcc.id.au> 6 # Copyright (C) 2009 Cameron McCormack <cam@mcc.id.au>
7 # Copyright (C) Research In Motion Limited 2010. All rights reserved. 7 # Copyright (C) Research In Motion Limited 2010. All rights reserved.
8 # Copyright (C) 2010 Nokia Corporation and/or its subsidiary(-ies) 8 # Copyright (C) 2010 Nokia Corporation and/or its subsidiary(-ies)
9 # Copyright (C) 2011 Patrick Gansterer <paroga@webkit.org> 9 # Copyright (C) 2011 Patrick Gansterer <paroga@webkit.org>
10 # Copyright (C) 2012 Ericsson AB. All rights reserved. 10 # Copyright (C) 2012 Ericsson AB. All rights reserved.
(...skipping 73 matching lines...) Expand 10 before | Expand all | Expand 10 after
84 # This avoids ever returning a hash code of 0, since that is used to 84 # This avoids ever returning a hash code of 0, since that is used to
85 # signal "hash not computed yet". Setting the high bit maintains 85 # signal "hash not computed yet". Setting the high bit maintains
86 # reasonable fidelity to a hash code of 0 because it is likely to yield 86 # reasonable fidelity to a hash code of 0 because it is likely to yield
87 # exactly 0 when hash lookup masks out the high bits. 87 # exactly 0 when hash lookup masks out the high bits.
88 $hash = (0x80000000 >> 8) if ($hash == 0); 88 $hash = (0x80000000 >> 8) if ($hash == 0);
89 89
90 return $hash; 90 return $hash;
91 } 91 }
92 92
93 1; 93 1;
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698