forked frompostgres/postgres
- Notifications
You must be signed in to change notification settings - Fork6
Commit0c25fee
committed
Teach fasthash_accum to use platform endianness for bytewise loads
This function previously used a mix of word-wise loads and bytewiseloads. The bytewise loads happened to be little-endian regardless ofplatform. This in itself is not a problem. However, a future commitwill require the same result whether A) the input is loaded as aword with the relevent bytes masked-off, or B) the input is loadedone byte at a time.While at it, improve debuggability of the internal hash state.Discussion:https://postgr.es/m/CANWCAZZpuV1mES1mtSpAq8tWJewbrv4gEz6R_k4gzNG8GZ5gag%40mail.gmail.com1 parent98f320e commit0c25fee
1 file changed
+39
-5
lines changedLines changed: 39 additions & 5 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
131 | 131 |
| |
132 | 132 |
| |
133 | 133 |
| |
134 |
| - | |
135 |
| - | |
136 |
| - | |
137 | 134 |
| |
138 | 135 |
| |
139 | 136 |
| |
| |||
142 | 139 |
| |
143 | 140 |
| |
144 | 141 |
| |
145 |
| - | |
146 | 142 |
| |
| 143 | + | |
147 | 144 |
| |
| 145 | + | |
| 146 | + | |
| 147 | + | |
| 148 | + | |
| 149 | + | |
| 150 | + | |
| 151 | + | |
| 152 | + | |
| 153 | + | |
| 154 | + | |
| 155 | + | |
| 156 | + | |
| 157 | + | |
| 158 | + | |
| 159 | + | |
| 160 | + | |
| 161 | + | |
| 162 | + | |
| 163 | + | |
| 164 | + | |
| 165 | + | |
| 166 | + | |
| 167 | + | |
| 168 | + | |
| 169 | + | |
| 170 | + | |
| 171 | + | |
| 172 | + | |
| 173 | + | |
| 174 | + | |
| 175 | + | |
| 176 | + | |
| 177 | + | |
| 178 | + | |
| 179 | + | |
148 | 180 |
| |
149 | 181 |
| |
150 | 182 |
| |
| |||
175 | 207 |
| |
176 | 208 |
| |
177 | 209 |
| |
| 210 | + | |
178 | 211 |
| |
179 | 212 |
| |
180 | 213 |
| |
| |||
288 | 321 |
| |
289 | 322 |
| |
290 | 323 |
| |
291 |
| - | |
| 324 | + | |
| 325 | + | |
292 | 326 |
| |
293 | 327 |
| |
294 | 328 |
| |
|
0 commit comments
Comments
(0)