Skip to content

Commit

Permalink
add vector call declaration to trigonemtry
Browse files Browse the repository at this point in the history
  • Loading branch information
EricAtORS authored and bernhardmgruber committed Jun 22, 2021
1 parent d3516e2 commit 61cac17
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 6 deletions.
12 changes: 6 additions & 6 deletions Vc/common/trigonometric.h
Original file line number Diff line number Diff line change
Expand Up @@ -63,12 +63,12 @@ namespace Common
{
template<typename Impl> struct Trigonometric
{
template<typename T> static T sin(const T &_x);
template<typename T> static T cos(const T &_x);
template<typename T> static void sincos(const T &_x, T *_sin, T *_cos);
template<typename T> static T asin (const T &_x);
template<typename T> static T atan (const T &_x);
template<typename T> static T atan2(const T &y, const T &x);
template<typename T> static T Vc_VDECL sin(const T &_x);
template<typename T> static T Vc_VDECL cos(const T &_x);
template<typename T> static void Vc_VDECL sincos(const T &_x, T *_sin, T *_cos);
template<typename T> static T Vc_VDECL asin (const T &_x);
template<typename T> static T Vc_VDECL atan (const T &_x);
template<typename T> static T Vc_VDECL atan2(const T &y, const T &x);
};
} // namespace Common

Expand Down
1 change: 1 addition & 0 deletions cmake/VcMacros.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -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")
Expand Down

0 comments on commit 61cac17

Please sign in to comment.