Commit 9927576
Use even faster reduction algorithm in FinalizePclmulStream()
My previous CL optimized the Barrett reduction. But since this is CRC32C and
scalar instructions for it are available, there is actually no need for Barrett
reduction at all. Just use two 64-bit CRC32C instructions to reduce fullCRC.
This improves CRC32C performance on 2048-byte messages on Skylake by another 2%
or so.
PiperOrigin-RevId: 739977426
Change-Id: I4611af88cd32ed7a995e772a13c30e3bdcec8de91 parent d79e680 commit 9927576
File tree
2 files changed
+5
-61
lines changed- absl/crc/internal
2 files changed
+5
-61
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
99 | 99 | | |
100 | 100 | | |
101 | 101 | | |
102 | | - | |
103 | | - | |
104 | | - | |
105 | 102 | | |
106 | 103 | | |
107 | 104 | | |
108 | 105 | | |
109 | 106 | | |
110 | 107 | | |
111 | | - | |
112 | | - | |
113 | | - | |
114 | | - | |
115 | 108 | | |
116 | 109 | | |
117 | 110 | | |
| |||
170 | 163 | | |
171 | 164 | | |
172 | 165 | | |
173 | | - | |
174 | | - | |
175 | 166 | | |
176 | 167 | | |
177 | 168 | | |
178 | 169 | | |
179 | | - | |
180 | | - | |
181 | | - | |
182 | | - | |
183 | | - | |
184 | 170 | | |
185 | 171 | | |
186 | 172 | | |
| |||
261 | 247 | | |
262 | 248 | | |
263 | 249 | | |
264 | | - | |
265 | | - | |
266 | 250 | | |
267 | 251 | | |
268 | 252 | | |
269 | 253 | | |
270 | 254 | | |
271 | 255 | | |
272 | | - | |
273 | | - | |
274 | | - | |
275 | | - | |
276 | | - | |
277 | | - | |
278 | 256 | | |
279 | 257 | | |
280 | 258 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
288 | 288 | | |
289 | 289 | | |
290 | 290 | | |
291 | | - | |
292 | | - | |
293 | | - | |
294 | | - | |
295 | | - | |
296 | | - | |
297 | | - | |
298 | | - | |
299 | | - | |
300 | | - | |
301 | | - | |
302 | | - | |
303 | | - | |
304 | | - | |
305 | | - | |
306 | | - | |
307 | | - | |
308 | | - | |
309 | | - | |
310 | | - | |
311 | | - | |
312 | | - | |
313 | | - | |
314 | | - | |
315 | | - | |
316 | | - | |
317 | | - | |
318 | | - | |
319 | | - | |
320 | | - | |
321 | | - | |
322 | | - | |
323 | | - | |
324 | | - | |
| 291 | + | |
| 292 | + | |
| 293 | + | |
| 294 | + | |
| 295 | + | |
325 | 296 | | |
326 | 297 | | |
327 | 298 | | |
| |||
352 | 323 | | |
353 | 324 | | |
354 | 325 | | |
355 | | - | |
356 | | - | |
357 | | - | |
358 | | - | |
359 | | - | |
360 | 326 | | |
361 | 327 | | |
362 | 328 | | |
| |||
0 commit comments