This is the mail archive of the gcc-patches@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: [PATCH] Support some Intel intrinsics in the IA-64 backend


"Roger Sayle" <roger@eyesopen.com> writes:

> ! #ifndef _IA64INTRIN_H_INCLUDED
> ! #define _IA64INTRIN_H_INCLUDED
> ! 
> ! /* The data types intended for user use.  */
> ! typedef long __m64 __attribute__ ((__vector_size__ (8)));
> ! typedef long __int64;
> ! 
> ! static inline __int64 __attribute__((__always_inline__))
> ! _i64_popcnt (__int64 __A)
> ! {
> !   return (__int64) __builtin_popcountl (__A);
> ! }
> ! 
> ! extern inline __m64 __attribute__((__always_inline__))
> ! _m64_mux1 (__m64 __A, const int __N)
> ! {
> !   return (__m64) __builtin_ia64_mux1 ((long) __A, __N);
> ! }

Some are static inline, some extern inline.

Andreas.

-- 
Andreas Schwab, SuSE Labs, schwab@suse.de
SuSE Linux Products GmbH, Maxfeldstraße 5, 90409 Nürnberg, Germany
PGP key fingerprint = 58CA 54C7 6D53 942B 1756  01D3 44D5 214B 8276 4ED5
"And now for something completely different."


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]