| 415 | /* Like memcpy, but avoid a function call for smaller amounts. */ |
| 416 | |
| 417 | static inline void |
| 418 | copy_bytes (char *dst, char const *src, size_t n_bytes) |
| 419 | { |
| 420 | if (n_bytes <= SMALL_BYTE_THRESHOLD) |
| 421 | { |
| 422 | for (size_t i = 0; i < n_bytes; i++) |
| 423 | dst[i] = src[i]; |
| 424 | return; |
| 425 | } |
| 426 | |
| 427 | memcpy (dst, src, n_bytes); |
| 428 | } |
| 429 | |
| 430 | /* Like memchr, but avoid a function call for smaller amounts. */ |
| 431 |
no outgoing calls
no test coverage detected