3 ms·
Generally agree, especially with the sentiment that it's a huge PITA maintaining something like this across multiple compilers & platforms. Out of curiosity, d
by jesse__ 1y ago
Generally agree, especially with the sentiment that it's a huge PITA maintaining something like this across multiple compilers & platforms.
Out of curiosity, does highway implement integer divide?
- janwas 1y ago:) Yes indeed, it's about 500 LOC in https://github.com/google/highway/blob/master/hwy/ops/generic_ops-inl.h#L4877 https://github.com/google/highway/blob/master/hwy/ops/generi....
- jesse__ 1y agoNice. Looks like it handles quite a bit. I just supported a single div op, which was enough for my needs. https://github.com/scallyw4g/bonsai_stdlib/blob/71fadd0f1fceaf311ed0d65489bfb3e880e849ed/src/simd_avx2.h#L410 https://github.com/scallyw4g/bonsai_stdlib/blob/71fadd0f1fce...