Mlib_Mac4Rndsat; Available Versions; Declaration - Freescale Semiconductor DSP56800E User Manual

Mlib
Hide thumbs Also See for DSP56800E:
Table of Contents

Advertisement

The

MLIB_Mac4RndSat

of multiplicands. The round method is the round to nearest. The function saturates the
output. See the following equation:

2.21.1 Available versions

The 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
table.
Function name
MLIB_Mac4RndSat_F16
MLIB_Mac4RndSat_F32

2.21.2 Declaration

The available
MLIB_Mac4RndSat
frac16_t MLIB_Mac4RndSat_F16(frac16_t
f16Add2Mult1,
frac16_t
frac32_t MLIB_Mac4RndSat_F32(frac32_t
f32Add2Mult1,
frac32_t
Freescale Semiconductor, Inc.
functions return the rounded sum of two products of two pairs
Equation 19. Algorithm formula
MLIB_Mac4RndSat
Table 2-21. Function versions
Input type
Product 1
Mult. 1
Mult. 2
Mult. 1
frac16_t
frac16_t
frac16_t
frac32_t
frac32_t
frac32_t
functions have the following declarations:
f16Add1Mult1,
f16Add2Mult2)
f32Add1Mult1,
f32Add2Mult2)
MLIB User's Guide, Rev. 2, 10/2015
function are shown in the following
Result
type
Product 2
Mult. 2
frac16_t
frac16_t
Addition 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
Addition 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).
frac16_t
f16Add1Mult2,
frac32_t
f32Add1Mult2,
Chapter 2 Algorithms in detail
Description
frac16_t
frac32_t
51

Advertisement

Table of Contents
loading

Table of Contents