Available Versions; Mlib_Div - Freescale Semiconductor DSP56800E User Manual

Mlib
Hide thumbs Also See for DSP56800E:
Table of Contents

Advertisement

2.9 MLIB_Div

The
MLIB_Div
functions return the fractional division of the numerator and
denominator. The function does not saturate the output. See the following equation:

2.9.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 function is only defined for: |nominator| < |
denominator|. The function returns undefined results out of this condition.
• Accumulator output - the output is the accumulator type, where the result may be out
of the range <-1 ; 1).
The available versions of the
Function name
Input type
Num.
MLIB_Div_F16
frac16_t
MLIB_Div_F16ls
frac32_t
MLIB_Div_F16ll
frac32_t
MLIB_Div_F32ls
frac32_t
MLIB_Div_F32
frac32_t
MLIB_Div_A32ss
frac16_t
Freescale Semiconductor, Inc.
Equation 7. Algorithm formula
MLIB_Div
function are shown in the following table:
Table 2-9. Function versions
Result
type
Denom.
frac16_t
frac16_t
Division of a 16-bit fractional numerator and denominator. The
output is within the range <-1 ; 1).
frac16_t
frac16_t
Division of a 32-bit fractional numerator by a 16-bit fractional
denominator; the output is a 16-bit fractional result. The output is
within the range <-1 ; 1).
frac32_t
frac16_t
Division of a 32-bit fractional numerator and denominator; the
output is a 16-bit fractional result. The output is within the range
<-1 ; 1).
frac16_t
frac32_t
Division of a 32-bit fractional numerator by a 16-bit fractional
denominator; the output is a 32-bit fractional result. The output is
within the range <-1 ; 1).
frac32_t
frac32_t
Division of a 32-bit fractional numerator and denominator. The
output is within the range <-1 ; 1).
frac16_t
acc32_t
Division of a 16-bit fractional numerator and denominator; the
output is a 32-bit accumulator result. The output may be out of the
range <-1 ; 1).
Table continues on the next page...
MLIB User's Guide, Rev. 2, 10/2015
Chapter 2 Algorithms in detail
Description
33

Advertisement

Table of Contents
loading

Table of Contents