Skip to content

Commit

Permalink
Adjust line breaks in HalideBuffer.h
Browse files Browse the repository at this point in the history
  • Loading branch information
alexreinking committed Dec 29, 2024
1 parent 69ecb43 commit 3f70e51
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions src/runtime/HalideBuffer.h
Original file line number Diff line number Diff line change
Expand Up @@ -2061,8 +2061,7 @@ class Buffer {
}

template<typename... Args>
HALIDE_ALWAYS_INLINE storage_T *
address_of(Args... args) const {
HALIDE_ALWAYS_INLINE storage_T *address_of(Args... args) const {
if (T_is_void) {
return (storage_T *)(this->buf.host) + offset_of(0, args...) * type().bytes();
} else {
Expand Down Expand Up @@ -2138,8 +2137,7 @@ class Buffer {

template<typename... Args,
typename = typename std::enable_if<AllInts<Args...>::value>::type>
HALIDE_ALWAYS_INLINE not_void_T &
operator()(int first, Args... rest) {
HALIDE_ALWAYS_INLINE not_void_T &operator()(int first, Args... rest) {
static_assert(!T_is_void,
"Cannot use operator() on Buffer<void> types");
constexpr int expected_dims = 1 + (int)(sizeof...(rest));
Expand Down

0 comments on commit 3f70e51

Please sign in to comment.