VisualStudio C++ would not even allow inline assembly language anymore. Switch to the compiler intrinsics. I did MASM for about 20 years, than inline assembly in C++, but it is all unnecessary for all computational stuff. VC++ has hundreds of intrinsics.