Search code examples
floating-pointintrinsicsfloating-point-conversionintel-ipp

vectorized conversion of a float 32 buffer to int


I looked at the documentation for the Intel intrinsics and IPP but couldn't find it right away, can anyone advice whether there are vectorized conversion routines from float to int in intrinsics or IPP?


Solution

  • Also, IPP functions from signal processing domain "ippsConvert_" functions might help. For example, ippsConvert_32f32s_Sfs to convert from float to int, or ippsConvert_64f32s_Sfs to convert from double to int.