#ifndef BOOST_QVM_MATH_HPP_INCLUDED #define BOOST_QVM_MATH_HPP_INCLUDED /// Copyright (c) 2008-2021 Emil Dotchevski and Reverge Studios, Inc. /// Distributed under the Boost Software License, Version 1.0. (See accompanying /// file LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt) #include #include namespace boost { namespace qvm { template T acos( T ); template T asin( T ); template T atan( T ); template T atan2( T, T ); template T cos( T ); template T sin( T ); template T tan( T ); template T cosh( T ); template T sinh( T ); template T tanh( T ); template T exp( T ); template T log( T ); template T log10( T ); template T mod( T , T ); template T pow( T, T ); template T sqrt( T ); template T ceil( T ); template T abs( T ); template T floor( T ); template T mod( T, T ); template T ldexp( T, int ); template T sign( T ); template <> BOOST_QVM_INLINE_TRIVIAL float acos( float x ) { return ::acosf(x); } template <> BOOST_QVM_INLINE_TRIVIAL float asin( float x ) { return ::asinf(x); } template <> BOOST_QVM_INLINE_TRIVIAL float atan( float x ) { return ::atanf(x); } template <> BOOST_QVM_INLINE_TRIVIAL float atan2( float x, float y ) { return ::atan2f(x,y); } template <> BOOST_QVM_INLINE_TRIVIAL float cos( float x ) { return ::cosf(x); } template <> BOOST_QVM_INLINE_TRIVIAL float sin( float x ) { return ::sinf(x); } template <> BOOST_QVM_INLINE_TRIVIAL float tan( float x ) { return ::tanf(x); } template <> BOOST_QVM_INLINE_TRIVIAL float cosh( float x ) { return ::coshf(x); } template <> BOOST_QVM_INLINE_TRIVIAL float sinh( float x ) { return ::sinhf(x); } template <> BOOST_QVM_INLINE_TRIVIAL float tanh( float x ) { return ::tanhf(x); } template <> BOOST_QVM_INLINE_TRIVIAL float exp( float x ) { return ::expf(x); } template <> BOOST_QVM_INLINE_TRIVIAL float log( float x ) { return ::logf(x); } template <> BOOST_QVM_INLINE_TRIVIAL float log10( float x ) { return ::log10f(x); } template <> BOOST_QVM_INLINE_TRIVIAL float mod( float x, float y ) { return ::fmodf(x,y); } template <> BOOST_QVM_INLINE_TRIVIAL float pow( float x, float y ) { return ::powf(x,y); } template <> BOOST_QVM_INLINE_TRIVIAL float sqrt( float x ) { return ::sqrtf(x); } template <> BOOST_QVM_INLINE_TRIVIAL float ceil( float x ) { return ::ceilf(x); } template <> BOOST_QVM_INLINE_TRIVIAL float abs( float x ) { return ::fabsf(x); } template <> BOOST_QVM_INLINE_TRIVIAL float floor( float x ) { return ::floorf(x); } template <> BOOST_QVM_INLINE_TRIVIAL float ldexp( float x, int y ) { return ::ldexpf(x,y); } template <> BOOST_QVM_INLINE_TRIVIAL float sign( float x ) { return x<0 ? -1.f : +1.f; } template <> BOOST_QVM_INLINE_TRIVIAL double acos( double x ) { return ::acos(x); } template <> BOOST_QVM_INLINE_TRIVIAL double asin( double x ) { return ::asin(x); } template <> BOOST_QVM_INLINE_TRIVIAL double atan( double x ) { return ::atan(x); } template <> BOOST_QVM_INLINE_TRIVIAL double atan2( double x, double y ) { return ::atan2(x,y); } template <> BOOST_QVM_INLINE_TRIVIAL double cos( double x ) { return ::cos(x); } template <> BOOST_QVM_INLINE_TRIVIAL double sin( double x ) { return ::sin(x); } template <> BOOST_QVM_INLINE_TRIVIAL double tan( double x ) { return ::tan(x); } template <> BOOST_QVM_INLINE_TRIVIAL double cosh( double x ) { return ::cosh(x); } template <> BOOST_QVM_INLINE_TRIVIAL double sinh( double x ) { return ::sinh(x); } template <> BOOST_QVM_INLINE_TRIVIAL double tanh( double x ) { return ::tanh(x); } template <> BOOST_QVM_INLINE_TRIVIAL double exp( double x ) { return ::exp(x); } template <> BOOST_QVM_INLINE_TRIVIAL double log( double x ) { return ::log(x); } template <> BOOST_QVM_INLINE_TRIVIAL double log10( double x ) { return ::log10(x); } template <> BOOST_QVM_INLINE_TRIVIAL double mod( double x, double y ) { return ::fmod(x,y); } template <> BOOST_QVM_INLINE_TRIVIAL double pow( double x, double y ) { return ::pow(x,y); } template <> BOOST_QVM_INLINE_TRIVIAL double sqrt( double x ) { return ::sqrt(x); } template <> BOOST_QVM_INLINE_TRIVIAL double ceil( double x ) { return ::ceil(x); } template <> BOOST_QVM_INLINE_TRIVIAL double abs( double x ) { return ::fabs(x); } template <> BOOST_QVM_INLINE_TRIVIAL double floor( double x ) { return ::floor(x); } template <> BOOST_QVM_INLINE_TRIVIAL double ldexp( double x, int y ) { return ::ldexp(x,y); } template <> BOOST_QVM_INLINE_TRIVIAL double sign( double x ) { return x<0 ? -1.0 : +1.0; } template <> BOOST_QVM_INLINE_TRIVIAL long double acos( long double x ) { return ::acosl(x); } template <> BOOST_QVM_INLINE_TRIVIAL long double asin( long double x ) { return ::asinl(x); } template <> BOOST_QVM_INLINE_TRIVIAL long double atan( long double x ) { return ::atanl(x); } template <> BOOST_QVM_INLINE_TRIVIAL long double atan2( long double x, long double y ) { return ::atan2l(x,y); } template <> BOOST_QVM_INLINE_TRIVIAL long double cos( long double x ) { return ::cosl(x); } template <> BOOST_QVM_INLINE_TRIVIAL long double sin( long double x ) { return ::sinl(x); } template <> BOOST_QVM_INLINE_TRIVIAL long double tan( long double x ) { return ::tanl(x); } template <> BOOST_QVM_INLINE_TRIVIAL long double cosh( long double x ) { return ::coshl(x); } template <> BOOST_QVM_INLINE_TRIVIAL long double sinh( long double x ) { return ::sinhl(x); } template <> BOOST_QVM_INLINE_TRIVIAL long double tanh( long double x ) { return ::tanhl(x); } template <> BOOST_QVM_INLINE_TRIVIAL long double exp( long double x ) { return ::expl(x); } template <> BOOST_QVM_INLINE_TRIVIAL long double log( long double x ) { return ::logl(x); } template <> BOOST_QVM_INLINE_TRIVIAL long double log10( long double x ) { return ::log10l(x); } template <> BOOST_QVM_INLINE_TRIVIAL long double mod( long double x, long double y ) { return ::fmodl(x,y); } template <> BOOST_QVM_INLINE_TRIVIAL long double pow( long double x, long double y ) { return ::powl(x,y); } template <> BOOST_QVM_INLINE_TRIVIAL long double sqrt( long double x ) { return ::sqrtl(x); } template <> BOOST_QVM_INLINE_TRIVIAL long double ceil( long double x ) { return ::ceill(x); } template <> BOOST_QVM_INLINE_TRIVIAL long double abs( long double x ) { return ::fabsl(x); } template <> BOOST_QVM_INLINE_TRIVIAL long double floor( long double x ) { return ::floorl(x); } template <> BOOST_QVM_INLINE_TRIVIAL long double ldexp( long double x, int y ) { return ::ldexpl(x,y); } template <> BOOST_QVM_INLINE_TRIVIAL long double sign( long double x ) { return x<0 ? -1.0 : +1.0; } } } #endif