altivec-types.h (714B)
1 /* 2 * altivec-types.h - shorter vector typedefs 3 * 4 * This Source Code Form is subject to the terms of the Mozilla Public 5 * License, v. 2.0. If a copy of the MPL was not distributed with this 6 * file, You can obtain one at http://mozilla.org/MPL/2.0/. */ 7 8 #ifndef _ALTIVEC_TYPES_H_ 9 #define _ALTIVEC_TYPES_H_ 1 10 11 #include <altivec.h> 12 13 typedef __vector unsigned char vec_u8; 14 typedef __vector signed char vec_s8; 15 typedef __vector unsigned short vec_u16; 16 typedef __vector signed short vec_s16; 17 typedef __vector unsigned int vec_u32; 18 typedef __vector signed int vec_s32; 19 #ifdef __VSX__ 20 typedef __vector unsigned long long vec_u64; 21 typedef __vector signed long long vec_s64; 22 #endif 23 typedef __vector float vec_f; 24 25 #endif