mat.h

来自「It is source code for Melp2.4kps vocoder」· C头文件 代码 · 共 48 行

H
48
字号
/*************************************************************************
*
* The following code was hand optimized for the Texas Instuments
* TMS320C5x DSP by DSPCon, Inc.  For information, please contact DSPCon
* at:
* 
*                       DSPCon, Inc.
*                       380 Foothill Road
*                       Bridgewater, New Jersey 08807
*                       (908) 722-5656
*                       info@dspcon.com
*                       www.dspcon.com
*
*************************************************************************/


/*
   mat.h     Matrix include file.
	     (Low level matrix and vector functions.)

   Copyright (c) 1995 by Texas Instruments, Inc.  All rights reserved.
*/

#ifndef _mat_h
#define _mat_h_

Shortword *v_add(Shortword *vec1,Shortword *vec2,Shortword n);
Longword *L_v_add(Longword *L_vec1,Longword *L_vec2,Shortword n);
Shortword *v_equ(Shortword *vec1,Shortword *v2,Shortword n);
Shortword *v_equ_shr(Shortword *vec1,Shortword *vec2,Shortword scale,
		     Shortword n);
Longword *L_v_equ(Longword *L_vec1,Longword *L_vec2,Shortword n);
Shortword v_inner(Shortword *vec1,Shortword *vec2,Shortword n,
		  Shortword qvec1,Shortword qvec2,Shortword qout);

Longword L_v_inner(Shortword *vec1,Shortword *vec2,Shortword n);

Shortword v_magsq(Shortword *vec1,Shortword n,Shortword qvec1,Shortword qout);
Longword L_v_magsq(Shortword *vec1,Shortword n,Shortword qvec1,Shortword qout);
Shortword *v_scale(Shortword *vec1,Shortword scale,Shortword n);
Shortword *v_scale_shl(Shortword *vec1,Shortword scale,Shortword n,
		       Shortword shift);
Shortword *v_sub(Shortword *vec1,Shortword *vec2,Shortword n);
Shortword *v_zap(Shortword *vec1,Shortword n);
Longword *L_v_zap(Longword *L_vec1,Shortword n);

#endif

⌨️ 快捷键说明

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