Declaration - Freescale Semiconductor DSP56800E User Manual

Mlib
Hide thumbs Also See for DSP56800E:
Table of Contents

Advertisement

2.38.2 Declaration

The available
MLIB_Rcp
acc32_t MLIB_Rcp_A32s(frac16_t
acc32_t MLIB_Rcp1_A32s(frac16_t
2.38.3 Function use
The use of the
MLIB_Rcp
#include "mlib.h"
static
acc32_t
a32Result;
static
frac16_t
f16Denom;
void main(void)
{
f16Denom = FRAC16(0.354);
/* a32Result = 1/f16Denom */
a32Result = MLIB_Rcp1_A32s(f16Denom);
}
2.39 MLIB_Rcp1Q
The
MLIB_Rcp1Q
functions return the single quadrant reciprocal value for the input
value. The input value must be a nonnegative number, otherwise the function returns
undefined results. The function does not saturate the output. See the following equation:
2.39.1 Available versions
This function is available in the following versions:
• Accumulator output with fractional input - the output is the accumulator type, where
the result is greater than or equal to 1. The function is not defined for negative inputs.
The input is the fractional type.
Freescale Semiconductor, Inc.
functions have the following declarations:
f16Denom)
f16Denom)
function is shown in the following example:
/* f16Denom = 0.354 */
Equation 37. Algorithm formula
MLIB User's Guide, Rev. 2, 10/2015
Chapter 2 Algorithms in detail
77

Advertisement

Table of Contents
loading

Table of Contents