update module import and crate features

This commit is contained in:
HTG-YT 2021-08-08 11:52:44 +08:00
parent 2bb0c5a215
commit e9023a24f4
2 changed files with 118 additions and 225 deletions

View file

@ -8,3 +8,6 @@ license = "MPL-2.0"
[dependencies] [dependencies]
libm = "0.2.1" libm = "0.2.1"
[features]
libm-unstable = ["libm/unstable"]

View file

@ -10,227 +10,117 @@
#![no_std] #![no_std]
#[path = "math/acos.rs"] pub mod math {
pub mod acos; pub mod acos;
#[path = "math/acosf.rs"] pub mod acosf;
pub mod acosf; pub mod acosh;
#[path = "math/acosh.rs"] pub mod acoshf;
pub mod acosh; pub mod asin;
#[path = "math/acoshf.rs"] pub mod asinf;
pub mod acoshf; pub mod asinh;
#[path = "math/asin.rs"] pub mod asinhf;
pub mod asin; pub mod atan;
#[path = "math/asinf.rs"] pub mod atan2;
pub mod asinf; pub mod atan2f;
#[path = "math/asinh.rs"] pub mod atanf;
pub mod asinh; pub mod atanh;
#[path = "math/asinhf.rs"] pub mod atanhf;
pub mod asinhf; pub mod cbrt;
#[path = "math/atan.rs"] pub mod cbrtf;
pub mod atan; pub mod ceil;
#[path = "math/atan2.rs"] pub mod ceilf;
pub mod atan2; pub mod copysign;
#[path = "math/atan2f.rs"] pub mod copysignf;
pub mod atan2f; pub mod cos;
#[path = "math/atanf.rs"] pub mod cosf;
pub mod atanf; pub mod cosh;
#[path = "math/atanh.rs"] pub mod coshf;
pub mod atanh; pub mod erf;
#[path = "math/atanhf.rs"] pub mod erfc;
pub mod atanhf; pub mod erfcf;
#[path = "math/cbrt.rs"] pub mod erff;
pub mod cbrt; pub mod exp;
#[path = "math/cbrtf.rs"] pub mod exp2;
pub mod cbrtf; pub mod exp2f;
#[path = "math/ceil.rs"] pub mod exp10;
pub mod ceil; pub mod exp10f;
#[path = "math/ceilf.rs"] pub mod expf;
pub mod ceilf; pub mod expm1;
#[path = "math/copysign.rs"] pub mod expm1f;
pub mod copysign; pub mod fabs;
#[path = "math/copysignf.rs"] pub mod fabsf;
pub mod copysignf; pub mod fdim;
#[path = "math/cos.rs"] pub mod fdimf;
pub mod cos; pub mod floor;
#[path = "math/cosf.rs"] pub mod floorf;
pub mod cosf; pub mod fma;
#[path = "math/cosh.rs"] pub mod fmaf;
pub mod cosh; pub mod fmax;
#[path = "math/coshf.rs"] pub mod fmaxf;
pub mod coshf; pub mod fmin;
#[path = "math/erf.rs"] pub mod fminf;
pub mod erf; pub mod fmod;
#[path = "math/erfc.rs"] pub mod fmodf;
pub mod erfc; pub mod frexp;
#[path = "math/erfcf.rs"] pub mod frexpf;
pub mod erfcf; pub mod hypot;
#[path = "math/erff.rs"] pub mod hypotf;
pub mod erff; pub mod ilogb;
#[path = "math/exp.rs"] pub mod ilogbf;
pub mod exp; pub mod j0;
#[path = "math/exp2.rs"] pub mod j0f;
pub mod exp2; pub mod j1;
#[path = "math/exp2f.rs"] pub mod j1f;
pub mod exp2f; pub mod jn;
#[path = "math/exp10.rs"] pub mod jnf;
pub mod exp10; pub mod ldexp;
#[path = "math/exp10f.rs"] pub mod ldexpf;
pub mod exp10f; pub mod lgamma;
#[path = "math/expf.rs"] pub mod lgamma_r;
pub mod expf; pub mod lgammaf;
#[path = "math/expm1.rs"] pub mod lgammaf_r;
pub mod expm1; pub mod log;
#[path = "math/expm1f.rs"] pub mod log1p;
pub mod expm1f; pub mod log1pf;
#[path = "math/fabs.rs"] pub mod log2;
pub mod fabs; pub mod log2f;
#[path = "math/fabsf.rs"] pub mod log10;
pub mod fabsf; pub mod log10f;
#[path = "math/fdim.rs"] pub mod logf;
pub mod fdim; pub mod modf;
#[path = "math/fdimf.rs"] pub mod modff;
pub mod fdimf; pub mod nextafter;
#[path = "math/floor.rs"] pub mod nextafterf;
pub mod floor; pub mod pow;
#[path = "math/floorf.rs"] pub mod powf;
pub mod floorf; pub mod remainder;
#[path = "math/fma.rs"] pub mod remainderf;
pub mod fma; pub mod remquo;
#[path = "math/fmaf.rs"] pub mod remquof;
pub mod fmaf; pub mod round;
#[path = "math/fmax.rs"] pub mod roundf;
pub mod fmax; pub mod scalbn;
#[path = "math/fmaxf.rs"] pub mod scalbnf;
pub mod fmaxf; pub mod sin;
#[path = "math/fmin.rs"] pub mod sincos;
pub mod fmin; pub mod sincosf;
#[path = "math/fminf.rs"] pub mod sinf;
pub mod fminf; pub mod sinh;
#[path = "math/fmod.rs"] pub mod sinhf;
pub mod fmod; pub mod sqrt;
#[path = "math/fmodf.rs"] pub mod sqrtf;
pub mod fmodf; pub mod tan;
#[path = "math/frexp.rs"] pub mod tanf;
pub mod frexp; pub mod tanh;
#[path = "math/frexpf.rs"] pub mod tanhf;
pub mod frexpf; pub mod tgamma;
#[path = "math/hypot.rs"] pub mod tgammaf;
pub mod hypot; pub mod trunc;
#[path = "math/hypotf.rs"] pub mod truncf;
pub mod hypotf; pub mod y0;
#[path = "math/ilogb.rs"] pub mod y0f;
pub mod ilogb; pub mod y1;
#[path = "math/ilogbf.rs"] pub mod y1f;
pub mod ilogbf; pub mod yn;
#[path = "math/j0.rs"] pub mod ynf;
pub mod j0; }
#[path = "math/j0f.rs"]
pub mod j0f;
#[path = "math/j1.rs"]
pub mod j1;
#[path = "math/j1f.rs"]
pub mod j1f;
#[path = "math/jn.rs"]
pub mod jn;
#[path = "math/jnf.rs"]
pub mod jnf;
#[path = "math/ldexp.rs"]
pub mod ldexp;
#[path = "math/ldexpf.rs"]
pub mod ldexpf;
#[path = "math/lgamma.rs"]
pub mod lgamma;
#[path = "math/lgamma_r.rs"]
pub mod lgamma_r;
#[path = "math/lgammaf.rs"]
pub mod lgammaf;
#[path = "math/lgammaf_r.rs"]
pub mod lgammaf_r;
#[path = "math/log.rs"]
pub mod log;
#[path = "math/log1p.rs"]
pub mod log1p;
#[path = "math/log1pf.rs"]
pub mod log1pf;
#[path = "math/log2.rs"]
pub mod log2;
#[path = "math/log2f.rs"]
pub mod log2f;
#[path = "math/log10.rs"]
pub mod log10;
#[path = "math/log10f.rs"]
pub mod log10f;
#[path = "math/logf.rs"]
pub mod logf;
#[path = "math/modf.rs"]
pub mod modf;
#[path = "math/modff.rs"]
pub mod modff;
#[path = "math/nextafter.rs"]
pub mod nextafter;
#[path = "math/nextafterf.rs"]
pub mod nextafterf;
#[path = "math/pow.rs"]
pub mod pow;
#[path = "math/powf.rs"]
pub mod powf;
#[path = "math/remainder.rs"]
pub mod remainder;
#[path = "math/remainderf.rs"]
pub mod remainderf;
#[path = "math/remquo.rs"]
pub mod remquo;
#[path = "math/remquof.rs"]
pub mod remquof;
#[path = "math/round.rs"]
pub mod round;
#[path = "math/roundf.rs"]
pub mod roundf;
#[path = "math/scalbn.rs"]
pub mod scalbn;
#[path = "math/scalbnf.rs"]
pub mod scalbnf;
#[path = "math/sin.rs"]
pub mod sin;
#[path = "math/sincos.rs"]
pub mod sincos;
#[path = "math/sincosf.rs"]
pub mod sincosf;
#[path = "math/sinf.rs"]
pub mod sinf;
#[path = "math/sinh.rs"]
pub mod sinh;
#[path = "math/sinhf.rs"]
pub mod sinhf;
#[path = "math/sqrt.rs"]
pub mod sqrt;
#[path = "math/sqrtf.rs"]
pub mod sqrtf;
#[path = "math/tan.rs"]
pub mod tan;
#[path = "math/tanf.rs"]
pub mod tanf;
#[path = "math/tanh.rs"]
pub mod tanh;
#[path = "math/tanhf.rs"]
pub mod tanhf;
#[path = "math/tgamma.rs"]
pub mod tgamma;
#[path = "math/tgammaf.rs"]
pub mod tgammaf;
#[path = "math/trunc.rs"]
pub mod trunc;
#[path = "math/truncf.rs"]
pub mod truncf;
#[path = "math/y0.rs"]
pub mod y0;
#[path = "math/y0f.rs"]
pub mod y0f;
#[path = "math/y1.rs"]
pub mod y1;
#[path = "math/y1f.rs"]
pub mod y1f;
#[path = "math/yn.rs"]
pub mod yn;
#[path = "math/ynf.rs"]
pub mod ynf;