Mercurial > hg > CbC > CbC_gcc
view gcc/testsuite/gcc.dg/vect/pr33597.c @ 131:84e7813d76e9
gcc-8.2
author | mir3636 |
---|---|
date | Thu, 25 Oct 2018 07:37:49 +0900 |
parents | 04ced10e8804 |
children |
line wrap: on
line source
/* { dg-do compile } */ typedef unsigned char uint8_t; typedef unsigned short uint16_t; void rgb15to24_C (const uint8_t * src, uint8_t * dst, long src_size) { const uint16_t *end; const uint16_t *s = (uint16_t *)src; uint8_t *d = (uint8_t *)dst; end = s + src_size/2; while (s < end) { uint16_t bgr = *s++; *d++ = (bgr&0x1F)<<3; *d++ = (bgr&0x3E0)>>2; *d++ = (bgr&0x7C00)>>7; } }