mmintrin.h (193576) | mmintrin.h (198092) |
---|---|
1/*===---- mmintrin.h - MMX intrinsics --------------------------------------=== 2 * 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 5 * in the Software without restriction, including without limitation the rights 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 8 * furnished to do so, subject to the following conditions: --- 334 unchanged lines hidden (view full) --- 343_mm_xor_si64(__m64 __m1, __m64 __m2) 344{ 345 return __m1 ^ __m2; 346} 347 348static inline __m64 __attribute__((__always_inline__, __nodebug__)) 349_mm_cmpeq_pi8(__m64 __m1, __m64 __m2) 350{ | 1/*===---- mmintrin.h - MMX intrinsics --------------------------------------=== 2 * 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 5 * in the Software without restriction, including without limitation the rights 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 8 * furnished to do so, subject to the following conditions: --- 334 unchanged lines hidden (view full) --- 343_mm_xor_si64(__m64 __m1, __m64 __m2) 344{ 345 return __m1 ^ __m2; 346} 347 348static inline __m64 __attribute__((__always_inline__, __nodebug__)) 349_mm_cmpeq_pi8(__m64 __m1, __m64 __m2) 350{ |
351 return (__m64)__builtin_ia32_pcmpeqb((__v8qi)__m1, (__v8qi)__m2); | 351 return (__m64)((__v8qi)__m1 == (__v8qi)__m2); |
352} 353 354static inline __m64 __attribute__((__always_inline__, __nodebug__)) 355_mm_cmpeq_pi16(__m64 __m1, __m64 __m2) 356{ | 352} 353 354static inline __m64 __attribute__((__always_inline__, __nodebug__)) 355_mm_cmpeq_pi16(__m64 __m1, __m64 __m2) 356{ |
357 return (__m64)__builtin_ia32_pcmpeqw((__v4hi)__m1, (__v4hi)__m2); | 357 return (__m64)((__v4hi)__m1 == (__v4hi)__m2); |
358} 359 360static inline __m64 __attribute__((__always_inline__, __nodebug__)) 361_mm_cmpeq_pi32(__m64 __m1, __m64 __m2) 362{ | 358} 359 360static inline __m64 __attribute__((__always_inline__, __nodebug__)) 361_mm_cmpeq_pi32(__m64 __m1, __m64 __m2) 362{ |
363 return (__m64)__builtin_ia32_pcmpeqd((__v2si)__m1, (__v2si)__m2); | 363 return (__m64)((__v2si)__m1 == (__v2si)__m2); |
364} 365 366static inline __m64 __attribute__((__always_inline__, __nodebug__)) 367_mm_cmpgt_pi8(__m64 __m1, __m64 __m2) 368{ | 364} 365 366static inline __m64 __attribute__((__always_inline__, __nodebug__)) 367_mm_cmpgt_pi8(__m64 __m1, __m64 __m2) 368{ |
369 return (__m64)__builtin_ia32_pcmpgtb((__v8qi)__m1, (__v8qi)__m2); | 369 return (__m64)((__v8qi)__m1 > (__v8qi)__m2); |
370} 371 372static inline __m64 __attribute__((__always_inline__, __nodebug__)) 373_mm_cmpgt_pi16(__m64 __m1, __m64 __m2) 374{ | 370} 371 372static inline __m64 __attribute__((__always_inline__, __nodebug__)) 373_mm_cmpgt_pi16(__m64 __m1, __m64 __m2) 374{ |
375 return (__m64)__builtin_ia32_pcmpgtw((__v4hi)__m1, (__v4hi)__m2); | 375 return (__m64)((__v4hi)__m1 > (__v4hi)__m2); |
376} 377 378static inline __m64 __attribute__((__always_inline__, __nodebug__)) 379_mm_cmpgt_pi32(__m64 __m1, __m64 __m2) 380{ | 376} 377 378static inline __m64 __attribute__((__always_inline__, __nodebug__)) 379_mm_cmpgt_pi32(__m64 __m1, __m64 __m2) 380{ |
381 return (__m64)__builtin_ia32_pcmpgtd((__v2si)__m1, (__v2si)__m2); | 381 return (__m64)((__v2si)__m1 > (__v2si)__m2); |
382} 383 384static inline __m64 __attribute__((__always_inline__, __nodebug__)) 385_mm_setzero_si64(void) 386{ 387 return (__m64){ 0LL }; 388} 389 --- 60 unchanged lines hidden --- | 382} 383 384static inline __m64 __attribute__((__always_inline__, __nodebug__)) 385_mm_setzero_si64(void) 386{ 387 return (__m64){ 0LL }; 388} 389 --- 60 unchanged lines hidden --- |