خرید بک لینک

Vote count: 0

I have a program filled with custom macros and GCC intrinsics like __builtin_ia32_pshufd. I'd like to convert it to Intel intrinsics for portabiltiy and eventual Windows support.

I preprocessed the source file, including the -fno-builtin option, but I seem to be getting some builtins. Here's one of them:

row = 
 ((__m128i)__builtin_ia32_pshufd ((__v4si)(__m128i)(
 row
 ), (int)((((
 1
 ) << 6) | ((
 0
 ) << 4) | ((
 3
 ) << 2) | (
 2
 )))))
 ;

I'm also having trouble figuring out what to do with the mode attribute (__v4si):

row = 
 ((__m128i) ((__v4si)(__m128i)(
 row
 ), (int)((((
 0
 ) << 6) | ((
 3
 ) << 4) | ((
 2
 ) << 2) | (
 1
 )))))
 ;

How do I convert these two GCC intrinsics into a portable, Intel intrinsic?

asked 1 min ago

برچسب: نویسنده: استخدام کار تاريخ: سه شنبه 31 فروردين 1395 ساعت: 0:34

صفحه بندی