| 223 | } |
| 224 | |
| 225 | PyObject* PyBfloat16_Subtract(PyObject* a, PyObject* b) { |
| 226 | bfloat16 x, y; |
| 227 | if (SafeCastToBfloat16(a, &x) && SafeCastToBfloat16(b, &y)) { |
| 228 | return PyBfloat16_FromBfloat16(x - y).release(); |
| 229 | } |
| 230 | return PyArray_Type.tp_as_number->nb_subtract(a, b); |
| 231 | } |
| 232 | |
| 233 | PyObject* PyBfloat16_Multiply(PyObject* a, PyObject* b) { |
| 234 | bfloat16 x, y; |
nothing calls this directly
no test coverage detected