#ifdefs around MSVC specific things. Add define for x86 intrinsics.
Add defines. Remove __stdcall.
Use new defines. Remove __stdcall.
Port diff functions to intrinsics.