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

Subversion Repositories openrisc_me

[/] [openrisc/] [trunk/] [gnu-src/] [gcc-4.5.1/] [gcc/] [testsuite/] [gcc.c-torture/] [unsorted/] [signext.c] - Blame information for rev 297

Details | Compare with Previous | View Log

Line No. Rev Author Line
1 297 jeremybenn
void longprint (x)
2
     long long x;
3
{
4
  printf (" %d, %d\n", (unsigned) ((unsigned long long) x >> 32),
5
          (unsigned) x);
6
}
7
 
8
void
9
k_min (p, qa, d)
10
     int d;
11
{
12
  int s = 1;
13
  long long x;
14
 
15
  if (s >= d)
16
    s -= d;
17
 
18
  x = ((long long)((8 * s) % 3) + qa) % d;
19
  longprint (x);
20
}
21
 
22
int
23
main ()
24
{
25
  k_min (100003, -600017, 3);
26
  return 0;
27
}

powered by: WebSVN 2.1.0

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