| 492 | } |
| 493 | |
| 494 | af_half abs(af_half in) { |
| 495 | half_float::half in_; |
| 496 | // casting to void* to avoid class-memaccess warnings on windows |
| 497 | memcpy(static_cast<void *>(&in_), &in, sizeof(af_half)); |
| 498 | half_float::half out_ = abs(in_); |
| 499 | af_half out; |
| 500 | memcpy(&out, &out_, sizeof(af_half)); |
| 501 | return out; |
| 502 | } |
| 503 | |
| 504 | af_half operator-(af_half lhs, af_half rhs) { |
| 505 | half_float::half lhs_; |
no outgoing calls
no test coverage detected