• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: [OT] PPC Float to Int
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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.

  • Follow-Ups:
    • trying to build IOAudioFamily.kext from source
      • From: Paul R Potts <email@hidden>
References: 
 >[OT] PPC Float to Int (From: Art Gillespie <email@hidden>)

  • Prev by Date: Re: other AU parameter suggestions
  • Next by Date: Re: AudioConverter format not supported error
  • Previous by thread: Re: [OT] PPC Float to Int
  • Next by thread: trying to build IOAudioFamily.kext from source
  • Index(es):
    • Date
    • Thread