topic Ipps--multiplying two 16-bit numbers needs 32-bit product in IntelĀ® Integrated Performance Primitives
https://community.intel.com/t5/Intel-Integrated-Performance/Ipps-multiplying-two-16-bit-numbers-needs-32-bit-product/m-p/868488#M8578
Ok sorry for all the replies.<BR /><BR />But I meant to comment on the functions I found:<BR /><BR />When there is a scalefactor on the end, does this affect the performance much? I really don't need it, but there isn't a version without the scalefactor. If I set it to 1, does this really do the same thing as not having a scale factor?<BR /><BR />Also, there is a sub function that looks like this:<BR /><BR />IppStatus ippsSub_16s32f(const Ipp16s* pSrc1, const Ipp16s* pSrc2, Ipp32f* pDst, int len);<BR /><BR />I don't really want a floating point representation because I am just working with integers. Why isn't there a 32s version?<BR /><BR />Wed, 17 Mar 2010 00:09:03 GMTDerek_Woodman2010-03-17T00:09:03ZIpps--multiplying two 16-bit numbers needs 32-bit product
https://community.intel.com/t5/Intel-Integrated-Performance/Ipps-multiplying-two-16-bit-numbers-needs-32-bit-product/m-p/868486#M8576
Hello,<BR /><BR />I want to use IPPS to do vector arithmetic. I found the following function:<BR /><BR />IppStatus ippsMul_16s_Sfs(const Ipp16s* pSrc1, const Ipp16s* pSrc2, Ipp16s* pDst, int len, int scaleFactor);<BR /><BR />However, what if the two numbers I am multiplying require 32-bits for the product? I want something like:<BR /><BR />IppStatus ippsMul_16s32s(const Ipp16s* pSrc1, const Ipp16s* pSrc2, Ipp32s* pDst, int len);<BR /><BR />Do these function exist? Am I just not looking in the correct place?<BR /><BR />Thanks!<BR /><BR /><BR /><BR />Tue, 16 Mar 2010 23:59:45 GMThttps://community.intel.com/t5/Intel-Integrated-Performance/Ipps-multiplying-two-16-bit-numbers-needs-32-bit-product/m-p/868486#M8576Derek_Woodman2010-03-16T23:59:45ZIpps--multiplying two 16-bit numbers needs 32-bit product
https://community.intel.com/t5/Intel-Integrated-Performance/Ipps-multiplying-two-16-bit-numbers-needs-32-bit-product/m-p/868487#M8577
Ok, I found the following function:<BR /><BR />IppStatus ippsMul_16s32s_Sfs(const Ipp16s* pSrc1, const Ipp16s* pSrc2, Ipp32s* pDst, int len, int scaleFactor);<BR /><BR />That should work for multiplying two vectors. But what about the MulC variant. Do I have to copy the 16bit vector into a 32bit vector and then just use the 32s variant?<BR /><BR />Also, I kinda have a general question. How long does it take to copy vectors? How about inplace functions versus not-in-place functions. Do these have very high performace differences?<BR /><BR />Wed, 17 Mar 2010 00:04:35 GMThttps://community.intel.com/t5/Intel-Integrated-Performance/Ipps-multiplying-two-16-bit-numbers-needs-32-bit-product/m-p/868487#M8577Derek_Woodman2010-03-17T00:04:35ZIpps--multiplying two 16-bit numbers needs 32-bit product
https://community.intel.com/t5/Intel-Integrated-Performance/Ipps-multiplying-two-16-bit-numbers-needs-32-bit-product/m-p/868488#M8578
Ok sorry for all the replies.<BR /><BR />But I meant to comment on the functions I found:<BR /><BR />When there is a scalefactor on the end, does this affect the performance much? I really don't need it, but there isn't a version without the scalefactor. If I set it to 1, does this really do the same thing as not having a scale factor?<BR /><BR />Also, there is a sub function that looks like this:<BR /><BR />IppStatus ippsSub_16s32f(const Ipp16s* pSrc1, const Ipp16s* pSrc2, Ipp32f* pDst, int len);<BR /><BR />I don't really want a floating point representation because I am just working with integers. Why isn't there a 32s version?<BR /><BR />Wed, 17 Mar 2010 00:09:03 GMThttps://community.intel.com/t5/Intel-Integrated-Performance/Ipps-multiplying-two-16-bit-numbers-needs-32-bit-product/m-p/868488#M8578Derek_Woodman2010-03-17T00:09:03ZIpps--multiplying two 16-bit numbers needs 32-bit product
https://community.intel.com/t5/Intel-Integrated-Performance/Ipps-multiplying-two-16-bit-numbers-needs-32-bit-product/m-p/868489#M8579
In many cases the format of the input vector and the output vector need to be the same. That's what the functions are made for.<BR /><BR />If you need to process data on higher bitdepth it often will be faster to do it once at the beginning of the algorithm, then process the 32bit data and at last convert back to 16bit.<BR />Every function which has different input-/output bit depths needs to convert each value (in case of SSE2 8 values) into this higher bitdepth before doing the operation. This will increase the latency very much and therefore reduces the performance.<BR /><BR />Of course there are some functions with different in-/output bitdepths missing, but I think even Intel needs time to react on customer wishes and implement them. So maybe they will be there sometimes :)Wed, 17 Mar 2010 11:34:25 GMThttps://community.intel.com/t5/Intel-Integrated-Performance/Ipps-multiplying-two-16-bit-numbers-needs-32-bit-product/m-p/868489#M8579renegr2010-03-17T11:34:25Z