Changeset 2881


Ignore:
Timestamp:
Nov 13, 2006, 9:37:23 PM (19 years ago)
Author:
bird
Message:

kLdrHlpMemMove (not optimial).

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/kLdr/kLdrHlp.c

    r2869 r2881  
    784784
    785785
    786 #ifdef kLdrHlpStrChr_needed
     786#ifdef kLdrHlpMemChr_needed
    787787void   *kLdrHlpMemChr(const void *pv, int ch, size_t cb)
    788788{
     
    796796    }
    797797    return NULL;
     798}
     799#endif
     800
     801
     802#ifdef kLdrHlpMemMove_needed
     803void   *kLdrHlpMemMove(void *pv1, const void *pv2, size_t cb)
     804{
     805    uint8_t        *pbDst = (uint8_t *)pv1;
     806    const uint8_t  *pbSrc = (const uint8_t *)pv2;
     807    while (cb-- > 0)
     808    {
     809        const uint8_t b = *pbSrc++;
     810        *pbDst++ = b;
     811    }
     812    return pv1;
    798813}
    799814#endif
Note: See TracChangeset for help on using the changeset viewer.