Changeset 2616 for pjproject/trunk/third_party/g7221/decode/decoder.c
- Timestamp:
- Apr 18, 2009 2:29:28 PM (15 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
pjproject/trunk/third_party/g7221/decode/decoder.c
r2563 r2616 137 137 { 138 138 get_next_bit(bitobj); 139 categorization_control = shl (categorization_control,1);139 categorization_control = shl_nocheck(categorization_control,1); 140 140 categorization_control = add(categorization_control,bitobj->next_bit); 141 141 } … … 247 247 { 248 248 get_next_bit(bitobj); 249 index = shl (index,1);249 index = shl_nocheck(index,1); 250 250 index = add(index,bitobj->next_bit); 251 251 } … … 333 333 { 334 334 i = sub(i,1); 335 temp = shr (temp,1);335 temp = shr_nocheck(temp,1); 336 336 max_index = sub(max_index,2); 337 337 temp1 = sub(temp,8); … … 531 531 if (bitobj->next_bit == 0) 532 532 { 533 temp = shl (index,1);533 temp = shl_nocheck(index,1); 534 534 index = (Word16)*(decoder_table_ptr + temp); 535 535 move16(); … … 537 537 else 538 538 { 539 temp = shl (index,1);539 temp = shl_nocheck(index,1); 540 540 index = (Word16)*(decoder_table_ptr + temp + 1); 541 541 move16(); … … 568 568 { 569 569 get_next_bit(bitobj); 570 signs_index = shl (signs_index,1);570 signs_index = shl_nocheck(signs_index,1); 571 571 signs_index = add(signs_index,bitobj->next_bit); 572 572 bitobj->number_of_bits_left = sub(bitobj->number_of_bits_left,1); 573 573 } 574 574 temp = sub(num_sign_bits,1); 575 bit = shl (1,(temp));575 bit = shl_nocheck(1,(temp)); 576 576 } 577 577 … … 579 579 { 580 580 acca = L_mult0(standard_deviation,mlt_quant_centroid[category][k[j]]); 581 acca = L_shr (acca,12);581 acca = L_shr_nocheck(acca,12); 582 582 decoder_mlt_value = extract_l(acca); 583 583 … … 588 588 if ((signs_index & bit) == 0) 589 589 decoder_mlt_value = negate(decoder_mlt_value); 590 bit = shr (bit,1);590 bit = shr_nocheck(bit,1); 591 591 } 592 592 *decoder_mlt_ptr++ = decoder_mlt_value; … … 653 653 *decoder_mlt_ptr = temp1; 654 654 move16(); 655 random_word = shr (random_word,1);655 random_word = shr_nocheck(random_word,1); 656 656 } 657 657 /* pointer arithmetic */ … … 678 678 *decoder_mlt_ptr = temp1; 679 679 move16(); 680 random_word = shr (random_word,1);680 random_word = shr_nocheck(random_word,1); 681 681 } 682 682 /* pointer arithmetic */ … … 711 711 *decoder_mlt_ptr++ = temp1; 712 712 move16(); 713 random_word = shr (random_word,1);713 random_word = shr_nocheck(random_word,1); 714 714 } 715 715 random_word = get_rand(randobj); … … 731 731 *decoder_mlt_ptr++ = temp1; 732 732 move16(); 733 random_word = shr (random_word,1);733 random_word = shr_nocheck(random_word,1); 734 734 } 735 735 } … … 1060 1060 } 1061 1061 bitobj->code_bit_count = sub(bitobj->code_bit_count,1); 1062 temp = shr (bitobj->current_word,bitobj->code_bit_count);1062 temp = shr_nocheck(bitobj->current_word,bitobj->code_bit_count); 1063 1063 logic16(); 1064 1064 bitobj->next_bit = (Word16 )(temp & 1);
Note: See TracChangeset
for help on using the changeset viewer.