Re: [OT] PPC Float to Int
Re: [OT] PPC Float to Int
- Subject: Re: [OT] PPC Float to Int
- From: Jeremy Sagan <email@hidden>
- Date: Wed, 13 Aug 2003 17:13:58 -0400
Art,
I think the Core Audio folks are recommending the Audio Converter but
another possibility, if you do do it yourself, is to use Altivec (for
G4's only of course). There is an instruction to convert float to int
using all 128 bits at a time.
for instance:
sampLR1 = vec_cts(sampLR1f, 31); //Convert to int L0R0L1R1
Jeremy
On Wednesday, August 13, 2003, at 03:44 PM, 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.