* @brief Applies a function to each element in an array. * * @param base Pointer to the start of the array. * @param num Number of elements in the array. * @param size Size of each element in bytes. * @param op Function to apply to each element. */
| 584 | } |
| 585 | ++f; |
| 586 | } |
| 587 | l = f; |
| 588 | } |
| 589 | } |
| 590 | size_t pos = f - 1; |
| 591 | if (pos) { |
| 592 | alg_swap_bytes(a, a + pos * sz, sz); |
| 593 | } |
| 594 | return pos; |
| 595 | } |
| 596 | |
| 597 | /* Swaps a[i] and a[j] when they differ (pattern breaking). */ |
| 598 | ALG_INLINE void pdq_swap_idx(char *a, size_t i, size_t j, size_t sz) { |
nothing calls this directly
no outgoing calls
no test coverage detected