Skip to content

Commit

Permalink
clang-format
Browse files Browse the repository at this point in the history
  • Loading branch information
aelovikov-intel committed Jan 9, 2024
1 parent dc9caef commit b9ab29d
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions sycl/source/builtins/host_helper_macros.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -38,14 +38,14 @@
// we export. As such, verify the return type consistency using static_assert.
#define EXPORT_SCALAR_NS(NUM_ARGS, NAME, NS, TYPE) \
__SYCL_EXPORT auto __##NAME##_impl(NUM_ARGS##_TYPE_ARG(TYPE)) \
->decltype(NAME##_host_impl(NUM_ARGS##_ARG)) { \
-> decltype(NAME##_host_impl(NUM_ARGS##_ARG)) { \
static_assert(std::is_same_v<decltype(NAME##_host_impl(NUM_ARGS##_ARG)), \
decltype(NS::NAME(NUM_ARGS##_ARG))>); \
return NAME##_host_impl(NUM_ARGS##_ARG); \
}
#define EXPORT_VEC_NS(NUM_ARGS, NAME, NS, TYPE, VL) \
__SYCL_EXPORT auto __##NAME##_impl(NUM_ARGS##_VEC_TYPE_ARG(TYPE, VL)) \
->decltype(NAME##_host_impl(NUM_ARGS##_ARG)) { \
-> decltype(NAME##_host_impl(NUM_ARGS##_ARG)) { \
static_assert(std::is_same_v<decltype(NAME##_host_impl(NUM_ARGS##_ARG)), \
decltype(NS::NAME(NUM_ARGS##_ARG))>); \
return NAME##_host_impl(NUM_ARGS##_ARG); \
Expand Down

0 comments on commit b9ab29d

Please sign in to comment.