Subversion Repositories freemyipod

Rev

Rev 113 | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 113 Rev 248
Line 62... Line 62...
62
_DEFUN (memchr, (s1, i, n),
62
_DEFUN (memchr, (s1, i, n),
63
        _CONST void *s1 _AND
63
        _CONST void *s1 _AND
64
        int i _AND size_t n)
64
        int i _AND size_t n)
65
{
65
{
66
  _CONST unsigned char *s = (_CONST unsigned char *)s1;
66
  _CONST unsigned char *s = (_CONST unsigned char *)s1;
67
#if defined(PREFER_SIZE_OVER_SPEED) || defined(__OPTIMIZE_SIZE__)
67
#if defined(PREFER_SIZE_OVER_SPEED)
68
  unsigned char c = (unsigned char)i;
68
  unsigned char c = (unsigned char)i;
69
 
69
 
70
  while (n-- > 0)
70
  while (n-- > 0)
71
    {
71
    {
72
      if (*s == c)
72
      if (*s == c)