Mercurial > hg > CbC > CbC_gcc
annotate gcc/testsuite/gcc.c-torture/compile/pr46883.c @ 131:84e7813d76e9
gcc-8.2
author | mir3636 |
---|---|
date | Thu, 25 Oct 2018 07:37:49 +0900 |
parents | 04ced10e8804 |
children |
rev | line source |
---|---|
111 | 1 void bar (unsigned char *q, unsigned short *data16s, int len) |
2 { | |
3 int i; | |
4 | |
5 for (i = 0; i < len; i++) | |
6 { | |
7 q[2 * i] = | |
8 (((data16s[i] & 0xFF) << 8) | ((data16s[i] >> 8) & 0xFF)) & 0xFF; | |
9 q[2 * i + 1] = | |
10 ((unsigned short) | |
11 (((data16s[i] & 0xFF) << 8) | ((data16s[i] >> 8) & 0xFF))) >> 8; | |
12 } | |
13 } |