CxxUtils: Move the fallback vector type in a separe header
-
CxxUtils: Move the fallback vector type in a separe header
-
Add static asserts for N being a power of 2 and T being an arithmetic type
-
Fix a "bug" for vblend where if called with
blend<1,2,1,7>(b,b,b);
i.e the same vec as input and ouput could return different results when using the fallback implementation rather theclang
gcc
intrincs.
ping @ssnyder
PS: For the 3rd item the bug
- previous with fallback enabled https://godbolt.org/z/Ta7Y9YT68
- previous without fallback disabled (use vector types) https://godbolt.org/z/M1YbcEr8x
- after the fix with fallback enabled https://godbolt.org/z/6WfdYWhGh