The following list shows the accumulator types defined in the libraries:
•
Fixed-point 16-bit accumulator
—<-256.0 ; 256.0 - 2
-7
> with the minimum
resolution of 2
-7
•
Fixed-point 32-bit accumulator
—<-65536.0 ; 65536.0 - 2
-15
> with the minimum
resolution of 2
-15
1.1.3 API definition
GMCLIB 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:
Table 1-1. Input/output types
Type
Output
Input
F16
s
F32
l
A32
a
1.1.4 Supported compilers
GMCLIB 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 gmclib.lib
file.
Introduction
GMCLIB User's Guide, Rev. 2, 10/2015
6
Freescale Semiconductor, Inc.
Содержание DSP56800E
Страница 1: ...GMCLIB User s Guide DSP56800E Document Number DSP56800EGMCLIBUG Rev 2 10 2015 ...
Страница 2: ...GMCLIB User s Guide Rev 2 10 2015 2 Freescale Semiconductor Inc ...
Страница 4: ...GMCLIB User s Guide Rev 2 10 2015 4 Freescale Semiconductor Inc ...
Страница 64: ...GMCLIB_SvmU7n GMCLIB User s Guide Rev 2 10 2015 64 Freescale Semiconductor Inc ...
Страница 78: ...GMCLIB User s Guide Rev 2 10 2015 78 Freescale Semiconductor Inc ...