Skip to content

Commit 563aca0

Browse files
committed
vDSP_vsmsa
1 parent 265cb43 commit 563aca0

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

ggml/src/ggml-cpu/vec.h

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -353,8 +353,7 @@ inline static void ggml_vec_mad_f32_unroll(const int n, const int xs, const int
353353

354354
inline static void ggml_vec_mad1_f32(const int n, float * y, const float s, const float b) {
355355
#if defined(GGML_USE_ACCELERATE)
356-
vDSP_vsmul(y, 1, &s, y, 1, n);
357-
vDSP_vsadd(y, 1, &b, y, 1, n);
356+
vDSP_vsmsa(y, 1, &s, &b, y, 1, n);
358357
#elif defined(GGML_SIMD)
359358
#if defined(__ARM_FEATURE_SVE)
360359
const int sve_register_length = ggml_cpu_get_sve_cnt() * 8;

0 commit comments

Comments
 (0)