diff --git a/task2.cpp b/task2.cpp new file mode 100644 index 0000000..8bfa2a3 --- /dev/null +++ b/task2.cpp @@ -0,0 +1,46 @@ +#include +#include //启用 NEON 指令 +#include +#include + +#define SIZE 1024 + +void vector_add_optimized(float* A, float* B, float* C, int size) +{ + for(int i=0;i