Ignore:
Timestamp:
Jun 29, 2014, 1:16:24 PM (10 years ago)
Author:
alain
Message:

Avoid GCC warnings for some missing initialisations.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • soft/giet_vm/giet_libs/stdlib.c

    r271 r352  
    3737// GCC requires this function. Taken from MutekH.
    3838////////////////////////////////////////////////////////////////////////////////////////
    39 void * memcpy(void *_dst, const void * _src, unsigned int size) {
     39void * memcpy(void *_dst, const void * _src, unsigned int size)
     40{
    4041    unsigned int * dst = _dst;
    4142    const unsigned int * src = _src;
    4243    if (!((unsigned int) dst & 3) && !((unsigned int) src & 3) )
    43         while (size > 3) {
     44    {
     45        while (size > 3)
     46        {
    4447            *dst++ = *src++;
    4548            size -= 4;
    4649        }
     50    }
    4751
    4852    unsigned char *cdst = (unsigned char*)dst;
    4953    unsigned char *csrc = (unsigned char*)src;
    5054
    51     while (size--) {
     55    while (size--)
     56    {
    5257        *cdst++ = *csrc++;
    5358    }
     
    5762
    5863////////////////////////////////////////////////////////////////////////////////////////
    59 //  mempcy()
     64//  memset()
    6065// GCC requires this function. Taken from MutekH.
    6166////////////////////////////////////////////////////////////////////////////////////////
    62 inline void * memset(void * dst, int s, unsigned int count) {
     67inline void * memset(void * dst, int s, unsigned int count)
     68{
    6369    char * a = (char *) dst;
    64     while (count--){
     70    while (count--)
     71    {
    6572        *a++ = (char)s;
    6673    }
Note: See TracChangeset for help on using the changeset viewer.