News for hackers. Stuff that matters.
Re:C++20 Ranges by slavik81 on Saturday December 22, 2018 @08:04PM (#18743648)
Do you use std::vector when working with SIMD? I find the SIMD alignment requirements make it difficult to integrate intrinsics with the rest of my code. Maybe I'm just missing something, but I'm having a hard time with it.
Re:C++20 Ranges by realityczeque on Saturday December 22, 2018 @08:45PM (#18743837)
That's a good point. If you use a custom allocator with your vector then you can be sure of the alignment, although the compiler will pretend to be unaware of it. All that stuff I want for string goes for vector, too.