gcc/testsuite/gcc.c-torture/compile/fq.c
raw| 1 | void |
| 2 | expand_to_ascii (int *i, int *o) |
| 3 | { |
| 4 | unsigned x, y, out; |
| 5 | unsigned x1; |
| 6 | |
| 7 | /* Big endian code. */ |
| 8 | |
| 9 | x = *i++; |
| 10 | |
| 11 | y = x >> (32 - 13); |
| 12 | out = (y / 91); |
| 13 | out = (out << 8) | (y % 91); |
| 14 | |
| 15 | x <<= 13; |
| 16 | y = x >> (32 - 13); |
| 17 | out = (out << 8) | (y / 91); |
| 18 | out = (out << 8) | (y % 91); |
| 19 | |
| 20 | *o++ = out + 0x20202020; |
| 21 | |
| 22 | /* 6 bits left in x. */ |
| 23 | |
| 24 | x1 = *i++; |
| 25 | x = (x << 26) | (x1 >> 6); |
| 26 | } |