Commit bc142912 authored by Debarshi Ray's avatar Debarshi Ray Committed by Øyvind "pippin" Kolås

operations/common/grey: Use memcpy instead of a loop

https://bugzilla.gnome.org/show_bug.cgi?id=743962
parent 17bb4e64
......@@ -30,6 +30,7 @@
#define GEGL_OP_C_SOURCE grey.c
#include "gegl-op.h"
#include <string.h>
static void prepare (GeglOperation *operation)
{
......@@ -49,14 +50,7 @@ process (GeglOperation *op,
const GeglRectangle *roi,
gint level)
{
float *in = in_buf;
float *out = out_buf;
while (samples--)
{
*out++ = *in++;
*out++ = *in++;
}
memcpy (out_buf, in_buf, sizeof (gfloat) * 2 * samples);
return TRUE;
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment