intra: fix GCC warning about potentially uninitialized sum variable
common: force float and double arguments to logf() and log(), respectively

Fixes warnings on some MSVC versions
asm: add cvt32to16_shr_sse2, remove intrinsic primitive