diff --git a/mlx/backend/metal/kernels/steel/utils/integral_constant.h b/mlx/backend/metal/kernels/steel/utils/integral_constant.h index 2f153f482f..3b60ae301d 100644 --- a/mlx/backend/metal/kernels/steel/utils/integral_constant.h +++ b/mlx/backend/metal/kernels/steel/utils/integral_constant.h @@ -47,13 +47,11 @@ using Int = integral_constant; // Binary Operators on Integral constants /////////////////////////////////////////////////////////////////////////////// -#define integral_const_binop(__op__, __operator__) \ - template \ - METAL_FUNC constexpr auto __operator__( \ - integral_constant, integral_constant) { \ - constexpr auto res = tv __op__ uv; \ - using res_t = metal::remove_addrspace_t; \ - return integral_constant{}; \ +#define integral_const_binop(__op__, __operator__) \ + template \ + METAL_FUNC constexpr auto __operator__( \ + integral_constant, integral_constant) { \ + return integral_constant{}; \ } integral_const_binop(+, operator+);