Hardcode buffer step.
It will free one register.
This commit is contained in:
		
							parent
							
								
									784fc07a15
								
							
						
					
					
						commit
						4cec5287d7
					
				
					 1 changed files with 1 additions and 2 deletions
				
			
		| 
						 | 
				
			
			@ -266,7 +266,6 @@ Image* rotate(Image const& src, double angle)
 | 
			
		|||
  int64_t const src_qheight = (int64_t) src.height * q_pos;
 | 
			
		||||
 | 
			
		||||
  unsigned int const src_limit = src.width * src.height * src.pixel_size;
 | 
			
		||||
  size_t const buffer_step = rotated->pixel_size;
 | 
			
		||||
  int const width = rotated->width;
 | 
			
		||||
  int const height = rotated->height;
 | 
			
		||||
 | 
			
		||||
| 
						 | 
				
			
			@ -287,7 +286,7 @@ Image* rotate(Image const& src, double angle)
 | 
			
		|||
      }
 | 
			
		||||
 | 
			
		||||
      src_rotated_point += qdx;
 | 
			
		||||
      buffer_index += buffer_step;
 | 
			
		||||
      buffer_index += 1; // pixel_size
 | 
			
		||||
    }
 | 
			
		||||
  }
 | 
			
		||||
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue