beautypg.com

Motorola DSP96002 User Manual

Page 668

background image

MOTOROLA

DSP96002 USER’S MANUAL

B-149

B.3.6 Finite(x)

Finite(x) returns the value TRUE if -inf

d1=Finite(d0)

Program ICycles

Words

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

inc d1 ffinf ;set true if infinite 1 1

--- ---

Totals: 3 3

B.3.7 Isnan(x)

Isnan(x) returns the value TRUE if x is a NaN, and returns FALSE otherwise. This is an arithmetic function.

d1=Isnan(d0)

Program ICycles

Words

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

inc d1 ffun ;set true if NaN 1 1

--- ---

Totals: 3 3

B.3.8 x<>y

x<>y is TRUE only when xy, and is distinct from x=/=y which means NOT(x=y). This is an arithmetic

function.

d2=d0<>d1

Program ICycles

Words

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

inc d2 ffgl ;set true if GL 1 1

--- ---

Totals: 3 3