Re: [OT] PPC Float to Int
Re: [OT] PPC Float to Int
- Subject: Re: [OT] PPC Float to Int
- From: Andrew Pinski <email@hidden>
- Date: Wed, 13 Aug 2003 15:54:48 -0400
Doing multiple fctiwz's then writing out to memory is the best.
Also get the code working first and then do performance testing with
the CHUD tools.
Also there is an optional instruction (which is on all PPC Apple
supports for Mac OS X
including the 970) to write out only half of the floating point
register so you do not
have to waste 4 bytes in the stack.
Basically get it working and then see if this a performance bottle neck.
Thanks,
Andrew Pinski
On Wednesday, Aug 13, 2003, at 15:44 US/Eastern, Art Gillespie wrote:
So I'm porting some Windows DSP code from another developer and there
are quite a few Float->Int conversions per sample.
Is there anything faster on PPC than fctiw/fctiwz and the subsequent
stfd? The fctiw is fast enough, but writing the result out to memory
and then loading it into a integer register are making things, um,
not-cpu-friendly.
Any insight, pointers or stress-reducing haikus most welcome.
Thanks.
Art
>>0xBA
_______________________________________________
coreaudio-api mailing list | email@hidden
Help/Unsubscribe/Archives:
http://www.lists.apple.com/mailman/listinfo/coreaudio-api
Do not post admin requests to the list. They will be ignored.
_______________________________________________
coreaudio-api mailing list | email@hidden
Help/Unsubscribe/Archives:
http://www.lists.apple.com/mailman/listinfo/coreaudio-api
Do not post admin requests to the list. They will be ignored.