
Expression Analyzer
5-13
Using the DSK Assembler
Table 5–2. ANSI C Math Library Functions Supported by the DSK Assembler (Continued)
ÁÁÁÁÁÁÁÁÁ
ÁÁÁÁÁÁÁÁÁ
Function
ÁÁÁÁÁÁÁÁÁÁÁÁÁÁÁ
ÁÁÁÁÁÁÁÁÁÁÁÁÁÁÁ
Description
ÁÁÁÁÁÁÁÁÁ
ÁÁÁÁÁÁÁÁÁ
double log10(double);
ÁÁÁÁÁÁÁÁÁÁÁÁÁÁÁ
ÁÁÁÁÁÁÁÁÁÁÁÁÁÁÁ
Logarithm (based–10)
ÁÁÁÁÁÁÁÁÁ
Á
ÁÁÁÁÁÁÁ
Á
ÁÁÁÁÁÁÁÁÁ
double pow10(double);
ÁÁÁÁÁÁÁÁÁÁÁÁÁÁÁ
Á
ÁÁÁÁÁÁÁÁÁÁÁÁÁ
Á
ÁÁÁÁÁÁÁÁÁÁÁÁÁÁÁ
10 raised to the power of a value
ÁÁÁÁÁÁÁÁÁ
ÁÁÁÁÁÁÁÁÁ
double sqrt(double);
ÁÁÁÁÁÁÁÁÁÁÁÁÁÁÁ
ÁÁÁÁÁÁÁÁÁÁÁÁÁÁÁ
Square root
ÁÁÁÁÁÁÁÁÁ
ÁÁÁÁÁÁÁÁÁ
double log2(double);
ÁÁÁÁÁÁÁÁÁÁÁÁÁÁÁ
ÁÁÁÁÁÁÁÁÁÁÁÁÁÁÁ
Logarithm (based–2)
ÁÁÁÁÁÁÁÁÁ
ÁÁÁÁÁÁÁÁÁ
double pow(double,double);
ÁÁÁÁÁÁÁÁÁÁÁÁÁÁÁ
ÁÁÁÁÁÁÁÁÁÁÁÁÁÁÁ
First value raised to the power of the second value
ÁÁÁÁÁÁÁÁÁ
Á
ÁÁÁÁÁÁÁ
Á
ÁÁÁÁÁÁÁÁÁ
long br(long, long);
ÁÁÁÁÁÁÁÁÁÁÁÁÁÁÁ
Á
ÁÁÁÁÁÁÁÁÁÁÁÁÁ
Á
ÁÁÁÁÁÁÁÁÁÁÁÁÁÁÁ
Align the first value
to the next address located by
raising the second value to the power of 2
ÁÁÁÁÁÁÁÁÁ
Á
ÁÁÁÁÁÁÁ
Á
ÁÁÁÁÁÁÁÁÁ
long circ(long,long);
ÁÁÁÁÁÁÁÁÁÁÁÁÁÁÁ
Á
ÁÁÁÁÁÁÁÁÁÁÁÁÁ
Á
ÁÁÁÁÁÁÁÁÁÁÁÁÁÁÁ
Align the first value
to the next address located by
raising the second value to the power of 2
You can generate a table of values using certain assembler directives. To gen-
erate a table of values use the .loop/.endloop directives and the math library
functions listed in Table 5–2. For example, to create the twiddle table for an
FFT, use the following directives:
TWlength
.set
16
; Table size is 16
.brstart ”TwiddleTable”,2*TWlength
; Align to valid br–address
TWstart:
; create label OUTside loop
.loop
TWlength
; 16 pairs of complex numbers
.float sin(($–TWStart)*2*pi/TWlength)
; sin(n*pi/N)
.float cos(($–TWStart)*2*pi/TWlength)
; cos(n*pi/N)
.endloop
Table 5–3 shows the operators recognized by the DSK assembler.
Summary of Contents for TMS320C3 Series
Page 1: ...TMS320C3x DSP Starter Kit User s Guide...
Page 18: ...1 4...
Page 28: ...2 10...
Page 82: ...5 18...
Page 140: ...Communications Kernel Source Code A 12...
Page 145: ...Schematics B 5 DSK Circuit Board Dimensions and Schematic Diagrams...
Page 146: ...Schematics B 6...
Page 147: ...Schematics B 7 DSK Circuit Board Dimensions and Schematic Diagrams...
Page 148: ...Schematics B 8...
Page 149: ...Schematics B 9 DSK Circuit Board Dimensions and Schematic Diagrams...
Page 150: ...Schematics B 10...
Page 154: ...B 14...
Page 160: ...C 6...
Page 166: ...Index 6...