Double-Precision Functions - Texas Instruments TMS34010 Reference Manual

C compiler
Hide thumbs Also See for TMS34010:
Table of Contents

Advertisement

Runtime Environment - Floating-Point Support
If 0<e<2047 and f#:O, then V
=
(-1)S
x
2 e
-1023(.f):
V is not valid if
X=
(s,e,f) is not a normalized floating-point number
If s=O, e=O, and f=O, the V
=
0
For all other cases,
V
=
not valid
Precision of double-precision values is greater than 15 decimal digits; the
range includes:
Positive values:
1 .11 254 x 10-
308
to 8.98847 x 10
308
Negative values:
-8.98847 x 10
308
to -1.11254 x 10-
308
0
±oo
5.7.2 Double-Precision Functions
Assume that
dl
and
d2
are double-precision floating-point values on the
stack;
dl
is pushed first.
Function
FD$ADD
FD$SUB
FD$SUB-R
FD$MUL
FD$DIV
FD$DIV-R
FD$INC
FD$INCR
FD$DEC
FD$DECR
FD$GE
FD$LE
FD$GT
FD$LT
FD$EQ
FD$NE
FD$NEG
FD$ZERO
Action
Return
dl
+
d2
Return
dl - d2
Return
d2 - dl
Return
dl
*
d2
Return
dl / d2
Return
d2 / dl
Return
dl
+
1.0
Return
dl
+
1.0
(Note:
dl
is not popped.)
Return
dl -
1.0
Return
dl -
1.0
(Note:
dl
is not popped.)
Return
dl ;:: d2
(Return 1 or 0 in AS and set status.)
Return
dl
~
d2
(Return 1 or 0 in A8 and set status.)
Return
dl > d2
(Return 1 or 0 in AS and set status.)
Return
dl
<
d2
(Return 1 or 0 in AS and set status.)
Return
dl
==
d2
(Return 1 or 0 in AS and set status.)
Return
dl
1=
d2
(Return 1 or 0 in AS and set status.)
Return
-dl
(Note:
FD$NEG is also used for single-
precision. )
Returns 1 jf
dl
=
0
5-19

Advertisement

Table of Contents
loading

Table of Contents