#pragma once #include "ck/utility/reduction_enums.hpp" namespace ck { struct float_equal_one { template __host__ __device__ inline bool operator()(T x) { return x <= static_cast(1.0f) and x >= static_cast(1.0f); }; }; struct float_equal_zero { template __host__ __device__ inline bool operator()(T x) { return x <= static_cast(0.0f) and x >= static_cast(0.0f); }; }; template static constexpr __device__ index_t get_shift() { return (get_shift() + 1); }; template <> constexpr __device__ index_t get_shift<1>() { return (0); } } // namespace ck