Debian Codegraph @

gcc/testsuite/gcc.dg/vect/pr119757.c

raw
1 /* { dg-do compile } */
2
3 void base64_encode(const char *table64,
4 const char *inputbuff, int insize,
5 char * __restrict output)
6 {
7 const unsigned char *in = (const unsigned char *)inputbuff;
8
9 while(insize >= 3) {
10 *output++ = table64[ in[0] >> 2 ];
11 *output++ = table64[ ((in[0] & 0x03) << 4) | (in[1] >> 4) ];
12 *output++ = table64[ ((in[1] & 0x0F) << 2) | ((in[2] & 0xC0) >> 6) ];
13 *output++ = table64[ in[2] & 0x3F ];
14 insize -= 3;
15 in += 3;
16 }
17 }