AN2094 Freescale Semiconductor / Motorola, AN2094 Datasheet - Page 44

no-image

AN2094

Manufacturer Part Number
AN2094
Description
ITU-T G.729 Implementation on StarCore SC140
Manufacturer
Freescale Semiconductor / Motorola
Datasheet
References
44
;* 1/sqrt(energy)
;* **************************************************************************************** *;
;* max = max/sqrt(energy)
;* This result will always be a 16-bit value!
;* **************************************************************************************** *;
Lrts
FLag_max_end
TextEnd_lag_max
]
loopend3
add d2,d0,d0
jsr _Inv_sqrt
tfr d7,d1
mpysu d0,d1,d3
and #$fffe0000,d3,d3
add d3,d4,d3
dmacss d0,d1,d3
move.w d3,(r2)
pop
pop
rts
mac d4,d4,d2
move.f (r2)+n3,d5
move.f (r3)+n3,d4
global FLag_max_end
endsec
d6
r6
ITU-T G.729 Implementation on the StarCore™ SC140/SC1400 Cores, Rev. 1
pop
pop
d7
r7
mpyus d0,d1,d4
move.l (sp-32),r2
sub d6,d2,d0
and #$fffe0000,d4,d4
asr d6,d6
move.w (sp-26),d2
Freescale Semiconductor
*;
*;

Related parts for AN2094