| OLD | NEW |
| 1 /*===---- xmmintrin.h - SSE intrinsics -------------------------------------=== | 1 /*===---- xmmintrin.h - SSE intrinsics -------------------------------------=== |
| 2 * | 2 * |
| 3 * Permission is hereby granted, free of charge, to any person obtaining a copy | 3 * Permission is hereby granted, free of charge, to any person obtaining a copy |
| 4 * of this software and associated documentation files (the "Software"), to deal | 4 * of this software and associated documentation files (the "Software"), to deal |
| 5 * in the Software without restriction, including without limitation the rights | 5 * in the Software without restriction, including without limitation the rights |
| 6 * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell | 6 * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell |
| 7 * copies of the Software, and to permit persons to whom the Software is | 7 * copies of the Software, and to permit persons to whom the Software is |
| 8 * furnished to do so, subject to the following conditions: | 8 * furnished to do so, subject to the following conditions: |
| 9 * | 9 * |
| 10 * The above copyright notice and this permission notice shall be included in | 10 * The above copyright notice and this permission notice shall be included in |
| (...skipping 646 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 657 } | 657 } |
| 658 | 658 |
| 659 #define _MM_HINT_T0 3 | 659 #define _MM_HINT_T0 3 |
| 660 #define _MM_HINT_T1 2 | 660 #define _MM_HINT_T1 2 |
| 661 #define _MM_HINT_T2 1 | 661 #define _MM_HINT_T2 1 |
| 662 #define _MM_HINT_NTA 0 | 662 #define _MM_HINT_NTA 0 |
| 663 | 663 |
| 664 /* FIXME: We have to #define this because "sel" must be a constant integer, and | 664 /* FIXME: We have to #define this because "sel" must be a constant integer, and |
| 665 Sema doesn't do any form of constant propagation yet. */ | 665 Sema doesn't do any form of constant propagation yet. */ |
| 666 | 666 |
| 667 #define _mm_prefetch(a, sel) (__builtin_prefetch((void *)(a), 0, sel)) | 667 #define _mm_prefetch(a, sel) (__builtin_prefetch((void *)(a), 0, (sel))) |
| 668 | 668 |
| 669 static __inline__ void __attribute__((__always_inline__, __nodebug__)) | 669 static __inline__ void __attribute__((__always_inline__, __nodebug__)) |
| 670 _mm_stream_pi(__m64 *p, __m64 a) | 670 _mm_stream_pi(__m64 *p, __m64 a) |
| 671 { | 671 { |
| 672 __builtin_ia32_movntq(p, a); | 672 __builtin_ia32_movntq(p, a); |
| 673 } | 673 } |
| 674 | 674 |
| 675 static __inline__ void __attribute__((__always_inline__, __nodebug__)) | 675 static __inline__ void __attribute__((__always_inline__, __nodebug__)) |
| 676 _mm_stream_ps(float *p, __m128 a) | 676 _mm_stream_ps(float *p, __m128 a) |
| 677 { | 677 { |
| (...skipping 303 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 981 #define _m_ _mm_ | 981 #define _m_ _mm_ |
| 982 | 982 |
| 983 /* Ugly hack for backwards-compatibility (compatible with gcc) */ | 983 /* Ugly hack for backwards-compatibility (compatible with gcc) */ |
| 984 #ifdef __SSE2__ | 984 #ifdef __SSE2__ |
| 985 #include <emmintrin.h> | 985 #include <emmintrin.h> |
| 986 #endif | 986 #endif |
| 987 | 987 |
| 988 #endif /* __SSE__ */ | 988 #endif /* __SSE__ */ |
| 989 | 989 |
| 990 #endif /* __XMMINTRIN_H */ | 990 #endif /* __XMMINTRIN_H */ |
| OLD | NEW |