| 13 | namespace arrayfire { |
| 14 | namespace opencl { |
| 15 | cfloat operator+(cfloat lhs, cfloat rhs) { |
| 16 | cfloat res = {{lhs.s[0] + rhs.s[0], lhs.s[1] + rhs.s[1]}}; |
| 17 | return res; |
| 18 | } |
| 19 | |
| 20 | common::half operator+(common::half lhs, common::half rhs) noexcept { |
| 21 | return common::half(static_cast<float>(lhs) + static_cast<float>(rhs)); |