Fixed a typo.

This commit is contained in:
Benoit Steiner 2016-03-14 09:25:16 -07:00
parent fcf59e1c37
commit 5a51366ea5

View File

@ -306,7 +306,7 @@ static inline EIGEN_DEVICE_FUNC bool (isinf)(const Eigen::half& a) {
} }
static inline EIGEN_HALF_CUDA_H bool (isnan)(const Eigen::half& a) { static inline EIGEN_HALF_CUDA_H bool (isnan)(const Eigen::half& a) {
#if defined(EIGEN_HAS_CUDA_FP16) && defined(__CUDA_ARCH__) && __CUDA_ARCH__ >= 530 #if defined(EIGEN_HAS_CUDA_FP16) && defined(__CUDA_ARCH__) && __CUDA_ARCH__ >= 530
return __hisnan(x); return __hisnan(a);
#else #else
return (a.x & 0x7fff) > 0x7c00; return (a.x & 0x7fff) > 0x7c00;
#endif #endif