This is the mail archive of the
gcc@gcc.gnu.org
mailing list for the GCC project.
_mm_cast*, icc8.1 new intrinsics
- From: tbp <tbptbp at gmail dot com>
- To: gcc at gcc dot gnu dot org
- Date: Thu, 13 Jan 2005 06:02:26 +0100
- Subject: _mm_cast*, icc8.1 new intrinsics
- Reply-to: tbp <tbptbp at gmail dot com>
Hello,
Would it be possible to add those, as far as know, new casting intrinsics?
On gcc4 i just use a C cast but i've found the painful way they have
to be used with ICC8.1 to avoid useless store/load and, again as far
as i know, aren't supported by any gcc (or msvc2k3 btw).
Excerpt from the only documentation i've found about them:
Intrinsics for Casting Support
This version of the Intel C++ Compiler supports casting between
various SP, DP, and INT vector types. These intrinsics do not convert
values; they just change the type.
extern __m128 _mm_castpd_ps(__m128d in);
extern __m128i _mm_castpd_si128(__m128d in);
extern __m128d _mm_castps_pd(__m128 in);
extern __m128i _mm_castps_si128(__m128 in);
extern __m128 _mm_castsi128_ps(__m128i in);
extern __m128d _mm_castsi128_pd(__m128i in);