Skip to content

Commit 821dfce

Browse files
alexeyvoronov-intelromanovvlad
authored andcommitted
[SYCL][NFC] Refactoring of the host side built-in functions
Removed a code duplication. Moved the common implementation functions to anonymous namespace. Signed-off-by: Alexey Voronov <[email protected]>
1 parent f8037ba commit 821dfce

File tree

4 files changed

+644
-731
lines changed

4 files changed

+644
-731
lines changed

sycl/include/CL/sycl/builtins.hpp

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -965,6 +965,8 @@ upsample(T hi, T2 lo) __NOEXC {
965965
hi, lo);
966966
}
967967

968+
#undef __invoke_s_upsample
969+
968970
// geninteger popcount (geninteger x)
969971
template <typename T>
970972
typename std::enable_if<detail::is_geninteger<T>::value, T>::type

sycl/include/CL/sycl/detail/generic_type_traits.hpp

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1244,6 +1244,10 @@ template <typename T> static constexpr T min_v() {
12441244
return std::numeric_limits<T>::min();
12451245
}
12461246

1247+
template <typename T> static constexpr T quiet_NaN() {
1248+
return std::numeric_limits<T>::quiet_NaN();
1249+
}
1250+
12471251
} // namespace detail
12481252
} // namespace sycl
12491253
} // namespace cl

0 commit comments

Comments
 (0)