From 517710fe5696615cf0af529cf3d3a8f0dbe2f385 Mon Sep 17 00:00:00 2001 From: ozhanghe <93566273+ozhanghe@users.noreply.github.com> Date: Thu, 4 Jun 2026 20:26:54 -0700 Subject: [PATCH] Spelling: Fix typos in HAL --- hal/carotene/include/carotene/functions.hpp | 2 +- hal/carotene/src/accumulate.cpp | 2 +- hal/carotene/src/canny.cpp | 2 +- hal/carotene/src/intrinsics.hpp | 2 +- 4 files changed, 4 insertions(+), 4 deletions(-) diff --git a/hal/carotene/include/carotene/functions.hpp b/hal/carotene/include/carotene/functions.hpp index 15a12e765b..31a5d0af94 100644 --- a/hal/carotene/include/carotene/functions.hpp +++ b/hal/carotene/include/carotene/functions.hpp @@ -2285,7 +2285,7 @@ namespace CAROTENE_NS { f64 alpha, f64 beta); /* - Reduce matrix to a vector by calculatin given operation for each column + Reduce matrix to a vector by calculating given operation for each column */ void reduceColSum(const Size2D &size, const u8 * srcBase, ptrdiff_t srcStride, diff --git a/hal/carotene/src/accumulate.cpp b/hal/carotene/src/accumulate.cpp index ee9ce22d35..6ab86ae2dd 100644 --- a/hal/carotene/src/accumulate.cpp +++ b/hal/carotene/src/accumulate.cpp @@ -231,7 +231,7 @@ void accumulateSquare(const Size2D &size, internal::assertSupportedConfiguration(); #ifdef CAROTENE_NEON - // this ugly contruction is needed to avoid: + // this ugly construction is needed to avoid: // /usr/lib/gcc/arm-linux-gnueabihf/4.8/include/arm_neon.h:3581:59: error: argument must be a constant // return (int16x8_t)__builtin_neon_vshr_nv8hi (__a, __b, 1); diff --git a/hal/carotene/src/canny.cpp b/hal/carotene/src/canny.cpp index f61bc23e9b..b668d85cbe 100644 --- a/hal/carotene/src/canny.cpp +++ b/hal/carotene/src/canny.cpp @@ -524,7 +524,7 @@ inline void Canny3x3(const Size2D &size, s32 cn, //i == 0 normEstimator.firstRow(size, cn, srcBase, srcStride, dxBase, dxStride, dyBase, dyStride, mag_buf); - // calculate magnitude and angle of gradient, perform non-maxima supression. + // calculate magnitude and angle of gradient, perform non-maxima suppression. // fill the map with one of the following values: // 0 - the pixel might belong to an edge // 1 - the pixel can not belong to an edge diff --git a/hal/carotene/src/intrinsics.hpp b/hal/carotene/src/intrinsics.hpp index 062a3f897b..5b04bc91a1 100644 --- a/hal/carotene/src/intrinsics.hpp +++ b/hal/carotene/src/intrinsics.hpp @@ -66,7 +66,7 @@ inline float32x2_t vrecp_f32(float32x2_t val) return reciprocal; } -// caclulate sqrt value +// calculate sqrt value inline float32x4_t vrsqrtq_f32(float32x4_t val) {