- Notifications
You must be signed in to change notification settings - Fork4.9k
Commit2c5c11a
committed
Improve configure test for the sse4.2 crc instruction.
With optimizations enabled at least one compiler, clang 3.7, optimizedaway the crc intrinsics knowing that the result went on unused and hasno side effects. That can trigger errors in code generation when theintrinsic is used, as we chose to use the intrinsics without anyadditional compiler flag. Return the computed value to prevent that.With some more pedantic warning flags (-Wold-style-definition) theconfigure test failed to recognize the existence of _mm_crc32_u*intrinsics due to an independent warning in the test because the testturned on -Werror, but that's not actually needed here.Discussion: 20150814092039.GH4955@awork2.anarazel.deBackpatch: 9.5, where the use of crc intrinsics was integrated.1 parent9a18a2b commit2c5c11a
2 files changed
+7
-10
lines changedLines changed: 3 additions & 4 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
488 | 488 |
| |
489 | 489 |
| |
490 | 490 |
| |
491 |
| - | |
492 |
| - | |
493 | 491 |
| |
494 | 492 |
| |
495 | 493 |
| |
496 |
| - | |
| 494 | + | |
| 495 | + | |
| 496 | + | |
497 | 497 |
| |
498 | 498 |
| |
499 |
| - | |
500 | 499 |
| |
501 | 500 |
| |
502 | 501 |
| |
|
Lines changed: 4 additions & 6 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
14296 | 14296 |
| |
14297 | 14297 |
| |
14298 | 14298 |
| |
14299 |
| - | |
14300 |
| - | |
14301 | 14299 |
| |
14302 | 14300 |
| |
14303 | 14301 |
| |
| |||
14307 | 14305 |
| |
14308 | 14306 |
| |
14309 | 14307 |
| |
| 14308 | + | |
| 14309 | + | |
14310 | 14310 |
| |
14311 | 14311 |
| |
14312 | 14312 |
| |
| |||
14318 | 14318 |
| |
14319 | 14319 |
| |
14320 | 14320 |
| |
14321 |
| - | |
14322 | 14321 |
| |
14323 | 14322 |
| |
14324 | 14323 |
| |
| |||
14336 | 14335 |
| |
14337 | 14336 |
| |
14338 | 14337 |
| |
14339 |
| - | |
14340 |
| - | |
14341 | 14338 |
| |
14342 | 14339 |
| |
14343 | 14340 |
| |
| |||
14347 | 14344 |
| |
14348 | 14345 |
| |
14349 | 14346 |
| |
| 14347 | + | |
| 14348 | + | |
14350 | 14349 |
| |
14351 | 14350 |
| |
14352 | 14351 |
| |
| |||
14358 | 14357 |
| |
14359 | 14358 |
| |
14360 | 14359 |
| |
14361 |
| - | |
14362 | 14360 |
| |
14363 | 14361 |
| |
14364 | 14362 |
| |
|
0 commit comments
Comments
(0)