TODO: Look at performance benefits of comparing words.
| 18 | |
| 19 | // TODO: Look at performance benefits of comparing words. |
| 20 | LLVM_LIBC_FUNCTION(void *, memchr, (const void *src, int c, size_t n)) { |
| 21 | if (n) |
| 22 | LIBC_CRASH_ON_NULLPTR(src); |
| 23 | return internal::find_first_character( |
| 24 | reinterpret_cast<const unsigned char *>(src), |
| 25 | static_cast<unsigned char>(c), n); |
| 26 | } |
| 27 | |
| 28 | } // namespace LIBC_NAMESPACE_DECL |
nothing calls this directly
no test coverage detected