Re: Canonical format max amp limits?
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.