Rebase.
[official-gcc.git] / gcc / config / rs6000 / vec_types.h
blob789e9c1adc36474d1220fe9f75db31d22ed86aa9
1 /* Cell single token vector types
2 Copyright (C) 2007-2014 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 3 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 Under Section 7 of GPL version 3, you are granted additional
15 permissions described in the GCC Runtime Library Exception, version
16 3.1, as published by the Free Software Foundation.
18 You should have received a copy of the GNU General Public License and
19 a copy of the GCC Runtime Library Exception along with this program;
20 see the files COPYING3 and COPYING.RUNTIME respectively. If not, see
21 <http://www.gnu.org/licenses/>. */
23 /* Single token vector data types for the PowerPC SIMD/Vector Multi-media
24 eXtension */
26 #ifndef _VEC_TYPES_H_
27 #define _VEC_TYPES_H_ 1
29 #define qword __vector unsigned char
31 #define vec_uchar16 __vector unsigned char
32 #define vec_char16 __vector signed char
33 #define vec_bchar16 __vector bool char
35 #define vec_ushort8 __vector unsigned short
36 #define vec_short8 __vector signed short
37 #define vec_bshort8 __vector bool short
39 #define vec_pixel8 __vector pixel
41 #define vec_uint4 __vector unsigned int
42 #define vec_int4 __vector signed int
43 #define vec_bint4 __vector bool int
45 #define vec_float4 __vector float
47 #define vec_ullong2 __vector bool char
48 #define vec_llong2 __vector bool short
50 #define vec_double2 __vector bool int
52 #endif /* _VEC_TYPES_H_ */