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

Unified Diff: pkg/crypto/lib/src/hash_utils.dart

Issue 883333002: More perf. improvements on crypto. _wordToBytes return Uint8List, but addAll is not prepared to run… (Closed) Base URL: http://dart.googlecode.com/svn/branches/bleeding_edge/dart/
Patch Set: Created 5 years, 11 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: pkg/crypto/lib/src/hash_utils.dart
===================================================================
--- pkg/crypto/lib/src/hash_utils.dart (revision 43301)
+++ pkg/crypto/lib/src/hash_utils.dart (working copy)
@@ -103,8 +103,8 @@
}
// Convert a 32-bit word to four bytes.
- Uint32List _wordToBytes(int word) {
- Uint32List bytes = new Uint32List(_BYTES_PER_WORD);
+ List<int> _wordToBytes(int word) {
+ List bytes = new List<int>(_BYTES_PER_WORD);
bytes[0] = (word >> (_bigEndianWords ? 24 : 0)) & _MASK_8;
bytes[1] = (word >> (_bigEndianWords ? 16 : 8)) & _MASK_8;
bytes[2] = (word >> (_bigEndianWords ? 8 : 16)) & _MASK_8;
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698