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

Mlib
Hide thumbs Also See for DSP56800E:
Table of Contents

Advertisement

MLIB_Sh1L

2.43 MLIB_Sh1L
The
MLIB_Sh1L
functions return the arithmetically one-time-shifted value to the left.
The function does not saturate the output. See the following equation:

2.43.1 Available versions

The 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_Sh1L_F16
frac16_t
MLIB_Sh1L_F32
frac32_t

2.43.2 Declaration

The available
MLIB_Sh1L
frac16_t MLIB_Sh1L_F16(frac16_t
frac32_t MLIB_Sh1L_F32(frac32_t

2.43.3 Function use

The use of the
MLIB_Sh1L
#include "mlib.h"
static
frac32_t
f32Result, f32Val;
82
Equation 41. Algorithm formula
MLIB_Sh1L
function are shown in the following table.
Table 2-43. 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)
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