view gcc/testsuite/gcc.dg/graphite/pr39335.c @ 158:494b0b89df80 default tip

...
author Shinji KONO <kono@ie.u-ryukyu.ac.jp>
date Mon, 25 May 2020 18:13:55 +0900
parents 04ced10e8804
children
line wrap: on
line source

/* { dg-options "-O2" } */

typedef unsigned char byte;
typedef struct gx_device_s gx_device;
typedef struct gs_devn_params_s gs_devn_params;
typedef struct gs_devn_params_s {
   struct compressed_color_list_s * compressed_color_list;
} gs_devn_params_t;
int devn_unpack_row(gx_device * dev, int num_comp,
                   gs_devn_params * pdevn_params, int width, byte * in,
                   byte * out)
{
 int i, comp_num, pixel_num;
 if (pdevn_params->compressed_color_list == ((void *)0))
   {
     for (pixel_num = 0; pixel_num < width; pixel_num++)
       for (i = 0; i < num_comp; i++)
         *out++ = *in++;
   }
}