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

Mlib
Hide thumbs Also See for DSP56800E:
Table of Contents

Advertisement

f32Result = MLIB_MacRndSat_F32(f32Accum, f32Mult1, f32Mult2);
}

2.18 MLIB_Mac4

The
MLIB_Mac4
functions return the sum of two products of two pairs of multiplicands.
The function does not saturate the output. See the following equation:

2.18.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_Mac4_F32ssss
frac16_t

2.18.2 Declaration

The available
MLIB_Mac4
frac32_t MLIB_Mac4_F32ssss(frac16_t
f16Add2Mult1,
frac16_t

2.18.3 Function use

The use of the
MLIB_Mac4
Freescale Semiconductor, Inc.
Equation 16. Algorithm formula
MLIB_Mac4
Table 2-18. Function versions
Input type
Product 1
Product 2
Mult. 1
Mult. 2
Mult. 1
frac16_t
frac16_t
functions have the following declarations:
f16Add1Mult1,
f16Add2Mult2)
function is shown in the following example:
MLIB User's Guide, Rev. 2, 10/2015
function are shown in the following table.
Result
type
Mult. 2
frac16_t
frac32_t
Addition of two 32-bit fractional
products (of two 16-bit fractional
multiplicands). The output is within the
range <-1 ; 1).
frac16_t
f16Add1Mult2,
Chapter 2 Algorithms in detail
Description
frac16_t
47

Advertisement

Table of Contents
loading

Table of Contents