jdelauney / SIMD-VectorMath-UnitTest

For testing asm SIMD (SSE/SSE 2/SSE 3/SSE 4.x / AVX /AVX 2) vector math library (2f, 4f, matrix, quaternion...) with Lazarus and FreePascal Compiler
Mozilla Public License 2.0
8 stars 0 forks source link

RE: Win64 Vector4i MulDiv #10

Closed dicepd closed 6 years ago

dicepd commented 6 years ago

Jerome,

I have just fixed that one instance for the trunc issue. I doubt you will be able to use a generic inc file as a macro, as the given solution is very sensitive to available registers. Unless you want 3 push and pop, two for reg state and one for var allocation on the stack. I am sure it could be optimised a bit more but I did it the safe way to get it working and ensure I did not mess the stack up.

dicepd commented 6 years ago

I just got the Combine working in unix64 using this method, however it seems that the native combine does not trunc but rounds. You need to make a call on this and update pascal if you want trunc behaviour.

So I am now up to date as far as you have got with 4i unix64.