Skip to content

Commit

Permalink
refactor(generator): rename gen module to generate
Browse files Browse the repository at this point in the history
  • Loading branch information
eduardosm committed Dec 8, 2024
1 parent be60a0c commit a171bea
Show file tree
Hide file tree
Showing 40 changed files with 65 additions and 65 deletions.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
130 changes: 65 additions & 65 deletions generator/src/main.rs
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@

use std::process::ExitCode;

mod gen;
mod generate;
mod julia;
mod sollya;

Expand All @@ -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:?}");
Expand Down

0 comments on commit a171bea

Please sign in to comment.