Ignore:
Timestamp:
Apr 18, 2009 2:29:28 PM (10 years ago)
Author:
bennylp
Message:

More ticket #774: optimization for siren7/siren14 codecs

File:
1 edited

Legend:

Unmodified
Added
Removed
  • pjproject/trunk/third_party/g7221/common/common.c

    r2563 r2616  
    9595        number_of_available_bits = sub(number_of_available_bits,frame_size); 
    9696        number_of_available_bits = extract_l(L_mult0(number_of_available_bits,5)); 
    97         number_of_available_bits = shr(number_of_available_bits,3); 
     97        number_of_available_bits = shr_nocheck(number_of_available_bits,3); 
    9898        number_of_available_bits = add(number_of_available_bits,frame_size); 
    9999    } 
     
    208208    { 
    209209        min_plus_max = add(max,min); 
    210         two_x_number_of_available_bits = shl(number_of_available_bits,1); 
     210        two_x_number_of_available_bits = shl_nocheck(number_of_available_bits,1); 
    211211         
    212212        temp = sub(min_plus_max,two_x_number_of_available_bits); 
     
    223223                if (max_rate_categories[region] > 0)  
    224224                { 
    225                     itemp0 = shl(max_rate_categories[region],1); 
     225                    itemp0 = shl_nocheck(max_rate_categories[region],1); 
    226226                    itemp1 = sub(offset,rms_index[region]); 
    227227                    itemp0 = sub(itemp1,itemp0); 
     
    259259                if (temp < 0) 
    260260                { 
    261                     itemp0 = shl(min_rate_categories[region],1); 
     261                    itemp0 = shl_nocheck(min_rate_categories[region],1); 
    262262                    itemp1 = sub(offset,rms_index[region]); 
    263263                    itemp0 = sub(itemp1,itemp0); 
     
    357357        { 
    358358            j = sub(test_offset,rms_index[region]); 
    359             j = shr(j,1); 
     359            j = shr_nocheck(j,1); 
    360360             
    361361            /* Ensure j is between 0 and NUM_CAT-1 */ 
     
    392392            move16(); 
    393393        } 
    394         delta = shr(delta,1); 
     394        delta = shr_nocheck(delta,1); 
    395395        test(); /* for the while loop */ 
    396396    } while (delta > 0); 
     
    441441    { 
    442442        j = sub(offset,rms_index[region]); 
    443         j = shr(j,1); 
     443        j = shr_nocheck(j,1); 
    444444         
    445445        /* make sure j is between 0 and NUM_CAT-1 */ 
Note: See TracChangeset for help on using the changeset viewer.