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

Subversion Repositories or1k

[/] [or1k/] [trunk/] [gdb-5.0/] [libiberty/] [bzero.c] - Diff between revs 107 and 1765

Only display areas with differences | Details | Blame | View Log

Rev 107 Rev 1765
/* Portable version of bzero for systems without it.
/* Portable version of bzero for systems without it.
   This function is in the public domain.  */
   This function is in the public domain.  */
 
 
/*
/*
NAME
NAME
        bzero -- zero the contents of a specified memory region
        bzero -- zero the contents of a specified memory region
 
 
SYNOPSIS
SYNOPSIS
        void bzero (char *to, int count)
        void bzero (char *to, int count)
 
 
DESCRIPTION
DESCRIPTION
        Zero COUNT bytes of memory pointed to by TO.
        Zero COUNT bytes of memory pointed to by TO.
 
 
BUGS
BUGS
        Significant speed enhancements may be made in some environments
        Significant speed enhancements may be made in some environments
        by zeroing more than a single byte at a time, or by unrolling the
        by zeroing more than a single byte at a time, or by unrolling the
        loop.
        loop.
 
 
*/
*/
 
 
 
 
void
void
bzero (to, count)
bzero (to, count)
  char *to;
  char *to;
  int count;
  int count;
{
{
  while (count-- > 0)
  while (count-- > 0)
    {
    {
      *to++ = 0;
      *to++ = 0;
    }
    }
}
}
 
 

powered by: WebSVN 2.1.0

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