Changeset 2795:5230f2b20ac0 in roaraudio


Ignore:
Timestamp:
09/26/09 13:25:34 (15 years ago)
Author:
phi
Branch:
default
Phase:
public
Message:

more clear code

File:
1 edited

Legend:

Unmodified
Added
Removed
  • libroardsp/convert.c

    r2750 r2795  
    689689 int16_t  * ip = in; 
    690690 uint16_t * op = out; 
    691  int i; 
    692  
    693  for(i = 0; i < samples; i++) 
    694   op[i] = ip[i] + 32768; 
     691 register int_least32_t s; 
     692 int i; 
     693 
     694 for(i = 0; i < samples; i++) { 
     695  s     = ip[i]; 
     696  s    += 32768; 
     697  op[i] = s; 
     698 } 
    695699 
    696700 return 0; 
Note: See TracChangeset for help on using the changeset viewer.