• 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: Canonical format max amp limits?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Canonical format max amp limits?


  • Subject: Re: Canonical format max amp limits?
  • From: Stephen Davis <email@hidden>
  • Date: Thu, 15 Jul 2004 19:23:29 -0700

On Jul 15, 2004, at 6:57 PM, paul wrote:

Clipping requires the use of an if statement does it not? Two if I'm not mistaken. One to check if it's over and one to check if it's under.

The PowerPC has an instruction that will convert to 32-bit integer with clipping so, with proper pre-/post- scaling, you can convert to integer with no branches. It's quite fast


Really? Is this a byproduct of setting the XER or a specific opcode?

There are two specific opcodes: fctiw & fctiwz. The manual sez:

fctiw frD, frB

If the operand in frB are greater than 2^31 - 1, bits 32-63 of frD are set to 0x7ffffff.
If the operand in frB areg less than -2^31, bits 32-63 of frD are set to 0x8000000.

stephen
_______________________________________________
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: 
 >Re: Canonical format max amp limits? (From: James Chandler Jr <email@hidden>)
 >Re: Canonical format max amp limits? (From: Steve Checkoway <email@hidden>)
 >Re: Canonical format max amp limits? (From: Brian Willoughby <email@hidden>)
 >Re: Canonical format max amp limits? (From: Steve Checkoway <email@hidden>)
 >Re: Canonical format max amp limits? (From: Stephen Davis <email@hidden>)
 >Re: Canonical format max amp limits? (From: paul <email@hidden>)

  • Prev by Date: Re: SetRenderCallback vs. SetInputCallback
  • Next by Date: Re: SetRenderCallback vs. SetInputCallback
  • Previous by thread: Re: Canonical format max amp limits?
  • Next by thread: Re: Canonical format max amp limits?
  • Index(es):
    • Date
    • Thread