#![allow(dead_code)]
#[inline]
pub fn sqrt(x: f64) -> f64 {
#[cfg(not(feature = "no_std"))]
{
x.sqrt()
}
#[cfg(feature = "no_std")]
{
libm::sqrt(x)
}
}
#[inline]
pub fn sin(x: f64) -> f64 {
#[cfg(not(feature = "no_std"))]
{
x.sin()
}
#[cfg(feature = "no_std")]
{
libm::sin(x)
}
}
#[inline]
pub fn cos(x: f64) -> f64 {
#[cfg(not(feature = "no_std"))]
{
x.cos()
}
#[cfg(feature = "no_std")]
{
libm::cos(x)
}
}
#[inline]
pub fn tan(x: f64) -> f64 {
#[cfg(not(feature = "no_std"))]
{
x.tan()
}
#[cfg(feature = "no_std")]
{
libm::tan(x)
}
}
#[inline]
pub fn floor(x: f64) -> f64 {
#[cfg(not(feature = "no_std"))]
{
x.floor()
}
#[cfg(feature = "no_std")]
{
libm::floor(x)
}
}
#[inline]
pub fn ceil(x: f64) -> f64 {
#[cfg(not(feature = "no_std"))]
{
x.ceil()
}
#[cfg(feature = "no_std")]
{
libm::ceil(x)
}
}
#[inline]
pub fn round(x: f64) -> f64 {
#[cfg(not(feature = "no_std"))]
{
x.round()
}
#[cfg(feature = "no_std")]
{
libm::round(x)
}
}
#[inline]
pub fn trunc(x: f64) -> f64 {
#[cfg(not(feature = "no_std"))]
{
x.trunc()
}
#[cfg(feature = "no_std")]
{
libm::trunc(x)
}
}
#[inline]
pub fn powf(base: f64, exp: f64) -> f64 {
#[cfg(not(feature = "no_std"))]
{
base.powf(exp)
}
#[cfg(feature = "no_std")]
{
libm::pow(base, exp)
}
}
#[inline]
pub fn ln(x: f64) -> f64 {
#[cfg(not(feature = "no_std"))]
{
x.ln()
}
#[cfg(feature = "no_std")]
{
libm::log(x)
}
}
#[inline]
pub fn exp(x: f64) -> f64 {
#[cfg(not(feature = "no_std"))]
{
x.exp()
}
#[cfg(feature = "no_std")]
{
libm::exp(x)
}
}