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

Subversion Repositories plasma

[/] [plasma/] [trunk/] [kernel/] [libc.c] - Diff between revs 425 and 432

Go to most recent revision | Show entire file | Details | Blame | View Log

Rev 425 Rev 432
Line 214... Line 214...
   for(i = 0; i <= 8; ++i)
   for(i = 0; i <= 8; ++i)
   {
   {
      ch = *s++;
      ch = *s++;
      if('0' <= ch && ch <= '9')
      if('0' <= ch && ch <= '9')
         ch -= '0';
         ch -= '0';
      else if('A' <= ch && ch <= 'Z')
      else if('A' <= ch && ch < base - 10 + 'A')
         ch = ch - 'A' + 10;
         ch = ch - 'A' + 10;
      else if('a' <= ch && ch <= 'z')
      else if('a' <= ch && ch < base - 10 + 'a')
         ch = ch - 'a' + 10;
         ch = ch - 'a' + 10;
      else
      else
         break;
         break;
      value = value * base + ch;
      value = value * base + ch;
   }
   }

powered by: WebSVN 2.1.0

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