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

TGLZVector2/4f and the trunc #8

Closed jdelauney closed 6 years ago

jdelauney commented 6 years ago

The round function work good. But with trunc the access to the SSE States in MXCSR register cause a SIGSEV when try to store the currents flag. "stmxcsr _bakMXCSR" (see in TGLZVector4f) and without do this but instead taking _OldMXCSR global (see in TGLZVector2f) for comparing. FPC compiler return an error without any clues.

jdelauney commented 6 years ago

Ok i found the way for it work But with TGLZVector4i's timing test the MulDiv and Combine who uses Trunc it raised a SIGFPE.

dicepd commented 6 years ago

Missed this post see issue #10