Skip to content

Commit

Permalink
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
do not append _sse/_avx as it is never declared/used
Browse files Browse the repository at this point in the history
s-u committed Feb 15, 2021
1 parent f26941a commit 9038c18
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
@@ -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)));
}
4 changes: 2 additions & 2 deletions runtime/libpgmath/lib/common/dfloor.c
Original file line number Diff line number Diff line change
@@ -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)));
}
4 changes: 2 additions & 2 deletions runtime/libpgmath/lib/common/floor.c
Original file line number Diff line number Diff line change
@@ -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)));
}

0 comments on commit 9038c18

Please sign in to comment.