Skip to content

Commit

Permalink
utils: Use cuda builtin math functions
Browse files Browse the repository at this point in the history
  • Loading branch information
fweik committed Apr 10, 2019
1 parent 2fba156 commit ce8cf47
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/core/utils/math/sinc.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -49,8 +49,8 @@ template <typename T> DEVICE_QUALIFIER T sinc(T d) {

const auto PId = PI * d;

if (std::abs(d) > epsi)
return std::sin(PId) / PId;
if (abs(d) > epsi)
return sin(PId) / PId;

/** Coefficients of the Taylor expansion of sinc */
const constexpr T c2 = -0.1666666666667e-0;
Expand Down

0 comments on commit ce8cf47

Please sign in to comment.