Api Definition; Supported Compilers - Freescale Semiconductor DSP56800E User Manual

Mlib
Hide thumbs Also See for DSP56800E:
Table of Contents

Advertisement

Introduction
Fixed-point 16-bit accumulator
-7
resolution of 2
Fixed-point 32-bit accumulator
-15
resolution of 2

1.1.3 API definition

MLIB uses the types mentioned in the previous section. To enable simple usage of the
algorithms, their names use set prefixes and postfixes to distinguish the functions'
versions. See the following example:
f32Result = MLIB_Mac_F32lss(f32Accum, f16Mult1, f16Mult2);
where the function is compiled from four parts:
• MLIB—this is the library prefix
• Mac—the function name—Multiply-Accumulate
• F32—the function output type
• lss—the types of the function inputs; if all the inputs have the same type as the
output, the inputs are not marked
The input and output types are described in the following table:

1.1.4 Supported compilers

MLIB for the DSP56800E core is written in assembly language with C-callable interface.
The library is built and tested using the following compilers:
• CodeWarrior™ Development Studio
For the CodeWarrior™ Development Studio, the library is delivered in the mlib.lib file.
The interfaces to the algorithms included in this library are combined into a single public
interface include file, mlib.h. This is done to lower the number of files required to be
included in your application.
14
—<-256.0 ; 256.0 - 2
—<-65536.0 ; 65536.0 - 2
Table 1-1. Input/output types
Type
Output
frac16_t
F16
frac32_t
F32
acc32_t
A32
MLIB User's Guide, Rev. 2, 10/2015
-7
> with the minimum
-15
> with the minimum
Input
s
l
a
Freescale Semiconductor, Inc.

Advertisement

Table of Contents
loading

Table of Contents