MAIN FEEDS
Do you want to continue?
https://www.reddit.com/r/cpp/comments/1totd3y/accelerating_copy_if_using_simd/oo437qu/
r/cpp • u/mttd • May 27 '26
15 comments sorted by
View all comments
Show parent comment
7
If you use the phrase "using SIMD" loosely, then clang and/or libstdc++ have done it. But only the comparison, not the compaction, which is the important part. If a human implemented copy_if that way I'd accuse them of trolling.
2 u/Expert-Map-1126 vcpkg maintainer BillyONeal May 29 '26 The comparison part is often the expensive part. Depends on how expensive `pred` is.
2
The comparison part is often the expensive part. Depends on how expensive `pred` is.
View all comments
Show parent comment
7
u/Successful_Yam_9023 May 27 '26
If you use the phrase "using SIMD" loosely, then clang and/or libstdc++ have done it. But only the comparison, not the compaction, which is the important part. If a human implemented copy_if that way I'd accuse them of trolling.