Skip to content

Commit

Permalink
do not append _sse/_avx as it is never declared/used
Browse files Browse the repository at this point in the history
  • Loading branch information
s-u committed Feb 15, 2021
1 parent 30b8034 commit 69bd168
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 6 deletions.
4 changes: 2 additions & 2 deletions runtime/libpgmath/lib/common/dceil.c
Original file line number Diff line number Diff line change
Expand Up @@ -12,13 +12,13 @@

#if defined(__AVX__)
double
__mth_i_dceil_avx(double x)
__mth_i_dceil(double x)
{
return _mm_cvtsd_f64(_mm_ceil_sd(_mm_set1_pd(x), _mm_set1_pd(x)));
}
#elif defined(__SSE4_1__)
double
__mth_i_dceil_sse(double x)
__mth_i_dceil(double x)
{
return _mm_cvtsd_f64(_mm_ceil_sd(_mm_set1_pd(x), _mm_set1_pd(x)));
}
Expand Down
4 changes: 2 additions & 2 deletions runtime/libpgmath/lib/common/dfloor.c
Original file line number Diff line number Diff line change
Expand Up @@ -12,13 +12,13 @@

#if defined(__AVX__)
double
__mth_i_dfloor_avx(double x)
__mth_i_dfloor(double x)
{
return _mm_cvtsd_f64(_mm_floor_sd(_mm_set1_pd(x), _mm_set1_pd(x)));
}
#elif defined(__SSE4_1__)
double
__mth_i_dfloor_sse(double x)
__mth_i_dfloor(double x)
{
return _mm_cvtsd_f64(_mm_floor_sd(_mm_set1_pd(x), _mm_set1_pd(x)));
}
Expand Down
4 changes: 2 additions & 2 deletions runtime/libpgmath/lib/common/floor.c
Original file line number Diff line number Diff line change
Expand Up @@ -12,13 +12,13 @@

#if defined(__AVX__)
float
__mth_i_floor_avx(float x)
__mth_i_floor(float x)
{
return _mm_cvtss_f32(_mm_floor_ss(_mm_set1_ps(x), _mm_set1_ps(x)));
}
#elif defined(__SSE4_1__)
float
__mth_i_floor_sse(float x)
__mth_i_floor(float x)
{
return _mm_cvtss_f32(_mm_floor_ss(_mm_set1_ps(x), _mm_set1_ps(x)));
}
Expand Down

0 comments on commit 69bd168

Please sign in to comment.