Declaration; Mlib_Neg - Freescale Semiconductor DSP56800E User Manual

Mlib
Hide thumbs Also See for DSP56800E:
Table of Contents

Advertisement

MLIB_Neg

2.36 MLIB_Neg
The
MLIB_Neg
functions return the negative value of the input. The function does not
saturate the output. See the following equation:
2.36.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_Neg_F16
frac16_t
MLIB_Neg_F32
frac32_t

2.36.2 Declaration

The available
MLIB_Neg
frac16_t MLIB_Neg_F16(frac16_t
frac32_t MLIB_Neg_F32(frac32_t
2.36.3 Function use
The use of the
MLIB_Neg
#include "mlib.h"
static
frac32_t
f32Val, f32Result;
74
Equation 34. Algorithm formula
MLIB_Neg
function are shown in the following table:
Table 2-36. Function versions
Result type
frac16_t
Negative value of a 16-bit fractional value. The output is within the
range <-1 ; 1).
frac32_t
Negative value of a 32-bit fractional value. The output is within the
range <-1 ; 1).
functions have the following declarations:
f16Val)
f32Val)
function is shown in the following example:
MLIB User's Guide, Rev. 2, 10/2015
Description
Freescale Semiconductor, Inc.

Advertisement

Table of Contents
loading

Table of Contents