more merging:

630. Fix incorrect datatype for the pixmap width in fbCompositeSrcAdd_8000x8000(), and add some small optimisations (#A.1423, Keith Packard).
This commit is contained in:
Jeff Muizelaar 2005-06-23 19:33:34 +00:00
parent 81ec183697
commit aa07c01cb5
2 changed files with 33 additions and 15 deletions

View file

@ -1,4 +1,14 @@
2005-06-23 Jeff Muizelaar <jrmuizel@infidigm.net>
2005-06-23 Jeff Muizelaar <jeff@infidigm.net>
* src/ic.c: (pixman_compositeSrcAdd_8000x8000),
(pixman_compositeSrcAdd_8888x8888):
more merging:
630. Fix incorrect datatype for the pixmap width in
fbCompositeSrcAdd_8000x8000(), and add some small optimisations
(#A.1423, Keith Packard).
2005-06-23 Jeff Muizelaar <jeff@infidigm.net>
* src/icint.h:
* src/icblt.c: (IcBlt):

View file

@ -681,13 +681,17 @@ pixman_compositeSrcAdd_8000x8000 (pixman_operator_t op,
while (w--)
{
s = *src++;
if (s != 0xff)
if (s)
{
d = *dst;
t = d + s;
s = t | (0 - (t >> 8));
if (s != 0xff)
{
d = *dst;
t = d + s;
s = t | (0 - (t >> 8));
}
*dst = s;
}
*dst++ = s;
dst++;
}
}
}
@ -728,19 +732,23 @@ pixman_compositeSrcAdd_8888x8888 (pixman_operator_t op,
while (w--)
{
s = *src++;
if (s != 0xffffffff)
if (s)
{
d = *dst;
if (d)
if (s != 0xffffffff)
{
m = IcAdd(s,d,0,t);
n = IcAdd(s,d,8,t);
o = IcAdd(s,d,16,t);
p = IcAdd(s,d,24,t);
s = m|n|o|p;
d = *dst;
if (d)
{
m = IcAdd(s,d,0,t);
n = IcAdd(s,d,8,t);
o = IcAdd(s,d,16,t);
p = IcAdd(s,d,24,t);
s = m|n|o|p;
}
}
*dst = s;
}
*dst++ = s;
dst++;
}
}
}