libavcodec/ppc/types_altivec.h
Go to the documentation of this file.
00001 /*
00002  * Copyright (c) 2006 Guillaume Poirier <gpoirier@mplayerhq.hu>
00003  *
00004  * This file is part of FFmpeg.
00005  *
00006  * FFmpeg is free software; you can redistribute it and/or
00007  * modify it under the terms of the GNU Lesser General Public
00008  * License as published by the Free Software Foundation; either
00009  * version 2.1 of the License, or (at your option) any later version.
00010  *
00011  * FFmpeg is distributed in the hope that it will be useful,
00012  * but WITHOUT ANY WARRANTY; without even the implied warranty of
00013  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
00014  * Lesser General Public License for more details.
00015  *
00016  * You should have received a copy of the GNU Lesser General Public
00017  * License along with FFmpeg; if not, write to the Free Software
00018  * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
00019  */
00020 
00021 #ifndef AVCODEC_PPC_TYPES_ALTIVEC_H
00022 #define AVCODEC_PPC_TYPES_ALTIVEC_H
00023 
00024 /***********************************************************************
00025  * Vector types
00026  **********************************************************************/
00027 #define vec_u8  vector unsigned char
00028 #define vec_s8  vector signed char
00029 #define vec_u16 vector unsigned short
00030 #define vec_s16 vector signed short
00031 #define vec_u32 vector unsigned int
00032 #define vec_s32 vector signed int
00033 #define vec_f   vector float
00034 
00035 /***********************************************************************
00036  * Null vector
00037  **********************************************************************/
00038 #define LOAD_ZERO const vec_u8 zerov = vec_splat_u8( 0 )
00039 
00040 #define zero_u8v  (vec_u8)  zerov
00041 #define zero_s8v  (vec_s8)  zerov
00042 #define zero_u16v (vec_u16) zerov
00043 #define zero_s16v (vec_s16) zerov
00044 #define zero_u32v (vec_u32) zerov
00045 #define zero_s32v (vec_s32) zerov
00046 
00047 #endif /* AVCODEC_PPC_TYPES_ALTIVEC_H */