| 231 | } |
| 232 | |
| 233 | PyObject* PyBfloat16_Multiply(PyObject* a, PyObject* b) { |
| 234 | bfloat16 x, y; |
| 235 | if (SafeCastToBfloat16(a, &x) && SafeCastToBfloat16(b, &y)) { |
| 236 | return PyBfloat16_FromBfloat16(x * y).release(); |
| 237 | } |
| 238 | return PyArray_Type.tp_as_number->nb_multiply(a, b); |
| 239 | } |
| 240 | |
| 241 | PyObject* PyBfloat16_TrueDivide(PyObject* a, PyObject* b) { |
| 242 | bfloat16 x, y; |
nothing calls this directly
no test coverage detected