.cosmetics

git-svn-id: svn://ultimatepp.org/upp/trunk@14630 f0d560ea-af0d-0410-9eb7-867de7ffcac7
This commit is contained in:
cxl 2020-06-24 13:01:35 +00:00
parent dfafee9e31
commit a47675b7bd
2 changed files with 2 additions and 2 deletions

View file

@ -15,7 +15,7 @@ Image Minify(const Image& img, int nx, int ny, bool co)
memset(b, 0, tsz.cx * sizeof(__m128));
memset(div, 0, tsz.cx * sizeof(__m128));
__m128 v1 = _mm_set1_ps(1);
__m128 vnx = _mm_set1_ps(nx);
__m128 vnx = _mm_set1_ps((float)nx);
int yy = ny * ty;
for(int yi = 0; yi < ny; yi++) {
int y = yy + yi;

View file

@ -102,7 +102,7 @@ Image RescaleFilter(const Image& img, Size sz, const Rect& sr,
const RGBA *l = img[*yd++];
for(int xx = 2 * ax; xx-- > 0;) {
__m128 s = LoadRGBAF(&l[*xd++]);
__m128 weight = _mm_set1_ps(ky * *xd++);
__m128 weight = _mm_set1_ps(float(ky * *xd++));
rgbaf = _mm_add_ps(rgbaf, _mm_mul_ps(weight, s));
w = _mm_add_ps(w, weight);
}