Matthias Kretz

Results 86 comments of Matthias Kretz

look for x86 psABI for the spec that should decide who is at fault

https://llvm.org/bugs/show_bug.cgi?id=26830

Thanks for adding more details and examples to this issue! The exact type to dispatch on is a trade-off between code size bloat and perfect support for all possible hardware....

## Q1 Yes, don't use anything from the `detail` namespace unless you are prepared for the breakage from changes to Vc. What you want is `static_cast(simd)`. I.e. every `simd` can...

Vectors of `short` are converted to vectors of `float` to use the `(v)divps` instruction for vectorized division. Thus, `-ffast-math` kicks in and may lead to surprising results. I made std-simd...

This is the fix I applied to std-simd: https://github.com/VcDevel/std-simd/blob/5d66f8f31942c000c329d7865360a3b3db1a85ae/experimental/bits/simd_x86.h#L1428-L1462 Vc would need something similar.

`rcpps` of `1.f` is `0.999756f` :shrug:. And GCC translates `xmm0 / xmm1` to: ```asm vrcpps xmm2, xmm1 vmulps xmm1, xmm2, xmm1 vmulps xmm1, xmm2, xmm1 vaddps xmm2, xmm2, xmm2 vsubps...

I guess I should prioritize gather & scatter for you so you can move to std-simd. ;-)

Sorry if you feel/felt ignored. I was occupied with stupid corner cases like from `-ffast-math`. :wink: I'm bad at working on more than one thing at a time... Please report...

Hi, thank you for your interest. Yes, I would very much like to have the complete set of math functions in Vc (i.e. all of [``](http://en.cppreference.com/w/cpp/header/cmath). My problem is time/manpower....