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

Subversion Repositories openrisc_me

[/] [openrisc/] [trunk/] [gnu-src/] [gcc-4.2.2/] [gcc/] [testsuite/] [gcc.c-torture/] [unsorted/] [xopt.c] - Blame information for rev 247

Go to most recent revision | Details | Compare with Previous | View Log

Line No. Rev Author Line
1 149 jeremybenn
proc1 (a)
2
     unsigned a;
3
{
4
  return (a >> 20) & 0x010fffff;
5
}
6
 
7
proc2 (a)
8
     unsigned a;
9
{
10
  return (a << 17) & 0xfffff001;
11
}
12
 
13
proc3 (a)
14
     unsigned a;
15
{
16
  return (a & 0xff00000a) >> 25;
17
}
18
 
19
proc4 (a)
20
     unsigned a;
21
{
22
  return (a & 0x100000ff) << 25;
23
}
24
 
25
proc5 (a)
26
     unsigned a;
27
{
28
  return (unsigned char) (a >> 24);
29
}
30
 
31
proc6 (a)
32
     unsigned a;
33
{
34
  return ((unsigned char) a) << 30;
35
}

powered by: WebSVN 2.1.0

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