Re: problem with the 'rq_table.dat' during compilation

Rob Leslie <[email protected]> Fri, 19 Aug 2005 19:10:12 -0700
Newsgroups gmane.comp.audio.mad.devel
Message-ID <[email protected]>
On Aug 18, 2005, at 2:21 AM, Swapnil Wagle wrote:
>         I am trying to compile Madlib for PalmOS.Since Palm OS has  
> the 68K limitation I removed last 20 entires from the  
> rq_table.dat.Will this work w/o these entires,atleast a garbage  
> output.

There is another possibility in addition to Grigory's suggestion,  
although it will result in reduced accuracy.

The table size can be reduced from 32K to 4K by exploiting the  
following equality:

     (8 x)^(4/3) = 16 x^(4/3)

Specifically, when x ≥ 1024, x^(4/3) can be calculated by:

     16 (x/8)^(4/3)

Thus the table size can be reduced to 4K (for entries 0-1023), at the  
expense of a loss of audio quality due to the error introduced by the  
integer division.

-- 
Rob Leslie
[email protected]