Changeset 1d99262 in rtems-libbsd


Ignore:
Timestamp:
Aug 9, 2018, 5:20:08 AM (2 years ago)
Author:
Sebastian Huber <sebastian.huber@…>
Branches:
b96abfd647154f10ea8f7fac68e25676636eded5, 9dd0bc27e3338bad08eaaf52d03265d2e7b9b4f7, 7027254d293cf3a8c888bd9f25052e96f458bc67, d164b840c3973e0793da1b3e4142b1711514b9ba
Children:
8e35aaa
Parents:
9bc7b96
git-author:
Sebastian Huber <sebastian.huber@…> (08/09/18 05:20:08)
git-committer:
Sebastian Huber <sebastian.huber@…> (08/09/18 05:59:38)
Message:

libkern.h: Avoid call overhead for bcmp()

File:
1 edited

Legend:

Unmodified
Added
Removed
  • freebsd/sys/sys/libkern.h

    r9bc7b96 r1d99262  
    137137}
    138138#endif /* __rtems__ */
     139#ifndef __rtems__
    139140int      bcmp(const void *, const void *, size_t);
     141#else /* __rtems__ */
     142#define bcmp(m1, m2, n) memcmp(m1, m2, n)
     143#endif /* __rtems__ */
    140144int      timingsafe_bcmp(const void *, const void *, size_t);
    141145void    *bsearch(const void *, const void *, size_t,
Note: See TracChangeset for help on using the changeset viewer.