2014-07-12 Paul Thomas <pault@gcc.gnu.org>
[official-gcc.git] / gcc / config / spu / vec_types.h
blob93816193e9c2e4c69481fb8dae4d433d36e66228
1 /* Copyright (C) 2006-2014 Free Software Foundation, Inc.
3 This file is free software; you can redistribute it and/or modify it under
4 the terms of the GNU General Public License as published by the Free
5 Software Foundation; either version 3 of the License, or (at your option)
6 any later version.
8 This file is distributed in the hope that it will be useful, but WITHOUT
9 ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
10 FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
11 for more details.
13 Under Section 7 of GPL version 3, you are granted additional
14 permissions described in the GCC Runtime Library Exception, version
15 3.1, as published by the Free Software Foundation.
17 You should have received a copy of the GNU General Public License and
18 a copy of the GCC Runtime Library Exception along with this program;
19 see the files COPYING3 and COPYING.RUNTIME respectively. If not, see
20 <http://www.gnu.org/licenses/>. */
22 #ifndef _VEC_TYPES_H_
23 #define _VEC_TYPES_H_ 1
25 #include <spu_intrinsics.h>
27 /* Define additional PowerPC SIMD/Vector Multi-media eXtension
28 * single keyword vector data types for use in mapping VMX code
29 * to the SPU.
31 #define vec_bchar16 __vector unsigned char
32 #define vec_bshort8 __vector unsigned short
33 #define vec_pixel8 __vector unsigned short
34 #define vec_bint4 __vector unsigned int
36 #endif /* _VEC_TYPES_H_ */