math_lib.h

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

H
43
字号
/*************************************************************************
*
* 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
*
*************************************************************************/


/*
   math_lib.h    Math include file.
		 (Log and Divide functions.)

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

#ifndef _math_lib_h
#define _math_lib_h_

/* External function definitions */
Shortword divider(Shortword numer, Shortword denom, Shortword numer_shift,
		  Shortword denom_shift);
Shortword L_divider2 (Longword numer, Longword denom, Shortword numer_shift,
		      Shortword denom_shift);
Shortword log10_fxp(Shortword x, Shortword Q);
Shortword L_log10_fxp(Longword x, Shortword Q);
Shortword pow10_fxp(Shortword x, Shortword Q);
Shortword sqrt_fxp (Shortword x, Shortword Q);
Shortword L_sqrt_fxp(Longword x, Shortword Q);
Shortword L_pow_fxp(Longword x,Shortword power,Shortword Q_in,Shortword Q_out);
Shortword sin_fxp(Shortword x);
Shortword cos_fxp(Shortword x);
Shortword acos_fxp(Shortword x);

#endif

⌨️ 快捷键说明

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