Skip to content

Commit

Permalink
MSVC: specify Vc_VDECL explicitly on a few functions
Browse files Browse the repository at this point in the history
  • Loading branch information
amyspark authored and bernhardmgruber committed Jul 8, 2021
1 parent 8ae998c commit 93ac07e
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 5 deletions.
2 changes: 1 addition & 1 deletion Vc/avx/detail.h
Original file line number Diff line number Diff line change
Expand Up @@ -937,7 +937,7 @@ Vc_INTRINSIC __m256i avx_broadcast( uchar x) { return _mm256_set1_epi8(x); }
// sorted{{{1
template <Vc::Implementation Impl, typename T,
typename = enable_if<(Impl >= AVXImpl && Impl <= AVX2Impl)>>
Vc_CONST_L AVX2::Vector<T> sorted(AVX2::Vector<T> x) Vc_CONST_R;
Vc_CONST_L AVX2::Vector<T> Vc_VDECL sorted(AVX2::Vector<T> x) Vc_CONST_R;
template <typename T> Vc_INTRINSIC Vc_CONST AVX2::Vector<T> sorted(AVX2::Vector<T> x)
{
return sorted<CurrentImplementation::current()>(x);
Expand Down
2 changes: 1 addition & 1 deletion Vc/cpuid.h
Original file line number Diff line number Diff line change
Expand Up @@ -67,7 +67,7 @@ class CpuId
* Will be executed automatically before main, but not necessarily before other functions
* executing before main.
*/
static void init();
static void Vc_VDECL init();

//! Return the cache line size in bits.
static inline ushort cacheLineSize() { return static_cast<ushort>(s_cacheLineSize) * 8u; }
Expand Down
2 changes: 1 addition & 1 deletion Vc/sse/detail.h
Original file line number Diff line number Diff line change
Expand Up @@ -772,7 +772,7 @@ Vc_INTRINSIC uchar max(__m128i a, uchar) {

// sorted{{{1
template <Vc::Implementation, typename T>
Vc_CONST_L SSE::Vector<T> sorted(SSE::Vector<T> x) Vc_CONST_R;
Vc_CONST_L SSE::Vector<T> Vc_VDECL sorted(SSE::Vector<T> x) Vc_CONST_R;
template <typename T> Vc_INTRINSIC Vc_CONST SSE::Vector<T> sorted(SSE::Vector<T> x)
{
static_assert(!CurrentImplementation::is(ScalarImpl),
Expand Down
3 changes: 1 addition & 2 deletions Vc/support.h
Original file line number Diff line number Diff line change
Expand Up @@ -72,8 +72,7 @@ unsigned int extraInstructionsSupported();
*
* \param impl The SIMD target to test for.
*/
Vc_TARGET_NO_SIMD
bool isImplementationSupported(Vc::Implementation impl);
Vc_TARGET_NO_SIMD bool Vc_VDECL isImplementationSupported(Vc::Implementation impl);

/**
* \internal
Expand Down

0 comments on commit 93ac07e

Please sign in to comment.