Declaration; Mlib_Msu4Rnd - Freescale Semiconductor DSP56800E User Manual

Mlib
Hide thumbs Also See for DSP56800E:
Table of Contents

Advertisement

f16SubMult1 = FRAC16(0.7);
f16SubMult2 = FRAC16(0.9);
/* f32Result = sat(f16MinMult1 * f16MinMult2 - f16SubMult1 * f16SubMult2) */
f32Result = MLIB_Msu4Sat_F32ssss(f16MinMult1, f16MinMult2, f16SubMult1, f16SubMult2);
}

2.28 MLIB_Msu4Rnd

The
MLIB_Msu4Rnd
pairs of multiplicands. The round method is the round to nearest. The function does not
saturate the output. See the following equation:
2.28.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 overflow.
The available versions of the
Function name
MLIB_Msu4Rnd_F16
frac16_t
MLIB_Msu4Rnd_F32
frac32_t

2.28.2 Declaration

The available
MLIB_Msu4Rnd
Freescale Semiconductor, Inc.
/* f16SubMult1 = 0.7 */
/* f16SubMult2 = 0.9 */
functions return the rounded subtraction of two products of two
Equation 26. Algorithm formula
MLIB_Msu4Rnd
Table 2-28. Function versions
Input type
Minuend product
Subtrahend product
Mult. 1
Mult. 2
Mult. 1
frac16_t
frac16_t
frac32_t
frac32_t
functions have the following declarations:
MLIB User's Guide, Rev. 2, 10/2015
Chapter 2 Algorithms in detail
function are shown in the following table.
Result
type
Mult. 2
frac16_t
frac16_t
Subtraction of two 16-bit
fractional products (of two 16-bit
fractional multiplicands), rounded
to the upper 16 bits. The output is
within the range <-1 ; 1).
frac32_t
frac32_t
Subtraction of two 32-bit
fractional products (of two 32-bit
fractional multiplicands), rounded
to the upper 32 bits. The output is
within the range <-1 ; 1).
Description
61

Advertisement

Table of Contents
loading

Table of Contents