EasyManua.ls Logo

Texas Instruments TMS34010 - Page 101

Texas Instruments TMS34010
128 pages
To Next Page IconTo Next Page
To Next Page IconTo Next Page
To Previous Page IconTo Previous Page
To Previous Page IconTo Previous Page
Loading...
FP
COMPARE
Double
Precision
Compare
_FP COMPARE
Input(s)
Output(s)
Action
Description
Errors
Example
0-10
double1, double2,
op
int
If
(double1
op
double2).
then 1
-+
int
Else
0
-->
int
where
op
is defined
as
follows:
1
== equal
2
I =
not
equal
3
< =
.less
than or equal
4
< less than
5
> = greater than or equal
6 > greater than .
This function takes
two
double-precision
floating-point
numbers and
compares them according to a third
input. op. The integer result
is
zero
if
the comparison
is
false and one
if it
is true. The inputs doubleT and double2
are
compared according
to
op,
with
doubleT being the leftmost argument.
None.
The subset
of
extended
real
numbers representable by the
TMS34010
double-precision
floating-point
format forms a
well
ordered set.
The
following
is
an
example
of
C code
which
would
generate a call
to
...,FP-COMPARE.
main(
)
[
double
a,b;
if
(a
<
b)
;
/*
declare
two
double
precision
floating
point
numbers
* /
/*
OP
= 2
when
-FP-COMPARE
is
called
* /
/*
end
of
main
* /

Table of Contents

Other manuals for Texas Instruments TMS34010

Related product manuals