altivec_trigger.c

来自「mpeg4视频解码源码.rar」· C语言 代码 · 共 41 行

C
41
字号
/***************************************************************************** * *  XVID MPEG-4 VIDEO CODEC *  - Altivec SIGILL trigger - * *  Copyright(C) 2004 Edouard Gomez <ed.gomez@free.fr> * *  This program is free software ; you can redistribute it and/or modify *  it under the terms of the GNU General Public License as published by *  the Free Software Foundation ; either version 2 of the License, or *  (at your option) any later version. * *  This program is distributed in the hope that it will be useful, *  but WITHOUT ANY WARRANTY ; without even the implied warranty of *  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the *  GNU General Public License for more details. * *  You should have received a copy of the GNU General Public License *  along with this program ; if not, write to the Free Software *  Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307 USA * * $Id$ * ****************************************************************************/#ifdef HAVE_ALTIVEC_H#include <altivec.h>#endif#include "../../portab.h"#include "../emms.h"voidaltivec_trigger(void){	vector unsigned int var1 = (vector unsigned int)AVV(0);	vector unsigned int var2 = (vector unsigned int)AVV(1);	var1 = vec_add(var1, var2);	return;}

⌨️ 快捷键说明

复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?