Available Versions; Declaration; Function Use - Freescale Semiconductor DSP56800E User Manual

Mlib
Hide thumbs Also See for DSP56800E:
Table of Contents

Advertisement

MLIB_Msu4Sat

2.27.1 Available versions

This function is available in the following versions:
• Fractional output - the output is the fractional portion of the result; the result is
within the range <-1 ; 1). The result may saturate.
The available versions of the
Function name
MLIB_Msu4Sat_F32ssss

2.27.2 Declaration

The available
MLIB_Msu4Sat
frac32_t MLIB_Msu4Sat_F32ssss(frac16_t
f16SubMult1,
frac16_t

2.27.3 Function use

The use of the
MLIB_Msu4Sat
#include "mlib.h"
static
frac32_t
f32Result;
static
frac16_t
f16MinMult1, f16MinMult2, f16SubMult1, f16SubMult2;
void main(void)
{
f16MinMult1 = FRAC16(0.8);
f16MinMult2 = FRAC16(-0.9);
60
Equation 25. Algorithm formula
MLIB_Msu4Sat
Table 2-27. Function versions
Input type
Minuend product
Mult. 1
Mult. 2
frac16_t
frac16_t
frac16_t
functions have the following declarations:
f16MinMult1,
f16SubMult2)
function is shown in the following example:
/* f16MinMult1 = 0.8 */
/* f16MinMult2 = -0.9 */
MLIB User's Guide, Rev. 2, 10/2015
function are shown in the following table.
Result
type
Subtrahend product
Mult. 1
Mult. 2
frac16_t
frac32_t
frac16_t
f16MinMult2,
Description
Subtraction of two 32-bit
fractional products (of two
16-bit fractional
multiplicands). The output is
within the range <-1 ; 1).
frac16_t
Freescale Semiconductor, Inc.

Advertisement

Table of Contents
loading

Table of Contents