MCPcopy Create free account
hub / github.com/arrayfire/arrayfire / isnan

Function isnan

src/backend/common/half.hpp:1328–1338  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1326}
1327
1328AF_CONSTEXPR __DH__ static inline bool isnan(half val) noexcept {
1329#if __CUDA_ARCH__ >= 530
1330 return __hisnan(val.data_);
1331#elif defined(__CUDA_ARCH__)
1332 return ::isnan(__half2float(val));
1333#elif defined(AF_ONEAPI)
1334 return std::isnan(val.data_);
1335#else
1336 return (val.data_ & 0x7FFF) > 0x7C00;
1337#endif
1338}
1339
1340} // namespace common
1341} // namespace arrayfire

Callers 15

operator==Function · 0.70
TESTFunction · 0.50
TESTFunction · 0.50
TESTFunction · 0.50
compareArraysRMSDFunction · 0.50
half>Method · 0.50
is_nan<float>Function · 0.50
is_nan<double>Function · 0.50
is_nan<cfloat>Function · 0.50
is_nan<cdouble>Function · 0.50
is_nan<float>Function · 0.50
is_nan<double>Function · 0.50

Calls

no outgoing calls

Tested by 1

compareArraysRMSDFunction · 0.40