Ignore:
Timestamp:
02/17/07 21:18:35 (18 years ago)
Author:
r2d
Message:
  • speed optimizations
File:
1 edited

Legend:

Unmodified
Added
Removed
  • libmpc/branches/r2d/libmpcpsy/psy.c

    r137 r221  
    858858    int           l;
    859859    float         new_erg;
    860     float         th;
     860        float         th, TransDetect = m->TransDetect;
    861861    const float*  ep;
    862862
     
    874874            if ( new_erg > old_erg [0][k] ) {           // bigger than the old?
    875875
    876                 if ( new_erg > old_erg [0][k] * m->TransDetect  ||
    877                                          new_erg > old_erg [1][k] * m->TransDetect*2 )  // is signal transient?
     876                if ( new_erg > old_erg [0][k] * TransDetect  ||
     877                                         new_erg > old_erg [1][k] * TransDetect*2 )  // is signal transient?
    878878                    transient [k] = 1;
    879879            }
Note: See TracChangeset for help on using the changeset viewer.