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

Subversion Repositories openrisc

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

Details | Compare with Previous | View Log

Line No. Rev Author Line
1 688 jeremybenn
unsigned
2
good (unsigned src, unsigned o5, unsigned w5)
3
{
4
  return src & ~((w5 == 0) ? (~0 << o5) : (1 << o5));
5
}
6
 
7
unsigned
8
bad (unsigned src, unsigned o5, unsigned w5)
9
{
10
  return src & ((w5 == 0) ? ~(~0 << o5) : ~(1 << o5));
11
}
12
 

powered by: WebSVN 2.1.0

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