int x;
unsigned int x;
PutImagePixels32(image, width, height, pixelindex, pixels)    XImage *image;    unsigned int width;    unsigned int height;    unsigned int *pixelindex;    Pixel *pixels;{    unsigned char *data;    unsigned int *iptr;    int y;    Pixel pixel;#ifdef WITHOUT_SPEEDUPS    int x;    unsigned char *addr;    data = (unsigned char *) image->data;    iptr = pixelindex;#if !defined(WORD64) && !defined(LONG64)    if (*((char *) &byteorderpixel) == image->byte_order) {	for (y = 0; y < height; y++)	    for (x = 0; x < width; x++, iptr++) {		addr = &data[ZINDEX32(x, y, image)];		*((unsigned long *) addr) = pixels[*iptr];	    }    } else#endif    if (image->byte_order == MSBFirst)	for (y = 0; y < height; y++)	    for (x = 0; x < width; x++, iptr++) {		addr = &data[ZINDEX32(x, y, image)];		pixel = pixels[*iptr];		addr[0] = pixel >> 24;		addr[1] = pixel >> 16;		addr[2] = pixel >> 8;		addr[3] = pixel;	    }    else	for (y = 0; y < height; y++)	    for (x = 0; x < width; x++, iptr++) {		addr = &data[ZINDEX32(x, y, image)];		pixel = pixels[*iptr];		addr[0] = pixel;		addr[1] = pixel >> 8;		addr[2] = pixel >> 16;		addr[3] = pixel >> 24;	    }#else  /* WITHOUT_SPEEDUPS */    int bpl = image->bytes_per_line;    unsigned char *data_ptr, *max_data;    data = (unsigned char *) image->data;    iptr = pixelindex;#if !defined(WORD64) && !defined(LONG64)    if (*((char *) &byteorderpixel) == image->byte_order) {	for (y = 0; y < height; y++) {	    data_ptr = data;	    max_data = data_ptr + (width << 2);	    while (data_ptr < max_data) {		*((unsigned long *) data_ptr) = pixels[*(iptr++)];		data_ptr += (1 << 2);	    }	    data += bpl;	}    } else#endif    if (image->byte_order == MSBFirst)	for (y = 0; y < height; y++) {	    data_ptr = data;	    max_data = data_ptr + (width << 2);	    while (data_ptr < max_data) {		pixel = pixels[*(iptr++)];		*data_ptr++ = pixel >> 24;		*data_ptr++ = pixel >> 16;		*data_ptr++ = pixel >> 8;		*data_ptr++ = pixel;	    }	    data += bpl;	}    else	for (y = 0; y < height; y++) {	    data_ptr = data;	    max_data = data_ptr + (width << 2);	    while (data_ptr < max_data) {		pixel = pixels[*(iptr++)];		*data_ptr++ = pixel;		*data_ptr++ = pixel >> 8;		*data_ptr++ = pixel >> 16;		*data_ptr++ = pixel >> 24;	    }	    data += bpl;	}#endif /* WITHOUT_SPEEDUPS */}