@@ -55,6 +55,8 @@ static af_err af_arith(af_array *out, const af_array lhs, const af_array rhs, co
5555 case b8 : res = arithOp<char , op>(lhs, rhs, odims); break ;
5656 case s64: res = arithOp<intl , op>(lhs, rhs, odims); break ;
5757 case u64 : res = arithOp<uintl , op>(lhs, rhs, odims); break ;
58+ case s16: res = arithOp<short , op>(lhs, rhs, odims); break ;
59+ case u16 : res = arithOp<ushort , op>(lhs, rhs, odims); break ;
5860 default : TYPE_ERROR (0 , otype);
5961 }
6062
@@ -85,6 +87,8 @@ static af_err af_arith_real(af_array *out, const af_array lhs, const af_array rh
8587 case b8 : res = arithOp<char , op>(lhs, rhs, odims); break ;
8688 case s64: res = arithOp<intl , op>(lhs, rhs, odims); break ;
8789 case u64 : res = arithOp<uintl , op>(lhs, rhs, odims); break ;
90+ case s16: res = arithOp<short , op>(lhs, rhs, odims); break ;
91+ case u16 : res = arithOp<ushort , op>(lhs, rhs, odims); break ;
8892 default : TYPE_ERROR (0 , otype);
8993 }
9094
@@ -260,6 +264,8 @@ static af_err af_logic(af_array *out, const af_array lhs, const af_array rhs, co
260264 case b8 : res = logicOp<char , op>(lhs, rhs, odims); break ;
261265 case s64: res = logicOp<intl , op>(lhs, rhs, odims); break ;
262266 case u64 : res = logicOp<uintl , op>(lhs, rhs, odims); break ;
267+ case s16: res = logicOp<short , op>(lhs, rhs, odims); break ;
268+ case u16 : res = logicOp<ushort , op>(lhs, rhs, odims); break ;
263269 default : TYPE_ERROR (0 , type);
264270 }
265271
@@ -335,6 +341,8 @@ static af_err af_bitwise(af_array *out, const af_array lhs, const af_array rhs,
335341 case b8 : res = bitOp<char , op>(lhs, rhs, odims); break ;
336342 case s64: res = bitOp<intl , op>(lhs, rhs, odims); break ;
337343 case u64 : res = bitOp<uintl , op>(lhs, rhs, odims); break ;
344+ case s16: res = bitOp<short , op>(lhs, rhs, odims); break ;
345+ case u16 : res = bitOp<ushort , op>(lhs, rhs, odims); break ;
338346 default : TYPE_ERROR (0 , type);
339347 }
340348
0 commit comments