• 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: 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.

References: 
 >[OT] PPC Float to Int (From: Art Gillespie <email@hidden>)

  • Prev by Date: [OT] PPC Float to Int
  • Next by Date: Re: [OT] PPC Float to Int
  • Previous by thread: [OT] PPC Float to Int
  • Next by thread: Re: [OT] PPC Float to Int
  • Index(es):
    • Date
    • Thread