diff --git a/generator/src/gen/common/mod.rs b/generator/src/generate/common/mod.rs similarity index 100% rename from generator/src/gen/common/mod.rs rename to generator/src/generate/common/mod.rs diff --git a/generator/src/gen/common/reduce_pi_2_large.rs b/generator/src/generate/common/reduce_pi_2_large.rs similarity index 100% rename from generator/src/gen/common/reduce_pi_2_large.rs rename to generator/src/generate/common/reduce_pi_2_large.rs diff --git a/generator/src/gen/f32/asin_acos.rs b/generator/src/generate/f32/asin_acos.rs similarity index 100% rename from generator/src/gen/f32/asin_acos.rs rename to generator/src/generate/f32/asin_acos.rs diff --git a/generator/src/gen/f32/atan.rs b/generator/src/generate/f32/atan.rs similarity index 100% rename from generator/src/gen/f32/atan.rs rename to generator/src/generate/f32/atan.rs diff --git a/generator/src/gen/f32/cbrt.rs b/generator/src/generate/f32/cbrt.rs similarity index 100% rename from generator/src/gen/f32/cbrt.rs rename to generator/src/generate/f32/cbrt.rs diff --git a/generator/src/gen/f32/div_pi.rs b/generator/src/generate/f32/div_pi.rs similarity index 100% rename from generator/src/gen/f32/div_pi.rs rename to generator/src/generate/f32/div_pi.rs diff --git a/generator/src/gen/f32/exp.rs b/generator/src/generate/f32/exp.rs similarity index 100% rename from generator/src/gen/f32/exp.rs rename to generator/src/generate/f32/exp.rs diff --git a/generator/src/gen/f32/exp10.rs b/generator/src/generate/f32/exp10.rs similarity index 100% rename from generator/src/gen/f32/exp10.rs rename to generator/src/generate/f32/exp10.rs diff --git a/generator/src/gen/f32/exp2.rs b/generator/src/generate/f32/exp2.rs similarity index 100% rename from generator/src/gen/f32/exp2.rs rename to generator/src/generate/f32/exp2.rs diff --git a/generator/src/gen/f32/gamma.rs b/generator/src/generate/f32/gamma.rs similarity index 100% rename from generator/src/gen/f32/gamma.rs rename to generator/src/generate/f32/gamma.rs diff --git a/generator/src/gen/f32/log.rs b/generator/src/generate/f32/log.rs similarity index 100% rename from generator/src/gen/f32/log.rs rename to generator/src/generate/f32/log.rs diff --git a/generator/src/gen/f32/log10.rs b/generator/src/generate/f32/log10.rs similarity index 100% rename from generator/src/gen/f32/log10.rs rename to generator/src/generate/f32/log10.rs diff --git a/generator/src/gen/f32/log2.rs b/generator/src/generate/f32/log2.rs similarity index 100% rename from generator/src/gen/f32/log2.rs rename to generator/src/generate/f32/log2.rs diff --git a/generator/src/gen/f32/mod.rs b/generator/src/generate/f32/mod.rs similarity index 100% rename from generator/src/gen/f32/mod.rs rename to generator/src/generate/f32/mod.rs diff --git a/generator/src/gen/f32/rad_to_deg.rs b/generator/src/generate/f32/rad_to_deg.rs similarity index 100% rename from generator/src/gen/f32/rad_to_deg.rs rename to generator/src/generate/f32/rad_to_deg.rs diff --git a/generator/src/gen/f32/reduce_90_deg.rs b/generator/src/generate/f32/reduce_90_deg.rs similarity index 100% rename from generator/src/gen/f32/reduce_90_deg.rs rename to generator/src/generate/f32/reduce_90_deg.rs diff --git a/generator/src/gen/f32/reduce_half_mul_pi.rs b/generator/src/generate/f32/reduce_half_mul_pi.rs similarity index 100% rename from generator/src/gen/f32/reduce_half_mul_pi.rs rename to generator/src/generate/f32/reduce_half_mul_pi.rs diff --git a/generator/src/gen/f32/reduce_pi_2.rs b/generator/src/generate/f32/reduce_pi_2.rs similarity index 100% rename from generator/src/gen/f32/reduce_pi_2.rs rename to generator/src/generate/f32/reduce_pi_2.rs diff --git a/generator/src/gen/f32/sin_cos.rs b/generator/src/generate/f32/sin_cos.rs similarity index 100% rename from generator/src/gen/f32/sin_cos.rs rename to generator/src/generate/f32/sin_cos.rs diff --git a/generator/src/gen/f32/tan.rs b/generator/src/generate/f32/tan.rs similarity index 100% rename from generator/src/gen/f32/tan.rs rename to generator/src/generate/f32/tan.rs diff --git a/generator/src/gen/f64/asin_acos.rs b/generator/src/generate/f64/asin_acos.rs similarity index 100% rename from generator/src/gen/f64/asin_acos.rs rename to generator/src/generate/f64/asin_acos.rs diff --git a/generator/src/gen/f64/atan.rs b/generator/src/generate/f64/atan.rs similarity index 100% rename from generator/src/gen/f64/atan.rs rename to generator/src/generate/f64/atan.rs diff --git a/generator/src/gen/f64/cbrt.rs b/generator/src/generate/f64/cbrt.rs similarity index 100% rename from generator/src/gen/f64/cbrt.rs rename to generator/src/generate/f64/cbrt.rs diff --git a/generator/src/gen/f64/div_pi.rs b/generator/src/generate/f64/div_pi.rs similarity index 100% rename from generator/src/gen/f64/div_pi.rs rename to generator/src/generate/f64/div_pi.rs diff --git a/generator/src/gen/f64/exp.rs b/generator/src/generate/f64/exp.rs similarity index 100% rename from generator/src/gen/f64/exp.rs rename to generator/src/generate/f64/exp.rs diff --git a/generator/src/gen/f64/exp10.rs b/generator/src/generate/f64/exp10.rs similarity index 100% rename from generator/src/gen/f64/exp10.rs rename to generator/src/generate/f64/exp10.rs diff --git a/generator/src/gen/f64/exp2.rs b/generator/src/generate/f64/exp2.rs similarity index 100% rename from generator/src/gen/f64/exp2.rs rename to generator/src/generate/f64/exp2.rs diff --git a/generator/src/gen/f64/gamma.rs b/generator/src/generate/f64/gamma.rs similarity index 100% rename from generator/src/gen/f64/gamma.rs rename to generator/src/generate/f64/gamma.rs diff --git a/generator/src/gen/f64/log.rs b/generator/src/generate/f64/log.rs similarity index 100% rename from generator/src/gen/f64/log.rs rename to generator/src/generate/f64/log.rs diff --git a/generator/src/gen/f64/log10.rs b/generator/src/generate/f64/log10.rs similarity index 100% rename from generator/src/gen/f64/log10.rs rename to generator/src/generate/f64/log10.rs diff --git a/generator/src/gen/f64/log2.rs b/generator/src/generate/f64/log2.rs similarity index 100% rename from generator/src/gen/f64/log2.rs rename to generator/src/generate/f64/log2.rs diff --git a/generator/src/gen/f64/mod.rs b/generator/src/generate/f64/mod.rs similarity index 100% rename from generator/src/gen/f64/mod.rs rename to generator/src/generate/f64/mod.rs diff --git a/generator/src/gen/f64/rad_to_deg.rs b/generator/src/generate/f64/rad_to_deg.rs similarity index 100% rename from generator/src/gen/f64/rad_to_deg.rs rename to generator/src/generate/f64/rad_to_deg.rs diff --git a/generator/src/gen/f64/reduce_90_deg.rs b/generator/src/generate/f64/reduce_90_deg.rs similarity index 100% rename from generator/src/gen/f64/reduce_90_deg.rs rename to generator/src/generate/f64/reduce_90_deg.rs diff --git a/generator/src/gen/f64/reduce_half_mul_pi.rs b/generator/src/generate/f64/reduce_half_mul_pi.rs similarity index 100% rename from generator/src/gen/f64/reduce_half_mul_pi.rs rename to generator/src/generate/f64/reduce_half_mul_pi.rs diff --git a/generator/src/gen/f64/reduce_pi_2.rs b/generator/src/generate/f64/reduce_pi_2.rs similarity index 100% rename from generator/src/gen/f64/reduce_pi_2.rs rename to generator/src/generate/f64/reduce_pi_2.rs diff --git a/generator/src/gen/f64/sin_cos.rs b/generator/src/generate/f64/sin_cos.rs similarity index 100% rename from generator/src/gen/f64/sin_cos.rs rename to generator/src/generate/f64/sin_cos.rs diff --git a/generator/src/gen/f64/tan.rs b/generator/src/generate/f64/tan.rs similarity index 100% rename from generator/src/gen/f64/tan.rs rename to generator/src/generate/f64/tan.rs diff --git a/generator/src/gen/mod.rs b/generator/src/generate/mod.rs similarity index 100% rename from generator/src/gen/mod.rs rename to generator/src/generate/mod.rs diff --git a/generator/src/main.rs b/generator/src/main.rs index 54094a3..8d40715 100644 --- a/generator/src/main.rs +++ b/generator/src/main.rs @@ -9,7 +9,7 @@ use std::process::ExitCode; -mod gen; +mod generate; mod julia; mod sollya; @@ -19,77 +19,77 @@ fn main() -> ExitCode { match &*arg.to_string_lossy() { // common "common::reduce_pi_2_large::FRAC_2_PI_LARGE" => { - gen::common::reduce_pi_2_large::gen_frac_2_pi_large(); + generate::common::reduce_pi_2_large::gen_frac_2_pi_large(); } "common::reduce_pi_2_large::FRAC_PI_2_MEDIUM" => { - gen::common::reduce_pi_2_large::gen_frac_pi_2_medium(); + generate::common::reduce_pi_2_large::gen_frac_pi_2_medium(); } // f32 - "f32::consts" => gen::f32::gen_consts(), - "f32::cbrt::consts" => gen::f32::cbrt::gen_consts(), - "f32::cbrt::inv_cbrt_poly" => gen::f32::cbrt::gen_inv_cbrt_poly(), - "f32::div_pi::consts" => gen::f32::div_pi::gen_consts(), - "f32::exp::consts" => gen::f32::exp::gen_consts(), - "f32::exp::exp_special_poly" => gen::f32::exp::gen_exp_special_poly(), - "f32::exp::exp_m1_special_poly" => gen::f32::exp::gen_exp_m1_special_poly(), - "f32::exp2::consts" => gen::f32::exp2::gen_consts(), - "f32::exp10::consts" => gen::f32::exp10::gen_consts(), - "f32::gamma::consts" => gen::f32::gamma::gen_consts(), - "f32::gamma::lgamma_poly_1" => gen::f32::gamma::gen_lgamma_poly_1(), - "f32::gamma::lgamma_poly_2" => gen::f32::gamma::gen_lgamma_poly_2(), - "f32::gamma::special_poly" => gen::f32::gamma::gen_special_poly(), - "f32::log::consts" => gen::f32::log::gen_consts(), - "f32::log::log_special_poly" => gen::f32::log::gen_log_special_poly(), - "f32::log::log_special_poly_ex" => gen::f32::log::gen_log_special_poly_ex(), - "f32::log2::consts" => gen::f32::log2::gen_consts(), - "f32::log10::consts" => gen::f32::log10::gen_consts(), - "f32::rad_to_deg::consts" => gen::f32::rad_to_deg::gen_consts(), - "f32::reduce_90_deg::consts" => gen::f32::reduce_90_deg::gen_consts(), - "f32::reduce_half_mul_pi::consts" => gen::f32::reduce_half_mul_pi::gen_consts(), - "f32::reduce_pi_2::consts" => gen::f32::reduce_pi_2::gen_consts(), - "f32::sin_cos::consts" => gen::f32::sin_cos::gen_consts(), - "f32::sin_cos::sin_poly" => gen::f32::sin_cos::gen_sin_poly(), - "f32::sin_cos::sin_poly_ex" => gen::f32::sin_cos::gen_sin_poly_ex(), - "f32::sin_cos::cos_poly" => gen::f32::sin_cos::gen_cos_poly(), - "f32::tan::tan_poly" => gen::f32::tan::gen_tan_poly(), - "f32::asin_acos::consts" => gen::f32::asin_acos::gen_consts(), - "f32::asin_acos::asin_poly" => gen::f32::asin_acos::gen_asin_poly(), - "f32::atan::consts" => gen::f32::atan::gen_consts(), - "f32::atan::atan_poly" => gen::f32::atan::gen_atan_poly(), + "f32::consts" => generate::f32::gen_consts(), + "f32::cbrt::consts" => generate::f32::cbrt::gen_consts(), + "f32::cbrt::inv_cbrt_poly" => generate::f32::cbrt::gen_inv_cbrt_poly(), + "f32::div_pi::consts" => generate::f32::div_pi::gen_consts(), + "f32::exp::consts" => generate::f32::exp::gen_consts(), + "f32::exp::exp_special_poly" => generate::f32::exp::gen_exp_special_poly(), + "f32::exp::exp_m1_special_poly" => generate::f32::exp::gen_exp_m1_special_poly(), + "f32::exp2::consts" => generate::f32::exp2::gen_consts(), + "f32::exp10::consts" => generate::f32::exp10::gen_consts(), + "f32::gamma::consts" => generate::f32::gamma::gen_consts(), + "f32::gamma::lgamma_poly_1" => generate::f32::gamma::gen_lgamma_poly_1(), + "f32::gamma::lgamma_poly_2" => generate::f32::gamma::gen_lgamma_poly_2(), + "f32::gamma::special_poly" => generate::f32::gamma::gen_special_poly(), + "f32::log::consts" => generate::f32::log::gen_consts(), + "f32::log::log_special_poly" => generate::f32::log::gen_log_special_poly(), + "f32::log::log_special_poly_ex" => generate::f32::log::gen_log_special_poly_ex(), + "f32::log2::consts" => generate::f32::log2::gen_consts(), + "f32::log10::consts" => generate::f32::log10::gen_consts(), + "f32::rad_to_deg::consts" => generate::f32::rad_to_deg::gen_consts(), + "f32::reduce_90_deg::consts" => generate::f32::reduce_90_deg::gen_consts(), + "f32::reduce_half_mul_pi::consts" => generate::f32::reduce_half_mul_pi::gen_consts(), + "f32::reduce_pi_2::consts" => generate::f32::reduce_pi_2::gen_consts(), + "f32::sin_cos::consts" => generate::f32::sin_cos::gen_consts(), + "f32::sin_cos::sin_poly" => generate::f32::sin_cos::gen_sin_poly(), + "f32::sin_cos::sin_poly_ex" => generate::f32::sin_cos::gen_sin_poly_ex(), + "f32::sin_cos::cos_poly" => generate::f32::sin_cos::gen_cos_poly(), + "f32::tan::tan_poly" => generate::f32::tan::gen_tan_poly(), + "f32::asin_acos::consts" => generate::f32::asin_acos::gen_consts(), + "f32::asin_acos::asin_poly" => generate::f32::asin_acos::gen_asin_poly(), + "f32::atan::consts" => generate::f32::atan::gen_consts(), + "f32::atan::atan_poly" => generate::f32::atan::gen_atan_poly(), // f64 - "f64::consts" => gen::f64::gen_consts(), - "f64::cbrt::consts" => gen::f64::cbrt::gen_consts(), - "f64::cbrt::inv_cbrt_poly" => gen::f64::cbrt::gen_inv_cbrt_poly(), - "f64::div_pi::consts" => gen::f64::div_pi::gen_consts(), - "f64::exp::consts" => gen::f64::exp::gen_consts(), - "f64::exp::exp_special_poly" => gen::f64::exp::gen_exp_special_poly(), - "f64::exp::exp_m1_special_poly" => gen::f64::exp::gen_exp_m1_special_poly(), - "f64::exp2::consts" => gen::f64::exp2::gen_consts(), - "f64::exp10::consts" => gen::f64::exp10::gen_consts(), - "f64::gamma::consts" => gen::f64::gamma::gen_consts(), - "f64::gamma::lgamma_poly_1" => gen::f64::gamma::gen_lgamma_poly_1(), - "f64::gamma::lgamma_poly_2" => gen::f64::gamma::gen_lgamma_poly_2(), - "f64::gamma::special_poly" => gen::f64::gamma::gen_special_poly(), - "f64::log::consts" => gen::f64::log::gen_consts(), - "f64::log::log_special_poly" => gen::f64::log::gen_log_special_poly(), - "f64::log::log_special_poly_ex" => gen::f64::log::gen_log_special_poly_ex(), - "f64::log2::consts" => gen::f64::log2::gen_consts(), - "f64::log10::consts" => gen::f64::log10::gen_consts(), - "f64::rad_to_deg::consts" => gen::f64::rad_to_deg::gen_consts(), - "f64::reduce_90_deg::consts" => gen::f64::reduce_90_deg::gen_consts(), - "f64::reduce_half_mul_pi::consts" => gen::f64::reduce_half_mul_pi::gen_consts(), - "f64::reduce_pi_2::consts" => gen::f64::reduce_pi_2::gen_consts(), - "f64::sin_cos::consts" => gen::f64::sin_cos::gen_consts(), - "f64::sin_cos::sin_poly" => gen::f64::sin_cos::gen_sin_poly(), - "f64::sin_cos::sin_poly_ex" => gen::f64::sin_cos::gen_sin_poly_ex(), - "f64::sin_cos::cos_poly" => gen::f64::sin_cos::gen_cos_poly(), - "f64::tan::tan_poly" => gen::f64::tan::gen_tan_poly(), - "f64::asin_acos::consts" => gen::f64::asin_acos::gen_consts(), - "f64::asin_acos::asin_poly" => gen::f64::asin_acos::gen_asin_poly(), - "f64::atan::consts" => gen::f64::atan::gen_consts(), - "f64::atan::atan_poly" => gen::f64::atan::gen_atan_poly(), + "f64::consts" => generate::f64::gen_consts(), + "f64::cbrt::consts" => generate::f64::cbrt::gen_consts(), + "f64::cbrt::inv_cbrt_poly" => generate::f64::cbrt::gen_inv_cbrt_poly(), + "f64::div_pi::consts" => generate::f64::div_pi::gen_consts(), + "f64::exp::consts" => generate::f64::exp::gen_consts(), + "f64::exp::exp_special_poly" => generate::f64::exp::gen_exp_special_poly(), + "f64::exp::exp_m1_special_poly" => generate::f64::exp::gen_exp_m1_special_poly(), + "f64::exp2::consts" => generate::f64::exp2::gen_consts(), + "f64::exp10::consts" => generate::f64::exp10::gen_consts(), + "f64::gamma::consts" => generate::f64::gamma::gen_consts(), + "f64::gamma::lgamma_poly_1" => generate::f64::gamma::gen_lgamma_poly_1(), + "f64::gamma::lgamma_poly_2" => generate::f64::gamma::gen_lgamma_poly_2(), + "f64::gamma::special_poly" => generate::f64::gamma::gen_special_poly(), + "f64::log::consts" => generate::f64::log::gen_consts(), + "f64::log::log_special_poly" => generate::f64::log::gen_log_special_poly(), + "f64::log::log_special_poly_ex" => generate::f64::log::gen_log_special_poly_ex(), + "f64::log2::consts" => generate::f64::log2::gen_consts(), + "f64::log10::consts" => generate::f64::log10::gen_consts(), + "f64::rad_to_deg::consts" => generate::f64::rad_to_deg::gen_consts(), + "f64::reduce_90_deg::consts" => generate::f64::reduce_90_deg::gen_consts(), + "f64::reduce_half_mul_pi::consts" => generate::f64::reduce_half_mul_pi::gen_consts(), + "f64::reduce_pi_2::consts" => generate::f64::reduce_pi_2::gen_consts(), + "f64::sin_cos::consts" => generate::f64::sin_cos::gen_consts(), + "f64::sin_cos::sin_poly" => generate::f64::sin_cos::gen_sin_poly(), + "f64::sin_cos::sin_poly_ex" => generate::f64::sin_cos::gen_sin_poly_ex(), + "f64::sin_cos::cos_poly" => generate::f64::sin_cos::gen_cos_poly(), + "f64::tan::tan_poly" => generate::f64::tan::gen_tan_poly(), + "f64::asin_acos::consts" => generate::f64::asin_acos::gen_consts(), + "f64::asin_acos::asin_poly" => generate::f64::asin_acos::gen_asin_poly(), + "f64::atan::consts" => generate::f64::atan::gen_consts(), + "f64::atan::atan_poly" => generate::f64::atan::gen_atan_poly(), arg => { eprintln!("invalid argument {arg:?}");