From 69bd1681f230fdd297dc5b2a0cec4f5f23499dce Mon Sep 17 00:00:00 2001 From: Simon Urbanek Date: Mon, 15 Feb 2021 13:25:14 +1300 Subject: [PATCH] do not append _sse/_avx as it is never declared/used --- runtime/libpgmath/lib/common/dceil.c | 4 ++-- runtime/libpgmath/lib/common/dfloor.c | 4 ++-- runtime/libpgmath/lib/common/floor.c | 4 ++-- 3 files changed, 6 insertions(+), 6 deletions(-) diff --git a/runtime/libpgmath/lib/common/dceil.c b/runtime/libpgmath/lib/common/dceil.c index b1f8675e1d7b..028b301ee5aa 100644 --- a/runtime/libpgmath/lib/common/dceil.c +++ b/runtime/libpgmath/lib/common/dceil.c @@ -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))); } diff --git a/runtime/libpgmath/lib/common/dfloor.c b/runtime/libpgmath/lib/common/dfloor.c index db5c54cbe0fb..5e78e3d0c053 100644 --- a/runtime/libpgmath/lib/common/dfloor.c +++ b/runtime/libpgmath/lib/common/dfloor.c @@ -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))); } diff --git a/runtime/libpgmath/lib/common/floor.c b/runtime/libpgmath/lib/common/floor.c index 6895671951f4..1bd55a8d21c0 100644 --- a/runtime/libpgmath/lib/common/floor.c +++ b/runtime/libpgmath/lib/common/floor.c @@ -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))); }