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

Subversion Repositories openrisc

[/] [openrisc/] [trunk/] [gnu-dev/] [or1k-gcc/] [gcc/] [testsuite/] [gcc.c-torture/] [compile/] [930510-1.c] - Blame information for rev 774

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

Line No. Rev Author Line
1 688 jeremybenn
typedef long time_t;
2
static __const int mon_lengths[2][12] = {
3
  31, 28, 31, 30, 31, 30, 31, 31, 30, 31, 30, 31,
4
  31, 29, 31, 30, 31, 30, 31, 31, 30, 31, 30, 31
5
};
6
static time_t
7
f (janfirst, year, rulep, offset)
8
     __const time_t janfirst;
9
     __const int year;
10
     register __const struct rule * __const rulep;
11
     __const long offset;
12
{
13
  register int leapyear;
14
  register time_t value;
15
  register int i;
16
 
17
  value += mon_lengths[leapyear][i] * ((long) (60 * 60) * 24);
18
}

powered by: WebSVN 2.1.0

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