Motorola DSP96002 User Manual page 666

32-bit digital signal processor
Table of Contents

Advertisement

move
ori
ori
jmp
_notzero
getexp d1,d0
cmp
tfr
float.s
_done
Execution Time:
Nan
I nfinity
Zero
In-range
B.3.5 Nextafter(x,y)
Nextafter(x,y) returns the next representable neighbor of x in the direction toward y. The following special
cases arise: if x=y, then the result is x without any exception being signaled; otherwise, if either x or y is a
quiet NaN, then the result is one or the other input NaNs. Overflow is signaled when x is finite but nex-
tafter(x,y) is infinite; underflow is signaled when nextafter(x,y) lies strictly between +/-2 ** (Emin); in both
cases, inexact is signaled.
The x argument of the nextafter(x,y) must be a single precision number and not a single-extended number.
This is an arithmetic function.
MOTOROLA
#ninf,d0.s
#2,er
#2,ier
_done
#-126,d3.l ;get exponent
d3,d0
d3,d0
iflt
d0
4
7
16
15
DSP96002 USER'S MANUAL
;set -infinity result
;set DZ in ER
;set DZ in IER
;done
;cmp to SP exp min
;limit if denorm
;convert to SP FP
Totals:
2
2
1
1
1
1
2
2
2
2
1
1
1
1
1
1
---
---
18
*
B-147

Advertisement

Table of Contents
loading

Table of Contents