Fork us on GitHub Follow us on Facebook Follow us on Twitter

Changeset 2f7d77c in mainline for kernel/generic/include/mem.h


Ignore:
Timestamp:
2018-06-14T19:02:26Z (3 years ago)
Author:
Jiří Zárevúcky <jiri.zarevucky@…>
Branches:
master
Children:
587478b
Parents:
abf8bd8
git-author:
Jiří Zárevúcky <jiri.zarevucky@…> (2018-06-14 17:48:39)
git-committer:
Jiří Zárevúcky <jiri.zarevucky@…> (2018-06-14 19:02:26)
Message:

Add rudimentary support for undefined behavior sanitizer.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • kernel/generic/include/mem.h

    rabf8bd8 r2f7d77c  
    4848#define memset(dst, val, cnt)  __builtin_memset((dst), (val), (cnt))
    4949#define memcpy(dst, src, cnt)  __builtin_memcpy((dst), (src), (cnt))
     50#define memcmp(s1, s2, cnt)    __builtin_memcmp((s1), (s2), (cnt))
    5051
    5152extern void memsetb(void *, size_t, uint8_t)
Note: See TracChangeset for help on using the changeset viewer.