pike.git/src/modules/Image/layer_oper.h:1:
/*
|| This file is part of Pike. For copyright information see COPYRIGHT.
|| Pike is distributed under GPL, LGPL and MPL. See the file COPYING
|| for more information.
- || $Id$
+
*/
/* template for operator layer row function */
static void LM_FUNC(rgb_group *s,rgb_group *l,rgb_group *d,
rgb_group *sa,rgb_group *la,rgb_group *da,
int len,double alpha)
{
union { COLORTYPE r,g,b; } tz,*t=&tz;
#ifndef L_LOGIC
if (alpha==0.0)
{
#ifdef LAYER_DUAL
- MEMCPY(d,s,sizeof(rgb_group)*len);
- MEMCPY(da,sa,sizeof(rgb_group)*len);
+ memcpy(d,s,sizeof(rgb_group)*len);
+ memcpy(da,sa,sizeof(rgb_group)*len);
#endif
return;
}
else if (alpha==1.0)
{
#ifdef L_COPY_ALPHA
- MEMCPY(da,sa,sizeof(rgb_group)*len);
+ memcpy(da,sa,sizeof(rgb_group)*len);
#define da da da da /* error */
#endif
if (!la) /* no layer alpha => full opaque */
{
#ifdef L_MMX_OPER
#ifdef TRY_USE_MMX
-
+ /* Intentionally left here.
+
+ FIXME: Switch to intrinsics
+ */
extern int try_use_mmx;
if(try_use_mmx)
{
int num=sizeof(rgb_group) * len;
unsigned char *source=(unsigned char *)s;
unsigned char *dest=(unsigned char *)d;
unsigned char *sourcel=(unsigned char *)l;
while (num-->0 && (7&(int)dest))
{
pike.git/src/modules/Image/layer_oper.h:147: Inside #if undefined(L_COPY_ALPHA)
l++; s++; la++; sa++; d++;
#ifndef L_COPY_ALPHA
da++;
#endif
}
}
else
{
#ifdef L_COPY_ALPHA
#undef da
- MEMCPY(da,sa,sizeof(rgb_group)*len);
+ memcpy(da,sa,sizeof(rgb_group)*len);
#define da da da
#endif
if (!la) /* no layer alpha => full opaque */
while (len--)
{
#ifndef L_COPY_ALPHA
t->r=L_TRUNC(L_OPER(s->r,l->r));
ALPHA_ADD_V_NOLA(s,t,d,sa,da,alpha,r);
t->g=L_TRUNC(L_OPER(s->g,l->g));
ALPHA_ADD_V_NOLA(s,t,d,sa,da,alpha,g);