MCPcopy Create free account
hub / github.com/Tiiny-AI/PowerInfer / ggml_vec_max_f32

Function ggml_vec_max_f32

ggml.c:1555–1565  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1553
1554
1555inline 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
1567inline static void ggml_vec_norm_inv_f32(const int n, float * s, const float * x) {
1568 ggml_vec_norm_f32(n, s, x);

Calls

no outgoing calls

Tested by

no test coverage detected