Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 0 additions & 5 deletions src/backend/cuda/kernel/jit.cuh
Original file line number Diff line number Diff line change
Expand Up @@ -59,14 +59,9 @@ typedef cuDoubleComplex cdouble;
#define __rem(lhs, rhs) ((lhs) % (rhs))
#define __mod(lhs, rhs) ((lhs) % (rhs))

#ifdef AF_WITH_FAST_MATH
#define __pow(lhs, rhs) \
static_cast<double>( \
pow(static_cast<double>(lhs), static_cast<double>(rhs)));
#else
#define __pow(lhs, rhs) \
__float2int_rn(powf(__int2float_rn((int)lhs), __int2float_rn((int)rhs)))
#endif
#define __powll(lhs, rhs) \
__double2ll_rn(pow(__ll2double_rn(lhs), __ll2double_rn(rhs)))
#define __powul(lhs, rhs) \
Expand Down
1 change: 1 addition & 0 deletions test/binary.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -195,6 +195,7 @@ BINARY_TESTS_NEAR_FLOAT(pow)
BINARY_TESTS_NEAR_FLOAT(hypot)

BINARY_TESTS_NEAR_HALF(atan2)
BINARY_TESTS_NEAR_HALF(pow)
BINARY_TESTS_NEAR_HALF(hypot)

BINARY_TESTS_NEAR_DOUBLE(atan2)
Expand Down