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

ARM-NEON implementation generates warnings if using /Zc:arm64-aliased-neon-types- with MSVC #153

Closed walbourn closed 1 year ago

walbourn commented 1 year ago

A opt-in conformance feature in MSVC VS 2019 or later finds more 'type-matching' bugs than GCC did. These warnings should be fixed.

The VS 2019 implementation was a bit buggy, so this really only applies to VS 2022 17.2 or later where it is officially supported.

walbourn commented 1 year ago

This is part of VS 2022 17.2 work per this blog post.

The proper way to enable it is /Zc:arm64-aliased-neon-types-

walbourn commented 1 year ago

The library changes are addressed in this commit: https://github.com/microsoft/DirectXMath/commit/fc2763a681d2e768e9a8f590cb24c9eed935e21a

There's still a problem with the MSVC compiler not supporting half-precision intrinsics in this mode.