Merged with mainline at revision 128810.
[official-gcc.git] / gcc / config / rs6000 / vec_types.h
blobeabe78b6996f5fc0965102b82250c28cb6413553
1 /* Cell single token vector types
2 Copyright (C) 2007 Free Software Foundation, Inc.
4 This file is free software; you can redistribute it and/or modify it under
5 the terms of the GNU General Public License as published by the Free
6 Software Foundation; either version 2 of the License, or (at your option)
7 any later version.
9 This file is distributed in the hope that it will be useful, but WITHOUT
10 ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
11 FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
12 for more details.
14 You should have received a copy of the GNU General Public License
15 along with this file; see the file COPYING. If not, write to the Free
16 Software Foundation, 51 Franklin Street, Fifth Floor, Boston, MA
17 02110-1301, USA. */
19 /* As a special exception, if you include this header file into source files
20 compiled by GCC, this header file does not by itself cause the resulting
21 executable to be covered by the GNU General Public License. This exception
22 does not however invalidate any other reasons why the executable file might be
23 covered by the GNU General Public License. */
25 /* Single token vector data types for the PowerPC SIMD/Vector Multi-media
26 eXtension */
28 #ifndef _VEC_TYPES_H_
29 #define _VEC_TYPES_H_ 1
31 #define qword __vector unsigned char
33 #define vec_uchar16 __vector unsigned char
34 #define vec_char16 __vector signed char
35 #define vec_bchar16 __vector bool char
37 #define vec_ushort8 __vector unsigned short
38 #define vec_short8 __vector signed short
39 #define vec_bshort8 __vector bool short
41 #define vec_pixel8 __vector pixel
43 #define vec_uint4 __vector unsigned int
44 #define vec_int4 __vector signed int
45 #define vec_bint4 __vector bool int
47 #define vec_float4 __vector float
49 #define vec_ullong2 __vector bool char
50 #define vec_llong2 __vector bool short
52 #define vec_double2 __vector bool int
54 #endif /* _VEC_TYPES_H_ */