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

Subversion Repositories scarts

[/] [scarts/] [trunk/] [toolchain/] [scarts-gcc/] [gcc-4.1.1/] [gcc/] [testsuite/] [gcc.c-torture/] [unsorted/] [bx.c] - Blame information for rev 12

Details | Compare with Previous | View Log

Line No. Rev Author Line
1 12 jlechner
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.