D. Floating
Point
Facility
The TMS3401 0 C
floating-point
package allows you
to
perform
real
number
arithmetic operations from
C.
The TMS3401 0
floating-point
functions have a
special
C assembly language interlace and, therefore,
do
not
adhere
to
the C
function calling convention. The TMS3401 0 C compiler performs
real
number
arithmetic in double precision. The
following
operations
are
included in the
C floating
point
package:
• Addition, subtraction, multiplication, division, negation, increment. and
decrement
for
double-precision format
• Comparisons
for
double precision format
• Conversions
Signed/unsigned integer
to
double
Double to signed/unsigned integer
Signed/unsigned integer
to
float
Float
to
signed/unsigned integer
Float
to
double
Double
to
float
• Creation
of
a floating
point
number in either single-
or
double-precision
format from
an
ASCII string
• Error detection and exception handling.
These operations/conversions
are
described on the
following
pages.
D-1