Algorithms In Detail; Available Versions; Declaration; Mlib_Abs - Freescale Semiconductor DSP56800E User Manual

Mlib
Hide thumbs Also See for DSP56800E:
Table of Contents

Advertisement

Chapter 2

Algorithms in detail

2.1 MLIB_Abs

The
MLIB_Abs
functions return the absolute value of the input. The function does not
saturate the output. See the following equation:

2.1.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
Input type
MLIB_Abs_F16
frac16_t
MLIB_Abs_F32
frac32_t

2.1.2 Declaration

The available
MLIB_Abs
frac16_t MLIB_Abs_F16(frac16_t
frac32_t MLIB_Abs_F32(frac32_t
Freescale Semiconductor, Inc.
Equation 1. Algorithm formula
MLIB_Abs
function are shown in the following table.
Table 2-1. Function versions
Result type
frac16_t
Absolute value of a 16-bit fractional value. The output is within the
range <-1 ; 1).
frac32_t
Absolute value of a 32-bit fractional value. The output is within the
range <-1 ; 1).
functions have the following declarations:
f16Val)
f32Val)
MLIB User's Guide, Rev. 2, 10/2015
Description
23

Advertisement

Table of Contents
loading

Table of Contents