mirror of
https://github.com/ultimatepp/ultimatepp.git
synced 2026-08-25 14:22:54 -06:00
.cosmetics
git-svn-id: svn://ultimatepp.org/upp/trunk@14630 f0d560ea-af0d-0410-9eb7-867de7ffcac7
This commit is contained in:
parent
dfafee9e31
commit
a47675b7bd
2 changed files with 2 additions and 2 deletions
|
|
@ -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;
|
||||
|
|
|
|||
|
|
@ -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);
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue