microsoft / DirectXMath

DirectXMath is an all inline SIMD C++ linear algebra library for use in games and graphics apps
https://walbourn.github.io/introducing-directxmath/
MIT License
1.51k stars 231 forks source link

float_control pragma applies to clang #183

Closed walbourn closed 5 months ago

walbourn commented 5 months ago

The float_control pragma is supported by clang, so we should enable it there as well as for MSVC. This impacts IsInfinite tests functions and the SSE/SSE2 rounding implementation.

Note that currently the clang/LLVM compiler does not properly respect this pragma for SSE intrinsics code, so the recommendation would be to avoid using /fp:fast with clang/LLVM.

walbourn commented 5 months ago

https://github.com/walbourn/directxmathtest/commit/4762773625a432582f6925848b9d6729763ce665