tmmintrin.h (250392) | tmmintrin.h (251212) |
---|---|
1/* Copyright (C) 2006 Free Software Foundation, Inc. | 1/* Copyright (C) 2006, 2007 Free Software Foundation, Inc. |
2 3 This file is part of GCC. 4 5 GCC is free software; you can redistribute it and/or modify 6 it under the terms of the GNU General Public License as published by 7 the Free Software Foundation; either version 2, or (at your option) 8 any later version. 9 --- 15 unchanged lines hidden (view full) --- 25 Public License. */ 26 27/* Implemented from the specification included in the Intel C++ Compiler 28 User Guide and Reference, version 9.1. */ 29 30#ifndef _TMMINTRIN_H_INCLUDED 31#define _TMMINTRIN_H_INCLUDED 32 | 2 3 This file is part of GCC. 4 5 GCC is free software; you can redistribute it and/or modify 6 it under the terms of the GNU General Public License as published by 7 the Free Software Foundation; either version 2, or (at your option) 8 any later version. 9 --- 15 unchanged lines hidden (view full) --- 25 Public License. */ 26 27/* Implemented from the specification included in the Intel C++ Compiler 28 User Guide and Reference, version 9.1. */ 29 30#ifndef _TMMINTRIN_H_INCLUDED 31#define _TMMINTRIN_H_INCLUDED 32 |
33#ifdef __SSSE3__ | 33#ifndef __SSSE3__ 34# error "SSSE3 instruction set not enabled" 35#else 36 37/* We need definitions from the SSE3, SSE2 and SSE header files*/ |
34#include <pmmintrin.h> 35 36static __inline __m128i __attribute__((__always_inline__)) 37_mm_hadd_epi16 (__m128i __X, __m128i __Y) 38{ 39 return (__m128i) __builtin_ia32_phaddw128 ((__v8hi)__X, (__v8hi)__Y); 40} 41 --- 183 unchanged lines hidden --- | 38#include <pmmintrin.h> 39 40static __inline __m128i __attribute__((__always_inline__)) 41_mm_hadd_epi16 (__m128i __X, __m128i __Y) 42{ 43 return (__m128i) __builtin_ia32_phaddw128 ((__v8hi)__X, (__v8hi)__Y); 44} 45 --- 183 unchanged lines hidden --- |