📄 mfr.h
字号:
** ===================================================================
*/
//Frac16 MFR_negate(Frac16 x);
/*
** ===================================================================
** Method : MFR_negate (bean DSP_Func_MFR)
**
** This method can be used also under name "negate"
**
** Description :
** The negate function negates the fractional input value.
** Parameters :
** NAME - DESCRIPTION
** x - The input data value.
** Returns :
** --- - The negate function returns the result
** of the negation.
** ===================================================================
*/
//Frac32 MFR_L_negate(Frac32 x);
/*
** ===================================================================
** Method : MFR_L_negate (bean DSP_Func_MFR)
**
** This method can be used also under name "L_negate"
**
** Description :
** The negate function negates the fractional input value.
** Parameters :
** NAME - DESCRIPTION
** x - The input data value.
** Returns :
** --- - The negate function returns the result
** of the negation.
** ===================================================================
*/
//Frac16 MFR_round(Frac32 x);
/*
** ===================================================================
** Method : MFR_round (bean DSP_Func_MFR)
**
** This method can be used also under name "round"
**
** Description :
** The round function rounds the 32-bit fractional input
** value to 16 bits.
** Parameters :
** NAME - DESCRIPTION
** x - The input data value
** Returns :
** --- - The round returns the 16-bit
** representation of the input value,
** rounded to the least significant bit.
** ===================================================================
*/
//Frac16 MFR_shl(Frac16 x,Int16 n);
/*
** ===================================================================
** Method : MFR_shl (bean DSP_Func_MFR)
**
** This method can be used also under name "shl"
**
** Description :
** The shl function arithmetically shifts the input variable
** x left n positions, zero filling the least significant
** bits of the result. If n is negative, the shl function
** arithmetically shifts x right by -n bits with sign
** extension.
** Parameters :
** NAME - DESCRIPTION
** x - The input data value.
** n - The number of bits to left shift x; n is
** signed and, if negative, implies a right
** shift.
** Returns :
** --- - The shl function returns the value x
** arithmetically shifted by n bits.
** ===================================================================
*/
//Frac16 MFR_shr(Frac16 x,Int16 n);
/*
** ===================================================================
** Method : MFR_shr (bean DSP_Func_MFR)
**
** This method can be used also under name "shr"
**
** Description :
** The shr function arithmetically shifts the input variable
** x right n positions, sign extending the result. If n is
** negative, the shr function arithmetically shifts x left
** by -n bits, zero filling the least significant bits.
** Parameters :
** NAME - DESCRIPTION
** x - The input data value.
** n - The number of bits to right shift x; n is
** signed and, if negative, implies a right
** shift.
** Returns :
** --- - The function returns the value x
** arithmetically shifted by n bits.
** ===================================================================
*/
//Frac16 MFR_shr_r(Frac16 x,Int16 n);
/*
** ===================================================================
** Method : MFR_shr_r (bean DSP_Func_MFR)
**
** This method can be used also under name "shr_r"
**
** Description :
** The shr_r function arithmetically shifts the input
** variable x right n positions, sign extending the result.
** If n is negative, the shr_r function arithmetically
** shifts x left by -n bits, zero filling the least
** significant bits. shr_r differs from shr in that shr_r
** rounds the 32-bit fractional result.
** Parameters :
** NAME - DESCRIPTION
** x - The input data value.
** n - The number of bits to right shift x; n is
** signed and, if negative, implies a right
** shift.
** Returns :
** --- - The function returns the value x
** arithmetically shifted by n bits.
** ===================================================================
*/
//Frac16 MFR_L_shl(Frac32 x,Int16 n);
/*
** ===================================================================
** Method : MFR_L_shl (bean DSP_Func_MFR)
**
** This method can be used also under name "L_shl"
**
** Description :
** The L_shl function arithmetically shifts the input
** variable x left n positions, zero filling the least
** significant bits of the result. If n is negative, the shl
** function arithmetically shifts x right by -n bits with
** sign extension.
** Parameters :
** NAME - DESCRIPTION
** x - The input data value.
** n - The number of bits to left shift x; n is
** signed and, if negative, implies a right
** shift.
** Returns :
** --- - The L_shl function returns the value x
** arithmetically shifted by n bits.
** ===================================================================
*/
//Frac32 MFR_L_shr(Frac32 x,Int16 n);
/*
** ===================================================================
** Method : MFR_L_shr (bean DSP_Func_MFR)
**
** This method can be used also under name "L_shr"
**
** Description :
** The L_shr function arithmetically shifts the input
** variable x right n positions, sign extending the result.
** If n is negative, the L_shr function arithmetically
** shifts x left by -n bits, zero filling the least
** significant bits.
** Parameters :
** NAME - DESCRIPTION
** x - The input data value.
** n - The number of bits to right shift x; n is
** signed and, if negative, implies a right
** shift.
** Returns :
** --- - The function returns the value x
** arithmetically shifted by n bits.
** ===================================================================
*/
//Frac16 MFR_sub(Frac16 x,Frac16 y);
/*
** ===================================================================
** Method : MFR_sub (bean DSP_Func_MFR)
**
** This method can be used also under name "sub"
**
** Description :
** The sub function calculates (x - y).
** Parameters :
** NAME - DESCRIPTION
** x - The input data value.
** y - Zhe second input data value to subtract.
** Returns :
** --- - The function returns the results of the
** subtraction (x-y).
** ===================================================================
*/
//Frac32 MFR_L_sub(Frac32 x,Frac32 y);
/*
** ===================================================================
** Method : MFR_L_sub (bean DSP_Func_MFR)
**
** This method can be used also under name "L_sub"
**
** Description :
** The L_sub function calculates (x - y).
** Parameters :
** NAME - DESCRIPTION
** x - The input data value.
** y - Zhe second input data value to subtract.
** Returns :
** --- - The function returns the results of the
** subtraction (x-y).
** ===================================================================
*/
//Int16 MFR_norm_s(Frac16 x);
/*
** ===================================================================
** Method : MFR_norm_s (bean DSP_Func_MFR)
**
** This method can be used also under name "norm_s"
**
** Description :
** The norm function calculates the number of left shifts
** needed to normalize a fractional value.
** Parameters :
** NAME - DESCRIPTION
** x - The input data value.
** Returns :
** --- - The norm function returns the number of
** left shifts needed to normalize the
** fractional input value.
** ===================================================================
*/
//Int16 MFR_norm_l(Frac32 x);
/*
** ===================================================================
** Method : MFR_norm_l (bean DSP_Func_MFR)
**
** This method can be used also under name "norm_l"
**
** Description :
** The norm function calculates the number of left shifts
** needed to normalize a fractional value.
** Parameters :
** NAME - DESCRIPTION
** x - The input data value.
** Returns :
** --- - The norm function returns the number of
** left shifts needed to normalize the
** fractional input value.
** ===================================================================
*/
/* END MFR. */
#endif /* ifndef __MFR */
/*
** ###################################################################
**
** This file was created by UNIS Processor Expert 2.98 [03.79]
** for the Freescale 56800 series of microcontrollers.
**
** ###################################################################
*/
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -