| 1 | //! Bindings to math functions provided by the system `libm` or by the `libm` crate, exposed |
|---|---|
| 2 | //! via `compiler-builtins`. |
| 3 | |
| 4 | // SAFETY: These symbols have standard interfaces in C and are defined by `libm`, or are |
| 5 | // provided by `compiler-builtins` on unsupported platforms. |
| 6 | unsafe extern "C"{ |
| 7 | pub(crate) safe fn cbrt(n: f64) -> f64; |
| 8 | pub(crate) safe fn cbrtf(n: f32) -> f32; |
| 9 | pub(crate) safe fn fdim(a: f64, b: f64) -> f64; |
| 10 | pub(crate) safe fn fdimf(a: f32, b: f32) -> f32; |
| 11 | } |
| 12 |
