Hardcode buffer step.

It will free one register.
master
Fabien Freling 2014-08-05 08:48:52 +02:00
parent 784fc07a15
commit 4cec5287d7
1 changed files with 1 additions and 2 deletions

View File

@ -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
}
}