Changeset 34120f10 in mainline for common/include/mem.h


Ignore:
Timestamp:
2023-10-27T19:38:31Z (20 months ago)
Author:
Jiří Zárevúcky <zarevucky.jiri@…>
Branches:
master, topic/msim-upgrade, topic/simplify-dev-export
Children:
63ed840
Parents:
c89ae25 (diff), 694ca3d6 (diff)
Note: this is a merge changeset, the changes displayed below correspond to the merge itself.
Use the (diff) links above to see all the changes relative to each parent.
Message:

Merge code deduplication work

TL;DR: Added directory /common, which now contains the sole existing
copy of ADT, printf_core, and a few other pieces. Should make changes
to any of those less of a headache.

File:
1 moved

Legend:

Unmodified
Added
Removed
  • common/include/mem.h

    rc89ae25 r34120f10  
    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.