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

Subversion Repositories openrisc

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

Details | Compare with Previous | View Log

Line No. Rev Author Line
1 688 jeremybenn
struct dm
2
{
3
  unsigned q;
4
  unsigned r;
5
};
6
 
7
struct dm
8
dm (a, b)
9
     unsigned a, b;
10
{
11
  struct dm qr;
12
 
13
  qr.q = a / b;
14
  qr.r = a % b;
15
  return qr;
16
}
17
 
18
main ()
19
{
20
  struct dm qr;
21
 
22
  qr = dm (100, 30);
23
  printf ("%u, %u\n", qr.q, qr.r);
24
}

powered by: WebSVN 2.1.0

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