What's the difference between logical SSE intrinsics?

Posted by ~buratinas on Stack Overflow See other posts from Stack Overflow or by ~buratinas
Published on 2010-05-10T17:32:07Z Indexed on 2010/05/10 17:34 UTC
Read the original article Hit count: 381

Filed under:
|
|
|

Hello,

Is there any difference between logical SSE intrinsics for different types? For example if we take OR operation, there are three intrinsics: _mm_or_ps, _mm_or_pd and _mm_or_si128. My questions:

  1. Is there any difference between using one or another intrinsic (with appropriate type casting). Won't there be any hidden costs like longer execution in some specific situation?

  2. These intrinsics maps to three different x86 instructions (por, orps, orpd). Does anyone have any ideas why Intel is wasting precious opcode space for several instructions which do the same thing?

© Stack Overflow or respective owner

Related posts about c

    Related posts about intrinsics