Skip to content

Commit a1c07ea

Browse files
author
zhouwg
committed
ggml-hexagon: sync with upstream
1 parent 014fb57 commit a1c07ea

File tree

1 file changed

+1
-4
lines changed
  • ggml/src/ggml-hexagon/kernels

1 file changed

+1
-4
lines changed

ggml/src/ggml-hexagon/kernels/add.c

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,6 @@ inline static void ggmlhexagon_dsp_add_f32 (const int n, float * z, const float
44
HVX_Vector * va;
55
HVX_Vector * vb;
66
HVX_Vector * vc;
7-
HVX_Vector qf32;
87
const int FLOATS_PER_VECTOR = 128 / sizeof(float);
98
const int block = n / FLOATS_PER_VECTOR;
109
const int left = n % FLOATS_PER_VECTOR;
@@ -29,9 +28,7 @@ inline static void ggmlhexagon_dsp_add_f32 (const int n, float * z, const float
2928
vb = (HVX_Vector *)y;
3029
vc = (HVX_Vector *)z;
3130
for (size_t i = 0; i < block; ++i) {
32-
qf32 = Q6_Vqf32_vadd_VsfVsf(*va++, *vb++);
33-
*vc = Q6_Vsf_equals_Vqf32(qf32);
34-
vc++;
31+
*vc++ = Q6_Vsf_vadd_VsfVsf(*va++, *vb++);
3532
}
3633

3734
if (left > 0) {

0 commit comments

Comments
 (0)