Ignore:
Timestamp:
Sep 18, 2008 2:11:29 PM (16 years ago)
Author:
bennylp
Message:

More ticket #619: changed default Cordic loop from 8 to 10 to gain more accuracy, and updated tonegen.c with the results from ARM9 tests

File:
1 edited

Legend:

Unmodified
Added
Removed
  • pjproject/trunk/pjmedia/src/pjmedia/tonegen.c

    r2292 r2294  
    4141     * Speed = 1347 usec to generate 1 second, 8KHz dual-tones (2.66GHz P4). 
    4242     *         approx. 10.91 MIPS 
     43     * 
     44     *         506,535 usec/100.29 MIPS on ARM926EJ-S. 
    4345     */ 
    4446    struct gen 
     
    6668     * Speed = 350 usec to generate 1 second, 8KHz dual-tones (2.66GHz P4). 
    6769     *         approx. 2.84 MIPS 
     70     * 
     71     *         18,037 usec/3.57 MIPS on ARM926EJ-S. 
    6872     */ 
    6973    struct gen 
     
    8589     *         (PJMEDIA_TONEGEN_FIXED_POINT_CORDIC_LOOP=7) 
    8690     *         approx. 6.01 MIPS 
     91     * 
     92     *         ARM926EJ-S results: 
     93     *          loop=7:   8,943 usec/1.77 MIPS 
     94     *          loop=8:   9,872 usec/1.95 MIPS 
     95     *          loop=10: 11,662 usec/2.31 MIPS 
     96     *          loop=12: 13,561 usec/2.69 MIPS 
    8797     */ 
    8898    #define CORDIC_1K           0x026DD3B6 
     
    185195     * Speed = 117 usec to generate 1 second, 8KHz dual-tones (2.66GHz P4). 
    186196     *         approx. 0.95 MIPS 
     197     * 
     198     *         1,449 usec/0.29 MIPS on ARM926EJ-S. 
    187199     */ 
    188200    PJ_INLINE(int) approximate_sin3(unsigned x) 
Note: See TracChangeset for help on using the changeset viewer.