I think I figured it out. Thanks for your help. Here's what I wound up with
:
r12 = r12 -1, r0 = pm(i12,m12) ;
f1 = float r0, r0 = pm(i12,m12) ;
r2 = pm(i13,m11);
f4 = float r2, r2 = pm(i13,m11) ;
LCNTR=r12, DO xfer UNTIL LCE ;
f1 = float r0, dm(i4,m4) = f1, r0 = pm(i12,m12) ;
xfer: f4 = float r2, dm(i5,m4) = f4, r2 = pm(i13,m11) ;
dm(i4,m4) = f1 ;
dm(i5,m4) = f4 ;
At 02:50 PM 10/20/2004, Steve Holle wrote:
> >Yes. Try this (assume that the float array is
in pm, i10 is the
> >corresponding pointer and m9 = m1):
> >
> >r2 = dm(_l_NumPairs) ;
> >r2=r2-1, r0 = dm(i4,m4) ;
> >f1 = float r0 , r0 = dm(i4,m4);
> >
> >LCNTR=r2 , DO xfer UNTIL LCE ;
> > f1 = float r0, r0 = dm(i4,m4), pm(i10,m9) = f1 ;
> >xfer: f1 = float r0, r0 = dm(i4,m4), pm(i10,m9) = f1 ;
> >
> >f1 = float r0, pm(i10,m9) = f1 ;
> >pm(i10,m9) = f1 ;
> >
> >This code should run three times faster than your original.
> >
> >Regards,
> >Andor
>
>Is there a way to turn this around so that my float output arrays are in
dm
>and my integer input arrays are in pm?
>
> >_____________________________________
> >Note: If you do a simple "reply" with your email client, only
the author
> >of this message will receive your answer. You need to do a "reply
all" if
> >you want your answer to be distributed to the entire group.
> >
> >_____________________________________
> >About this discussion group:
> >
> >To Join: Send an email to
> >
> >To Post: Send an email to
> >
> >To Leave: Send an email to
> >
> >Archives: http://groups.yahoo.com/group/adsp
> >
> >Other Groups: http://www.dsprelated.com/groups.php3
> >
> >Yahoo! Groups Links
> >
> >
> >
> >
>
>Steve Holle
>Link Communications, Inc.
>1035 Cerise Rd.
>Billings, MT 59101
>
>
>_____________________________________
>Note: If you do a simple "reply" with your email client, only the
author
>of this message will receive your answer. You need to do a "reply
all" if
>you want your answer to be distributed to the entire group.
>
>_____________________________________
>About this discussion group:
>
>To Join: Send an email to
>
>To Post: Send an email to
>
>To Leave: Send an email to
>
>Archives: http://groups.yahoo.com/group/adsp
>
>Other Groups: http://www.dsprelated.com/groups.php3
>
>Yahoo! Groups Links
>
>
Steve Holle
Link Communications, Inc.
1035 Cerise Rd.
Billings, MT 59101
|