Motorola DSP96002 User Manual page 638

32-bit digital signal processor
Table of Contents

Advertisement

fmpy.x
pwr
X = Single Precision Float, Y = 32 Bit Unsigned Integer
;
;
d1.s = d4.s ** d0.l
;
bfind
move
sub
do
lsr
fmpy.x
fmpy.x
pwr
where N is the bit position of the most significant "one" bit in Y
plus 1.
X = Single Precision Float, Y = Single Precision Float
logc
dc
dc
dc
dc
dc
dc
dc
dc
dc
expc
dc
MOTOROLA
d4,d4,d4
Power Function X ** Y
d0,d0
#32,d2.l
d0.h,d3.l
d3,d2
#1.0,d1.s
d2.l,pwr
d0
d1,d4,d1
ifcs
d4,d4,d4
Power Function X ** Y
0.6681523e-02
-0.6736254e-01
0.2584541e+00
-0.3676691e+00
-0.4461204e+00
0.2740512e+01
-0.5236615e+01
0.6184454e+01
-0.3072334e+01
-0.5770606e-03
DSP96002 USER'S MANUAL
;scale power
Totals:
;how many bits
;initialize power
;get lsb
;multiply if bit set
;scale power
Totals:
; ** 8
; ** 7
; ** 6
; ** 5
; ** 4
; ** 3
; ** 2
; ** 1
; ** 0
; ** 8
1
1
---
---
7
100
Program
ICycles
Words
2
2
1
1
2
2
2
3
1
1
1
1
1
1
---
---
10
3N+8
Program
ICycles
Words
B-119

Advertisement

Table of Contents
loading

Table of Contents