@@ -5622,8 +5622,7 @@ struct CudaLog10Functor : public BaseActivationFunctor<T> {
56225622 MT x = static_cast <MT>(arg_x);
56235623 // Cast to floating-point before log10_local to avoid calling
56245624 // host-only ::log10(int) on Windows NVCC when MT is integral
5625- using FPType =
5626- std::conditional_t <std::is_integral<MT>::value, float , MPType>;
5625+ using FPType = std::conditional_t <std::is_integral<MT>::value, float , MT>;
56275626 return static_cast <U>(log10_local (static_cast <FPType>(x)));
56285627 }
56295628};
@@ -5845,14 +5844,14 @@ __device__ __forceinline__
58455844 return llrint (pow (static_cast <double >(a), b));
58465845}
58475846
5848- template <typename T, typename MPType >
5847+ template <typename T, typename MT >
58495848__device__ __forceinline__
5850- typename std::enable_if<!std::is_integral<T>::value, MPType >::type
5849+ typename std::enable_if<!std::is_integral<T>::value, MT >::type
58515850 compute_pow (const T a, const MT b) {
58525851 return pow (static_cast <MT>(a), b);
58535852}
58545853
5855- template <typename T, typename MPType >
5854+ template <typename T, typename MT >
58565855__device__ __forceinline__
58575856 typename std::enable_if<!std::is_integral<T>::value, ComplexType<MT>>::type
58585857 compute_pow (const ComplexType<T> a, const ComplexType<MT> b) {
0 commit comments