| 1553 | |
| 1554 | |
| 1555 | inline static void ggml_vec_max_f32(const int n, float * s, const float * x) { |
| 1556 | #ifndef GGML_USE_ACCELERATE |
| 1557 | float max = -INFINITY; |
| 1558 | for (int i = 0; i < n; ++i) { |
| 1559 | max = MAX(max, x[i]); |
| 1560 | } |
| 1561 | *s = max; |
| 1562 | #else |
| 1563 | vDSP_maxv(x, 1, s, n); |
| 1564 | #endif |
| 1565 | } |
| 1566 | |
| 1567 | inline static void ggml_vec_norm_inv_f32(const int n, float * s, const float * x) { |
| 1568 | ggml_vec_norm_f32(n, s, x); |
no outgoing calls
no test coverage detected