Changeset b169619 in mainline for common/include/mem.h


Ignore:
Timestamp:
2023-10-27T17:38:32Z (15 months ago)
Author:
Jiří Zárevúcky <zarevucky.jiri@…>
Branches:
master, topic/msim-upgrade, topic/simplify-dev-export
Children:
44e8541
Parents:
c89ae25
git-author:
Jiří Zárevúcky <zarevucky.jiri@…> (2023-10-27 13:19:20)
git-committer:
Jiří Zárevúcky <zarevucky.jiri@…> (2023-10-27 17:38:32)
Message:

Deduplicate mem functions

There are a number of functions which are copied between
kernel, libc, and potentially boot too. mem*() functions
are first such offenders. All this duplicate code will
be moved to directory 'common'.

File:
1 moved

Legend:

Unmodified
Added
Removed
  • common/include/mem.h

    rc89ae25 rb169619  
    5555__C_DECLS_END;
    5656
     57#if !__STDC_HOSTED__
     58#define memset(dst, val, cnt)  __builtin_memset((dst), (val), (cnt))
     59#define memcpy(dst, src, cnt)  __builtin_memcpy((dst), (src), (cnt))
     60#define memcmp(s1, s2, cnt)    __builtin_memcmp((s1), (s2), (cnt))
     61#define memmove(dst, src, cnt)  __builtin_memmove((dst), (src), (cnt))
     62#define memchr(s, c, cnt)  __builtin_memchr((s), (c), (cnt))
     63#endif
     64
    5765#endif
    5866
Note: See TracChangeset for help on using the changeset viewer.