From 9c317e498eb0e76c9503f237856ed537c2b15380 Mon Sep 17 00:00:00 2001 From: EricAtORS Date: Sat, 24 Apr 2021 12:30:02 -0700 Subject: [PATCH] add vector call declaration to trigonemtry fix #230 #147 --- Vc/common/trigonometric.h | 12 ++++++------ cmake/VcMacros.cmake | 1 + 2 files changed, 7 insertions(+), 6 deletions(-) diff --git a/Vc/common/trigonometric.h b/Vc/common/trigonometric.h index 3887857e2..07dc91c3e 100644 --- a/Vc/common/trigonometric.h +++ b/Vc/common/trigonometric.h @@ -63,12 +63,12 @@ namespace Common { template struct Trigonometric { - template static T sin(const T &_x); - template static T cos(const T &_x); - template static void sincos(const T &_x, T *_sin, T *_cos); - template static T asin (const T &_x); - template static T atan (const T &_x); - template static T atan2(const T &y, const T &x); + template static T Vc_VDECL sin(const T &_x); + template static T Vc_VDECL cos(const T &_x); + template static void Vc_VDECL sincos(const T &_x, T *_sin, T *_cos); + template static T Vc_VDECL asin (const T &_x); + template static T Vc_VDECL atan (const T &_x); + template static T Vc_VDECL atan2(const T &y, const T &x); }; } // namespace Common diff --git a/cmake/VcMacros.cmake b/cmake/VcMacros.cmake index 684b4ac9f..da124c438 100644 --- a/cmake/VcMacros.cmake +++ b/cmake/VcMacros.cmake @@ -338,6 +338,7 @@ int main() { return 0; } add_definitions(-D_CRT_SECURE_NO_WARNINGS) endif() vc_add_compiler_flag(Vc_COMPILE_FLAGS "/Gv") # default to __vectorcall + vc_add_compiler_flag(Vc_COMPILE_FLAGS "/bigobj") # required for building tests with AVX if(MSVC_VERSION LESS 1900) UserWarning("MSVC before 2015 does not support enough of C++11")