Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- template<typename T, Ipp32s size> void HadamardFwdFast(
- ...., Ipp16s* pDst)
- {
- Ipp32s *pTemp;
- ...
- for(j=0;j<4;j++) {
- a[0] = pTemp[0*4] + pTemp[1*4];
- a[1] = pTemp[0*4] - pTemp[1*4];
- a[2] = pTemp[2*4] + pTemp[3*4];
- a[3] = pTemp[2*4] - pTemp[3*4];
- pTemp = pTemp++;
- pDst[0*4] = (Ipp16s)(a[0] + a[2]);
- pDst[1*4] = (Ipp16s)(a[1] + a[3]);
- pDst[2*4] = (Ipp16s)(a[0] - a[2]);
- pDst[3*4] = (Ipp16s)(a[1] - a[3]);
- pDst = pDst++;
- }
- ...
- }
- Typical Undefined behavior!
- This suspicious code was found in IPP Samples project by PVS-Studio static code analyzer.
- Warning message is:
- V567 Undefined behavior. The 'pTemp' variable is modified while being used twice between sequence points. me umc_me_cost_func.h 168
- PVS-Studio is a static analyzer for detecting bugs in the source code of applications written in C, C++, C++11, C++/CX. Site: http://www.viva64.com/en/pvs-studio/
Advertisement
Add Comment
Please, Sign In to add comment