Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

More renames #18

Merged
merged 9 commits into from
Apr 25, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions cli/spiff/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ target_include_directories(${PROJECT_NAME}
${CMAKE_CURRENT_SOURCE_DIR}/../../src/intmath
${CMAKE_CURRENT_SOURCE_DIR}/../../src/polynomials
${CMAKE_CURRENT_SOURCE_DIR}/../../src/rationals
${CMAKE_CURRENT_SOURCE_DIR}/../../src/qcyclo
${CMAKE_CURRENT_SOURCE_DIR}/../../src/q_cyclo
${CMAKE_CURRENT_SOURCE_DIR}/../../src/random
${CMAKE_CURRENT_SOURCE_DIR}/../../src/factorization
${CMAKE_CURRENT_SOURCE_DIR}/../../src/units
Expand All @@ -52,7 +52,7 @@ target_link_libraries(${PROJECT_NAME} PRIVATE
intmath
polynomials
rationals
qcyclo
q_cyclo
random
factorization
units
Expand Down
2 changes: 1 addition & 1 deletion cli/spiff/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ spffl::rationals::f2n_polyrat_t f2npr F_{2^n}(y) Quotient fiel
//
spffl::polynomials::fpn_poly_t fpnp F_{p^n}[y] Ring
spffl::polynomials::fpn_polymod_t fpnpm F_{p^n}[y]/<g(y)> Residue field
fpnpolyrat_t fpnpr F_{p^n}(y) Quotient field
fpn_polyrat_t fpnpr F_{p^n}(y) Quotient field

----------------------------------------------------------------
Rings:
Expand Down
22 changes: 11 additions & 11 deletions cli/spiff/f2_handlers.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -7,18 +7,18 @@
#include "int_random.h"
#include "tmatrix.h"

int f2op_main(int argc, char **argv, usage_t *pusage) {
int f2_op_main(int argc, char **argv, usage_t *pusage) {
spffl::cliparser::cmd_line_parse<spffl::bits::bit_t>(
argc - 1, argv + 1, spffl::bits::bit_t(0), spffl::bits::bit_t(1));
return 0;
}

void f2random_usage(char *argv0) {
void f2_random_usage(char *argv0) {
std::cerr << "Usage: " << argv0 << " [count]\n";
exit(1);
}

int f2random_main(int argc, char **argv, usage_t *pusage) {
int f2_random_main(int argc, char **argv, usage_t *pusage) {
int count = 1;

if ((argc != 1) && (argc != 2))
Expand All @@ -34,24 +34,24 @@ int f2random_main(int argc, char **argv, usage_t *pusage) {
return 0;
}

int f2matop_main(int argc, char **argv, usage_t *pusage) {
int f2_mat_op_main(int argc, char **argv, usage_t *pusage) {
spffl::cliparser::cmd_line_mat_parse<spffl::bits::bit_t>(
argc - 1, argv + 1, spffl::bits::bit_t(0), spffl::bits::bit_t(1));
return 0;
}

int f2vecop_main(int argc, char **argv, usage_t *pusage) {
int f2_vec_op_main(int argc, char **argv, usage_t *pusage) {
spffl::cliparser::cmd_line_vec_parse<spffl::bits::bit_t>(
argc - 1, argv + 1, spffl::bits::bit_t(0), spffl::bits::bit_t(1));
return 0;
}

void f2matchpol_usage(char *argv0) {
void f2_mat_ch_pol_usage(char *argv0) {
std::cerr << "Usage: " << argv0 << " {goes here}\n";
exit(1);
}

int f2matchpol_main(int argc, char **argv, usage_t *pusage) {
int f2_mat_ch_pol_main(int argc, char **argv, usage_t *pusage) {
tmatrix<spffl::bits::bit_t> A;

if (argc != 2)
Expand All @@ -65,12 +65,12 @@ int f2matchpol_main(int argc, char **argv, usage_t *pusage) {
return 0;
}

void f2matord_usage(char *argv0) {
void f2_mat_ord_usage(char *argv0) {
std::cerr << "Usage: " << argv0 << " {goes here}\n";
exit(1);
}

int f2matord_main(int argc, char **argv, usage_t *pusage) {
int f2_mat_ord_main(int argc, char **argv, usage_t *pusage) {
tmatrix<spffl::bits::bit_t> A;

if (argc != 1)
Expand Down Expand Up @@ -104,12 +104,12 @@ int f2matord_main(int argc, char **argv, usage_t *pusage) {
return 0;
}

void f2matrandom_usage(char *argv0) {
void f2_mat_random_usage(char *argv0) {
std::cerr << "Usage: " << argv0 << " {# rows} {# cols}\n";
exit(1);
}

int f2matrandom_main(int argc, char **argv, usage_t *pusage) {
int f2_mat_random_main(int argc, char **argv, usage_t *pusage) {
int nr, nc;

if (argc != 3)
Expand Down
22 changes: 11 additions & 11 deletions cli/spiff/f2_handlers.h
Original file line number Diff line number Diff line change
Expand Up @@ -3,22 +3,22 @@

#include "handlers.h"

int f2op_main(int argc, char **argv, usage_t *pusage);
int f2_op_main(int argc, char **argv, usage_t *pusage);

void f2random_usage(char *argv0);
int f2random_main(int argc, char **argv, usage_t *pusage);
void f2_random_usage(char *argv0);
int f2_random_main(int argc, char **argv, usage_t *pusage);

int f2matop_main(int argc, char **argv, usage_t *pusage);
int f2_mat_op_main(int argc, char **argv, usage_t *pusage);

int f2vecop_main(int argc, char **argv, usage_t *pusage);
int f2_vec_op_main(int argc, char **argv, usage_t *pusage);

void f2matchpol_usage(char *argv0);
int f2matchpol_main(int argc, char **argv, usage_t *pusage);
void f2_mat_ch_pol_usage(char *argv0);
int f2_mat_ch_pol_main(int argc, char **argv, usage_t *pusage);

void f2matord_usage(char *argv0);
int f2matord_main(int argc, char **argv, usage_t *pusage);
void f2_mat_ord_usage(char *argv0);
int f2_mat_ord_main(int argc, char **argv, usage_t *pusage);

void f2matrandom_usage(char *argv0);
int f2matrandom_main(int argc, char **argv, usage_t *pusage);
void f2_mat_random_usage(char *argv0);
int f2_mat_random_main(int argc, char **argv, usage_t *pusage);

#endif // F2_HANDLERS_H
Loading