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

Mlib
Hide thumbs Also See for DSP56800E:
Table of Contents

Advertisement

2.4 MLIB_AddSat

The
MLIB_AddSat
functions return the sum of two addends. The function saturates the
output. See the following equation:

2.4.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
Addend 1
MLIB_AddSat_F16
frac16_t
MLIB_AddSat_F32
frac32_t

2.4.2 Declaration

The available
MLIB_AddSat
frac16_t MLIB_Add_F16(frac16_t
frac32_t MLIB_Add_F32(frac32_t

2.4.3 Function use

The use of the
MLIB_AddSat
Freescale Semiconductor, Inc.
Equation 4. Algorithm formula
MLIB_AddSat
Table 2-4. Function versions
Input type
Result
type
Addend 2
frac16_t
frac16_t
frac32_t
frac32_t
functions have the following declarations:
f16Add1,
frac16_t
f32Add1,
frac32_t
function is shown in the following example:
MLIB User's Guide, Rev. 2, 10/2015
function are shown in the following table.
Description
Addition of two 16-bit fractional addends. The output is
within the range <-1 ; 1).
Addition of two 32-bit fractional addends. The output is
within the range <-1 ; 1).
f16Add2)
f32Add2)
Chapter 2 Algorithms in detail
27

Advertisement

Table of Contents
loading

Table of Contents