(int16*) casts uchar* to a bigger aligned which is UB. There is not knows observable harm but this stuff makes A LOT of noise for UBSAN builds. This reason is alone enough to fix it.
One way to fix it is by using memcpy(). GCC, Clang and MSVC optimizes it away in release builds.
There is also a room for micro optimizations while preserving correctness. Here is an example from Marko Mäkelä and me:
Probably it's also a good idea to replace macros with functions. This will bring a bit of type safety and will allow to put breakpoints on these functions.