4 #pragma clang diagnostic push
5 #pragma clang diagnostic ignored "-Wreturn-type-c-linkage"
12 for (int64_t i = 0; i < val; i++) {
23 for (int64_t i = 0; i < val; i++) {
24 scalar +=
static_cast<int32_t
>(in_arr[i]);
26 scalar +=
static_cast<int32_t
>(val);
34 auto* data = array.
data();
35 for (int64_t i = 0; i < val; i++) {
46 auto* data = array.
data();
47 for (int64_t i = 0; i < val; i++) {
48 data[i] =
static_cast<int32_t
>(in_arr[i]);
50 data[val] =
static_cast<int32_t
>(val);
55 #pragma clang diagnostic pop
#define EXTENSION_NOINLINE
EXTENSION_NOINLINE Array< int32_t > raw_array_as_array_diff_type(const int64_t *in_arr, const int64_t val)
EXTENSION_NOINLINE int32_t raw_array_as_scalar_diff_type(const int64_t *in_arr, const int64_t val)
EXTENSION_NOINLINE int64_t raw_array_as_scalar_same_type(const int64_t *in_arr, const int64_t val)
DEVICE ALWAYS_INLINE T * data() const
EXTENSION_NOINLINE Array< int64_t > raw_array_as_array_same_type(const int64_t *in_arr, const int64_t val)