OpenCores
URL https://opencores.org/ocsvn/openrisc/openrisc/trunk

Subversion Repositories openrisc

[/] [openrisc/] [trunk/] [gnu-stable/] [gcc-4.5.1/] [gcc/] [testsuite/] [gcc.dg/] [debug/] [pr29558.c] - Blame information for rev 826

Details | Compare with Previous | View Log

Line No. Rev Author Line
1 298 jeremybenn
/* { dg-do compile } */
2
 
3
void stpi_unpack_16_1(int length, unsigned char *out, unsigned char bit)
4
{
5
  unsigned char tempin;
6
  unsigned char temp[16];
7
  for (bit = 128; length > 0; length--) {
8
    if (tempin & 128)
9
      temp[0] |= bit;
10
    else
11
      {
12
        *out++ = temp[1];
13
        *out++ = temp[2];
14
        *out++ = temp[3];
15
        *out++ = temp[4];
16
        *out++ = temp[5];
17
        *out++ = temp[6];
18
        *out++ = temp[7];
19
        *out++ = temp[9];
20
        *out++ = temp[10];
21
        *out++ = temp[11];
22
        *out++ = temp[12];
23
        *out++ = temp[13];
24
        *out++ = temp[14];
25
        *out++ = temp[15];
26
        __builtin_memset (temp, 0, 16);
27
     }
28
  }
29
}
30
 

powered by: WebSVN 2.1.0

© copyright 1999-2024 OpenCores.org, equivalent to Oliscience, all rights reserved. OpenCores®, registered trademark.