Mlib_Abssat; Declaration - Freescale Semiconductor DSP56800E User Manual

Mlib
Hide thumbs Also See for DSP56800E:
Table of Contents

Advertisement

2.2.2 Declaration

The available

MLIB_AbsSat

frac16_t MLIB_AbsSat_F16(frac16_t
frac32_t MLIB_AbsSat_F32(frac32_t
2.2.3 Function use
The use of the
MLIB_AbsSat
#include "mlib.h"
static
frac16_t
f16Val, f16Result;
void main(void)
{
f16Val = FRAC16(-0.835);
/*
f16Result = sat(|f16Val|)
f16Result = MLIB_AbsSat_F16(f16Val);
}
2.3 MLIB_Add
The
MLIB_Add
functions return the sum of two addends. The function does not saturate
the output. See the following equation:
2.3.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.
Freescale Semiconductor, Inc.
functions have the following declarations:
f16Val)
f32Val)
function is shown in the following example:
/* f16Val = -0.835 */
*/
Equation 3. Algorithm formula
MLIB User's Guide, Rev. 2, 10/2015
Chapter 2 Algorithms in detail
25

Advertisement

Table of Contents
loading

Table of Contents