4 ms·
clang has __builtin_elementwise_sqrt, which meets all your requirements.
by feverzsj 2y ago
clang has __builtin_elementwise_sqrt, which meets all your requirements.
- josephg 2y agoI just tried it on godbolt. __builtin_elementwise_sqrt emits the same terrible asm as _mm_sqrt_ps when -ffast-math is enabled: https://godbolt.org/z/34z81GEsG https://godbolt.org/z/34z81GEsG