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

Subversion Repositories openrisc

[/] [openrisc/] [trunk/] [gnu-dev/] [or1k-gcc/] [gcc/] [testsuite/] [gcc.c-torture/] [unsorted/] [fq.c] - Blame information for rev 688

Details | Compare with Previous | View Log

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

powered by: WebSVN 2.1.0

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