
Floating-Point Expression Analysis
6-30
6.7 Floating-Point Expression Analysis
The TMS320C2x/C2xx/C5x C compiler represents floating-point values as
IEEE single-precision numbers. Both single-precision and double-precision
floating-point numbers are represented as 32-bit values; there is no difference
between the two formats.
The TMS320C2x/C2xx/C5x run-time-support library, rts.src, contains a
custom-coded set of floating-point math functions that support:
-
Addition, subtraction, multiplication, and division
-
Comparisons (>, <, >=, <=, ==, !=)
-
Conversions from integer or long to floating-point and floating-point to inte-
ger or long, both signed and unsigned
-
Standard error handling
These functions
do not
follow standard C calling conventions. Instead, the
compiler pushes the arguments onto the run-time stack and generates a call
to a floating-point function. The function pops the arguments, performs the
operation, and pushes the result onto the stack.
Some floating-point functions expect integer or long arguments or return
integer or long values. For floating-point functions, all integers are passed and
returned in the 16 LSBs of the accumulator, and all longs are passed and
returned in all 32 bits of the accumulator.
Содержание TMS320C2x
Страница 8: ...viii...
Страница 69: ...2 47 C Compiler Description...
Страница 159: ...6 36...
Страница 226: ...8 6...
Страница 250: ...Index Index 14 Z z shell option 2 2 2 4 2 14 overriding with c option 4 5 overriding with n option 2 13...