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

Mlib
Hide thumbs Also See for DSP56800E:
Table of Contents

Advertisement

2.47.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
Value
MLIB_ShLSat_F16
frac16_t
MLIB_ShLSat_F32
frac32_t

2.47.2 Declaration

The available
MLIB_ShLSat
frac16_t MLIB_ShLSat_F16(frac16_t
frac32_t MLIB_ShLSat_F32(frac32_t

2.47.3 Function use

The use of the
MLIB_ShLSat
#include "mlib.h"
static
frac16_t
f16Result, f16Val;
static
uint16_t
u16Sh;
void main(void)
{
Freescale Semiconductor, Inc.
Equation 45. Algorithm formula
MLIB_ShLSat
Table 2-47. Function versions
Input type
Result
type
Shift
uint16_t
frac16_t
Shift of a 16-bit fractional value to the left by a number of times
given by the second argument; the shift is allowed within the
range <0 ; 15>. The output is within the range <-1 ; 1).
uint16_t
frac32_t
Shift of a 32-bit fractional value to the left by a number of times
given by the second argument; the shift is allowed within the
range <0 ; 31>. The output is within the range <-1 ; 1).
functions have the following declarations:
f16Val,
uint16_t
f32Val,
uint16_t
function is shown in the following example:
MLIB User's Guide, Rev. 2, 10/2015
function are shown in the following table.
Description
u16Sh)
u16Sh)
Chapter 2 Algorithms in detail
87

Advertisement

Table of Contents
loading

Table of Contents