Ansi C Math Library Functions Supported By The Dsk Assembler - Texas Instruments TMS320C3 Series User Manual

Dsp starter kit
Hide thumbs Also See for TMS320C3 Series:
Table of Contents

Advertisement

Expression Analyzer
5.5 Expression Analyzer
The expression analyzer used in the DSK assembler includes ANSI C math
library functions that aid in the generation of tables and constants. These func-
tions eliminate the tedious work of calculating tables and constants before in-
cluding them in the assembly process. The functions are shown in Table 5–2.
Note:
If you use any of these functions, a post-assembly warning is generated to
remind you that these functions are not supported by the TMS320 floating-
point code generation COFF tools. If you want to use these functions with the
COFF toolset, then extract the resulting hexadecimal values from the DSK
listing file.
Table 5–2. ANSI C Math Library Functions Supported by the DSK Assembler
Function
long abs(long);
long labs(long);
double fabs(double);
double cos(double);
double acos(double);
double cosh(double);
double sin(double);
double asin(double);
double sinh(double);
double tan(double);
double atan(double);
double tanh(double);
long ceil(long);
double floor(double);
double exp(double);
double log(double);
5-12
Description
Absolute value
Absolute value
Floating-point absolute
Cosine
Arc cosine
Hyperbolic cosine
Sine
Arc sine
Hyperbolic sine
Tangent
Arc tangent
Hyperbolic tangent
Ceiling operator
Floor operator
Natural exponent (e) raised to the power of a value
Natural logarithm (ln)

Advertisement

Table of Contents
loading

This manual is also suitable for:

Tms320c31-dsk

Table of Contents