[libcxx-commits] [libcxx] [libc++] <experimental/simd> Add ++/-- operators for simd reference (PR #88091)

via libcxx-commits libcxx-commits at lists.llvm.org
Mon Aug 12 03:24:52 PDT 2024


joy2myself wrote:

> > @philnik777 It seems that the floating-point types do support the ++ and -- operators (https://godbolt.org/z/GMcj5nb96). Now, I’ve added traits that check if operators exist and all the results for test types are the same. Is it necessary to keep these code?
> 
> That's... surprising. In that case what's the point of the constraint? There should be some way to test them, otherwise they're just garbage.

According to the specification, the set of vectorizable types for a data-parallel type comprises all cv-unqualified arithmetic types other than bool. This way, all valid types will support the ++, -- operators. Should I remove the code related to SFINAE checks and the code that tests them?


https://github.com/llvm/llvm-project/pull/88091


More information about the libcxx-commits mailing list