@@ -64,7 +64,7 @@ impl <A: IterBytes> A: Hash {
64
64
pure fn hash_keyed ( k0 : u64 , k1 : u64 ) -> u64 {
65
65
unchecked {
66
66
let s = & State ( k0, k1) ;
67
- for self . iter_le_bytes |bytes| {
67
+ for self . iter_bytes ( true ) |bytes| {
68
68
s. input ( bytes) ;
69
69
}
70
70
s. result_u64 ( )
@@ -79,8 +79,8 @@ pure fn hash_keyed_2<A: IterBytes,
79
79
k0 : u64 , k1 : u64 ) -> u64 {
80
80
unchecked {
81
81
let s = & State ( k0, k1) ;
82
- for a. iter_le_bytes |bytes| { s. input ( bytes) ; }
83
- for b. iter_le_bytes |bytes| { s. input ( bytes) ; }
82
+ for a. iter_bytes ( true ) |bytes| { s. input ( bytes) ; }
83
+ for b. iter_bytes ( true ) |bytes| { s. input ( bytes) ; }
84
84
s. result_u64 ( )
85
85
}
86
86
}
@@ -91,9 +91,9 @@ pure fn hash_keyed_3<A: IterBytes,
91
91
k0: u64, k1: u64) -> u64 {
92
92
unchecked {
93
93
let s = & State ( k0, k1) ;
94
- for a. iter_le_bytes |bytes| { s. input ( bytes) ; }
95
- for b. iter_le_bytes |bytes| { s. input ( bytes) ; }
96
- for c. iter_le_bytes |bytes| { s. input ( bytes) ; }
94
+ for a. iter_bytes ( true ) |bytes| { s. input ( bytes) ; }
95
+ for b. iter_bytes ( true ) |bytes| { s. input ( bytes) ; }
96
+ for c. iter_bytes ( true ) |bytes| { s. input ( bytes) ; }
97
97
s. result_u64 ( )
98
98
}
99
99
}
@@ -105,10 +105,10 @@ pure fn hash_keyed_4<A: IterBytes,
105
105
k0 : u64 , k1 : u64 ) -> u64 {
106
106
unchecked {
107
107
let s = & State ( k0, k1) ;
108
- for a. iter_le_bytes |bytes| { s. input ( bytes) ; }
109
- for b. iter_le_bytes |bytes| { s. input ( bytes) ; }
110
- for c. iter_le_bytes |bytes| { s. input ( bytes) ; }
111
- for d. iter_le_bytes |bytes| { s. input ( bytes) ; }
108
+ for a. iter_bytes ( true ) |bytes| { s. input ( bytes) ; }
109
+ for b. iter_bytes ( true ) |bytes| { s. input ( bytes) ; }
110
+ for c. iter_bytes ( true ) |bytes| { s. input ( bytes) ; }
111
+ for d. iter_bytes ( true ) |bytes| { s. input ( bytes) ; }
112
112
s. result_u64 ( )
113
113
}
114
114
}
@@ -121,11 +121,11 @@ pure fn hash_keyed_5<A: IterBytes,
121
121
k0: u64, k1: u64) -> u64 {
122
122
unchecked {
123
123
let s = & State ( k0, k1) ;
124
- for a. iter_le_bytes |bytes| { s. input ( bytes) ; }
125
- for b. iter_le_bytes |bytes| { s. input ( bytes) ; }
126
- for c. iter_le_bytes |bytes| { s. input ( bytes) ; }
127
- for d. iter_le_bytes |bytes| { s. input ( bytes) ; }
128
- for e. iter_le_bytes |bytes| { s. input ( bytes) ; }
124
+ for a. iter_bytes ( true ) |bytes| { s. input ( bytes) ; }
125
+ for b. iter_bytes ( true ) |bytes| { s. input ( bytes) ; }
126
+ for c. iter_bytes ( true ) |bytes| { s. input ( bytes) ; }
127
+ for d. iter_bytes ( true ) |bytes| { s. input ( bytes) ; }
128
+ for e. iter_bytes ( true ) |bytes| { s. input ( bytes) ; }
129
129
s. result_u64 ( )
130
130
}
131
131
}
0 commit comments