Mlib_Sh1Lsat; Available Versions; Declaration - Freescale Semiconductor DSP56800E User Manual

Mlib
Hide thumbs Also See for DSP56800E:
Table of Contents

Advertisement

void main(void)
{
f32Val = FRAC32(-0.354);
/* f32Result = f32Val << 1 */
f32Result = MLIB_Sh1L_F32(f32Val);
}

2.44 MLIB_Sh1LSat

The
MLIB_Sh1LSat
The function saturates the output. See the following equation:

2.44.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
Input type
MLIB_Sh1LSat_F16
frac16_t
MLIB_Sh1LSat_F32
frac32_t

2.44.2 Declaration

The available
MLIB_Sh1LSat
frac16_t MLIB_Sh1LSat_F16(frac16_t
frac32_t MLIB_Sh1LSat_F32(frac32_t
Freescale Semiconductor, Inc.
/* f32Val = -0.354 */
functions return the arithmetically one-time-shifted value to the left.
Equation 42. Algorithm formula
MLIB_Sh1LSat
Table 2-44. Function versions
Result type
frac16_t
Shift of a 16-bit fractional value by one time to the left. The output is
within the range <-1 ; 1).
frac32_t
Shift of a 32-bit fractional value by one time to the left. The output is
within the range <-1 ; 1).
functions have the following declarations:
f16Val)
f32Val)
MLIB User's Guide, Rev. 2, 10/2015
function are shown in the following table.
Description
Chapter 2 Algorithms in detail
83

Advertisement

Table of Contents
loading

Table of Contents