Motorola DSP96002 User Manual page 665

32-bit digital signal processor
Table of Contents

Advertisement

B.3.2 -x
The arithmetic form signals IOP if x is a signalling NaN. The non-arithmetic form copies x with its sign com-
plemented.
fneg.s
bchg
B.3.3 Scalb(y,N)
Scalb(y,N) returns y * (2 ** N) for integral values of N without computing 2 ** N. This is an arithmetic function.
fscale.s d1.h,d0
B.3.4 Logb(x)
Logb(x) returns the unbiased exponent of x, a signed integer in the format of x, except that logb(NaN) is a
NaN, logb(infinite) is +infinity, and logb(0) is -infinity and signals the division by zero exception. When x is
positive and finite, the expression scalb(x,-logb(x)) lies strictly between 0 and 2; it is less than 1 only when
x is denormalized. This is an arithmetic function.
ninf
ftst
fjun
fjinf
fjne
B-146
Arithmetic Implementation Of
-d0
d0
;change sign bit
Non-Arithmetic Implementation Of
-d0
#31,d0.h
;change sign bit
Arithmetic Implementation Of
d0 * (2 ** d1.h)
;scale d0
Arithmetic Implementation Of
d0=logb(d1)
equ
$ff800000
d1
d1.s,d0.s
_done
_done
_notzero
DSP96002 USER'S MANUAL
Totals:
Totals:
Totals:
;negative infinity
;check input, copy
;done if nan
;done if infinity
;jump if non-zero
Program ICycles
Words
1
1
---
---
1
1
Program ICycles
Words
1
2
---
---
1
2
Program ICycles
Words
1
1
---
---
1
1
Program ICycles
Words
1
1
2
3
2
3
2
3
MOTOROLA

Advertisement

Table of Contents
loading

Table of Contents