Motorola DSP96002 User Manual

Page 669

Advertising
background image

B-150

DSP96002 USER’S MANUAL

MOTOROLA

When comparing two values, GL is true if the values are not equal and both values being compared are

valid floating-point numbers. The GL condition is false if either number is a NaN even though the values

are not equal.

B.3.9 Unordered(x,y) or x?y

Unordered(x,y), or x?y, returns the value TRUE if x is unordered with y, and returns FALSE otherwise. This

is an arithmetic function.

d2=d0?d1

Program ICycles

Words

fcmp d0,d1 #0,d2.l ;set ccr bits 2 2

inc d2 ffun ;set true if unordered 1 1

--- ---

Totals: 3 3

B.3.10Class(x)

Class(x) tells which of the following ten classes x falls into:

1.

signaling NaN

2.

quiet NaN

3.

-infinity

4.

negative normalized nonzero

5.

negative denormalized

6.

-0

7.

+0

8.

positive denormalized

9.

positive normalized nonzero

10.

+infinity

Class(x) function applies to single precision floating-point numbers.

Advertising