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/] [d.c] - Blame information for rev 12

Details | Compare with Previous | View Log

Line No. Rev Author Line
1 12 jlechner
long long unsigned
2
str2llu (str)
3
     char *str;
4
{
5
  long long unsigned acc;
6
  long long b = 10;
7
  char d;
8
  acc =  *str++ - '0';
9
  for (;;)
10
    {
11
      d = *str++;
12
      if (d == '\0')
13
        break;
14
      d -= '0';
15
      acc = acc * 10 + d;
16
    }
17
 
18
  return acc;
19
}

powered by: WebSVN 2.1.0

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