Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- EIGEN_DONT_INLINE static void run(....)
- {
- ...
- if ((size_t(lhs0+alignedStart)%sizeof(LhsPacket))==0)
- for (Index i = alignedStart;i<alignedSize;i+=ResPacketSize)
- pstore(&res[i],
- pcj.pmadd(ploadu<LhsPacket>(&lhs0[i]),
- ptmp0, pload<ResPacket>(&res[i])));
- else
- for (Index i = alignedStart;i<alignedSize;i+=ResPacketSize)
- pstore(&res[i],
- pcj.pmadd(ploadu<LhsPacket>(&lhs0[i]),
- ptmp0, pload<ResPacket>(&res[i])));
- ...
- }
- This suspicious code was found in blender project by PVS-Studio static code analyzer.
- Warning message is:
- V523 The 'then' statement is equivalent to the 'else' statement. bf_ikplugin generalmatrixvector.h 268
- 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