Negates a PyBfloat16.
| 154 | |
| 155 | // Negates a PyBfloat16. |
| 156 | PyObject* PyBfloat16_Negative(PyObject* self) { |
| 157 | bfloat16 x = PyBfloat16_Bfloat16(self); |
| 158 | return PyBfloat16_FromBfloat16(-x).release(); |
| 159 | } |
| 160 | |
| 161 | // Binary arithmetic operators on PyBfloat16 values. |
| 162 | #define BFLOAT16_BINOP(name, op) \ |
nothing calls this directly
no test coverage detected