From 47dc321a6536606f254b9257c32d408981bee168 Mon Sep 17 00:00:00 2001 From: Peter Harris Date: Tue, 6 Aug 2024 20:39:06 +0000 Subject: [PATCH] Fix comment typos --- Source/astcenc_vecmathlib_avx2_8.h | 4 +--- Source/astcenc_vecmathlib_neon_4.h | 2 +- Source/astcenc_vecmathlib_none_4.h | 2 +- Source/astcenc_vecmathlib_sse_4.h | 2 +- Source/astcenc_vecmathlib_sve_8.h | 10 ++++------ 5 files changed, 8 insertions(+), 12 deletions(-) diff --git a/Source/astcenc_vecmathlib_avx2_8.h b/Source/astcenc_vecmathlib_avx2_8.h index e2f86a1c..347abf83 100644 --- a/Source/astcenc_vecmathlib_avx2_8.h +++ b/Source/astcenc_vecmathlib_avx2_8.h @@ -149,7 +149,7 @@ struct vint8 /** * @brief Construct from 1 scalar value replicated across all lanes. * - * Consider using vfloat8::zero() for constexpr zeros. + * Consider using zero() for constexpr zeros. */ ASTCENC_SIMD_INLINE explicit vint8(int a) { @@ -623,7 +623,6 @@ ASTCENC_SIMD_INLINE vfloat8 operator/(vfloat8 a, float b) return vfloat8(_mm256_div_ps(a.m, _mm256_set1_ps(b))); } - /** * @brief Overload: scalar by vector division. */ @@ -632,7 +631,6 @@ ASTCENC_SIMD_INLINE vfloat8 operator/(float a, vfloat8 b) return vfloat8(_mm256_div_ps(_mm256_set1_ps(a), b.m)); } - /** * @brief Overload: vector by vector equality. */ diff --git a/Source/astcenc_vecmathlib_neon_4.h b/Source/astcenc_vecmathlib_neon_4.h index c5a911b9..e15d4f9e 100644 --- a/Source/astcenc_vecmathlib_neon_4.h +++ b/Source/astcenc_vecmathlib_neon_4.h @@ -203,7 +203,7 @@ struct vint4 /** * @brief Construct from 1 scalar value replicated across all lanes. * - * Consider using vfloat4::zero() for constexpr zeros. + * Consider using zero() for constexpr zeros. */ ASTCENC_SIMD_INLINE explicit vint4(int a) { diff --git a/Source/astcenc_vecmathlib_none_4.h b/Source/astcenc_vecmathlib_none_4.h index 7a8a581b..55981e4c 100644 --- a/Source/astcenc_vecmathlib_none_4.h +++ b/Source/astcenc_vecmathlib_none_4.h @@ -225,7 +225,7 @@ struct vint4 /** * @brief Construct from 4 scalar values replicated across all lanes. * - * Consider using vint4::zero() for constexpr zeros. + * Consider using zero() for constexpr zeros. */ ASTCENC_SIMD_INLINE explicit vint4(int a) { diff --git a/Source/astcenc_vecmathlib_sse_4.h b/Source/astcenc_vecmathlib_sse_4.h index d274de0b..111d9b9e 100644 --- a/Source/astcenc_vecmathlib_sse_4.h +++ b/Source/astcenc_vecmathlib_sse_4.h @@ -221,7 +221,7 @@ struct vint4 /** * @brief Construct from 1 scalar value replicated across all lanes. * - * Consider using vfloat4::zero() for constexpr zeros. + * Consider using zero() for constexpr zeros. */ ASTCENC_SIMD_INLINE explicit vint4(int a) { diff --git a/Source/astcenc_vecmathlib_sve_8.h b/Source/astcenc_vecmathlib_sve_8.h index 85c91bff..30246c51 100644 --- a/Source/astcenc_vecmathlib_sve_8.h +++ b/Source/astcenc_vecmathlib_sve_8.h @@ -27,8 +27,8 @@ * code. */ -#ifndef ASTC_VECMATHLIB_sve_8_H_INCLUDED -#define ASTC_VECMATHLIB_sve_8_H_INCLUDED +#ifndef ASTC_VECMATHLIB_SVE_8_H_INCLUDED +#define ASTC_VECMATHLIB_SVE_8_H_INCLUDED #ifndef ASTCENC_SIMD_INLINE #error "Include astcenc_vecmathlib.h, do not include directly" @@ -159,7 +159,7 @@ struct vint8 /** * @brief Construct from 1 scalar value replicated across all lanes. * - * Consider using vfloat8::zero() for constexpr zeros. + * Consider using zero() for constexpr zeros. */ ASTCENC_SIMD_INLINE explicit vint8(int a) { @@ -602,7 +602,6 @@ ASTCENC_SIMD_INLINE vfloat8 operator/(vfloat8 a, float b) return vfloat8(svdiv_f32_x(svptrue_b32(), a.m, svdup_f32(b))); } - /** * @brief Overload: scalar by vector division. */ @@ -611,7 +610,6 @@ ASTCENC_SIMD_INLINE vfloat8 operator/(float a, vfloat8 b) return vfloat8(svdiv_f32_x(svptrue_b32(), svdup_f32(a), b.m)); } - /** * @brief Overload: vector by vector equality. */ @@ -1086,4 +1084,4 @@ ASTCENC_SIMD_INLINE void print(vmask8 a) print(select(vint8(0), vint8(1), a)); } -#endif // #ifndef ASTC_VECMATHLIB_sve_8_H_INCLUDED +#endif // #ifndef ASTC_VECMATHLIB_SVE_8_H_INCLUDED