Skip to content

Commit

Permalink
renamed for consistency
Browse files Browse the repository at this point in the history
Signed-off-by: Magnus Lundmark <[email protected]>
  • Loading branch information
Ka-zam committed Oct 13, 2023
1 parent 295ee58 commit fcc0576
Showing 1 changed file with 14 additions and 14 deletions.
28 changes: 14 additions & 14 deletions kernels/volk/volk_32f_reciprocal_32f.h
Original file line number Diff line number Diff line change
Expand Up @@ -94,12 +94,12 @@ volk_32f_reciprocal_32f_a_avx2_fma(float* out, const float* in, unsigned int num
#include <immintrin.h>
#include <volk/volk_avx_intrinsics.h>
static inline void
volk_32f_reciprocal_32f_a_avx_nr(float* out, const float* in, unsigned int num_points)
volk_32f_reciprocal_32f_a_avx(float* out, const float* in, unsigned int num_points)
{
unsigned int number = 0;
const unsigned int eighthPoints = num_points / 8;
const unsigned int eighth_points = num_points / 8;

for (; number < eighthPoints; number++) {
for (; number < eighth_points; number++) {
__m256 x = _mm256_load_ps(in);
in += 8;

Expand All @@ -109,7 +109,7 @@ volk_32f_reciprocal_32f_a_avx_nr(float* out, const float* in, unsigned int num_p
out += 8;
}

number = eighthPoints * 8;
number = eighth_points * 8;
for (; number < num_points; number++) {
*out++ = 1.f / (*in++);
}
Expand All @@ -122,10 +122,10 @@ static inline void
volk_32f_reciprocal_32f_a_avx_div(float* out, const float* in, unsigned int num_points)
{
unsigned int number = 0;
const unsigned int eighthPoints = num_points / 8;
const unsigned int eighth_points = num_points / 8;
const __m256 ONE = _mm256_set1_ps(1.0f);

for (; number < eighthPoints; number++) {
for (; number < eighth_points; number++) {
__m256 x = _mm256_load_ps(in);
in += 8;

Expand All @@ -135,7 +135,7 @@ volk_32f_reciprocal_32f_a_avx_div(float* out, const float* in, unsigned int num_
out += 8;
}

number = eighthPoints * 8;
number = eighth_points * 8;
for (; number < num_points; number++) {
*out++ = 1.f / (*in++);
}
Expand Down Expand Up @@ -177,12 +177,12 @@ volk_32f_reciprocal_32f_u_avx2_fma(float* out, const float* in, unsigned int num
#include <immintrin.h>
#include <volk/volk_avx_intrinsics.h>
static inline void
volk_32f_reciprocal_32f_u_avx_nr(float* out, const float* in, unsigned int num_points)
volk_32f_reciprocal_32f_u_avx(float* out, const float* in, unsigned int num_points)
{
unsigned int number = 0;
const unsigned int eighthPoints = num_points / 8;
const unsigned int eighth_points = num_points / 8;

for (; number < eighthPoints; number++) {
for (; number < eighth_points; number++) {
__m256 x = _mm256_loadu_ps(in);
in += 8;

Expand All @@ -192,7 +192,7 @@ volk_32f_reciprocal_32f_u_avx_nr(float* out, const float* in, unsigned int num_p
out += 8;
}

number = eighthPoints * 8;
number = eighth_points * 8;
for (; number < num_points; number++) {
*out++ = 1.f / (*in++);
}
Expand All @@ -205,10 +205,10 @@ static inline void
volk_32f_reciprocal_32f_u_avx_div(float* out, const float* in, unsigned int num_points)
{
unsigned int number = 0;
const unsigned int eighthPoints = num_points / 8;
const unsigned int eighth_points = num_points / 8;
const __m256 ONE = _mm256_set1_ps(1.0f);

for (; number < eighthPoints; number++) {
for (; number < eighth_points; number++) {
__m256 x = _mm256_loadu_ps(in);
in += 8;

Expand All @@ -218,7 +218,7 @@ volk_32f_reciprocal_32f_u_avx_div(float* out, const float* in, unsigned int num_
out += 8;
}

number = eighthPoints * 8;
number = eighth_points * 8;
for (; number < num_points; number++) {
*out++ = 1.f / (*in++);
}
Expand Down

0 comments on commit fcc0576

Please sign in to comment.