Skip to content

Commit

Permalink
Split up spiff on-line help by ring/field description (#42)
Browse files Browse the repository at this point in the history
* Split up spiff on-line help by ring/field description

* neaten

* Add 2023
  • Loading branch information
johnkerl committed May 1, 2023
1 parent 360bd34 commit 0ecdd28
Show file tree
Hide file tree
Showing 134 changed files with 412 additions and 347 deletions.
28 changes: 28 additions & 0 deletions LICENSE.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
Copyright (c) 2015- John Kerl

All rights reserved.

Redistribution and use in source and binary forms, with or without
modification, are permitted provided that the following conditions are met:

* Redistributions of source code must retain the above copyright notice, this
list of conditions and the following disclaimer.

* Redistributions in binary form must reproduce the above copyright notice,
this list of conditions and the following disclaimer in the documentation
and/or other materials provided with the distribution.

This software is provided by the copyright holders and contributors "as is" and
any express or implied warranties, including, but not limited to, the implied
warranties of merchantability and fitness for a particular purpose are
disclaimed. In no event shall the copyright holder or contributors be liable
for any direct, indirect, incidental, special, exemplary, or consequential
damages (including, but not limited to, procurement of substitute goods or
services; loss of use, data, or profits; or business interruption) however
caused and on any theory of liability, whether in contract, strict liability,
or tort (including negligence or otherwise) arising in any way out of the use
of this software, even if advised of the possibility of such damage.

I am providing code in this repository to you under an open-source license.
Because this is my personal repository, the license you receive to my code is
from me and not from my employer.
6 changes: 5 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,8 @@
For documentation please see https://github.com/johnkerl/spffl/wiki
# SPFFL

SPFFL (pronounced _spiffle_) is a small-prime finite-field library, where small means 32 bits or less. Polynomials may have arbitrary degree, as limited by machine resources. Residue field and quotient fields are supported. In addition to the C++ library, there is a command-line tool, named `spiff`, for convenient interactive use.

For more information please see the **[SPFFL wiki page](https://github.com/johnkerl/spffl/wiki/SPFFL-documentation)**.

# Setup disclaimer

Expand Down
2 changes: 1 addition & 1 deletion cli/misc/misc_main.cpp
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
// ================================================================
// Copyright (c) 2004 John Kerl.
// Copyright (c) 2004, 2023 John Kerl.
// kerl.john.r@gmail.com
// Please see LICENSE.txt.
// ================================================================
Expand Down
15 changes: 0 additions & 15 deletions cli/spiff/build/CMakeFiles/3.24.2/CMakeSystem.cmake

This file was deleted.

1 change: 0 additions & 1 deletion cli/spiff/build/CMakeFiles/CMakeOutput.log

This file was deleted.

2 changes: 1 addition & 1 deletion cli/spiff/f2_poly_handlers.cpp
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
// ================================================================
// Copyright (c) 2004 John Kerl.
// Copyright (c) 2004, 2023 John Kerl.
// kerl.john.r@gmail.com
// Please see LICENSE.txt.
// ================================================================
Expand Down
2 changes: 1 addition & 1 deletion cli/spiff/f2_poly_handlers.h
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
// ================================================================
// Copyright (c) 2004 John Kerl.
// Copyright (c) 2004, 2023 John Kerl.
// kerl.john.r@gmail.com
// Please see LICENSE.txt.
// ================================================================
Expand Down
450 changes: 248 additions & 202 deletions cli/spiff/spiff_main.cpp

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion cli/spiff/z_handlers.cpp
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
// ================================================================
// Copyright (c) 2004 John Kerl.
// Copyright (c) 2004, 2023 John Kerl.
// kerl.john.r@gmail.com
// Please see LICENSE.txt.
// ================================================================
Expand Down
2 changes: 1 addition & 1 deletion cli/spiff/z_handlers.h
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
// ================================================================
// Copyright (c) 2004 John Kerl.
// Copyright (c) 2004, 2023 John Kerl.
// kerl.john.r@gmail.com
// Please see LICENSE.txt.
// ================================================================
Expand Down
2 changes: 1 addition & 1 deletion pre-cmake/classes/teiginfo.h
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
// ================================================================
// Copyright (c) 2004 John Kerl.
// Copyright (c) 2004, 2023 John Kerl.
// kerl.john.r@gmail.com
// Please see LICENSE.txt.
// ================================================================
Expand Down
2 changes: 1 addition & 1 deletion pre-cmake/classes/tmvpoly.h
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
// ================================================================
// Copyright (c) 2004 John Kerl.
// Copyright (c) 2004, 2023 John Kerl.
// kerl.john.r@gmail.com
// Please see LICENSE.txt.
// ================================================================
Expand Down
2 changes: 1 addition & 1 deletion pre-cmake/classes/tmvrat.h
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
// ================================================================
// Copyright (c) 2004 John Kerl.
// Copyright (c) 2004, 2023 John Kerl.
// kerl.john.r@gmail.com
// Please see LICENSE.txt.
// ================================================================
Expand Down
2 changes: 1 addition & 1 deletion pre-cmake/tools/chpols-2-4-4.cpp
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
// ================================================================
// Copyright (c) 2004 John Kerl.
// Copyright (c) 2004, 2023 John Kerl.
// kerl.john.r@gmail.com
// Please see LICENSE.txt.
// ================================================================
Expand Down
2 changes: 1 addition & 1 deletion pre-cmake/tools/f2pmchart.cpp
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
// ================================================================
// Copyright (c) 2004 John Kerl.
// Copyright (c) 2004, 2023 John Kerl.
// kerl.john.r@gmail.com
// Please see LICENSE.txt.
// ================================================================
Expand Down
2 changes: 1 addition & 1 deletion pre-cmake/tools/fppmchart.cpp
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
// ================================================================
// Copyright (c) 2004 John Kerl.
// Copyright (c) 2004, 2023 John Kerl.
// kerl.john.r@gmail.com
// Please see LICENSE.txt.
// ================================================================
Expand Down
2 changes: 1 addition & 1 deletion pre-cmake/tools/single.cpp
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
// ================================================================
// Copyright (c) 2004 John Kerl.
// Copyright (c) 2004, 2023 John Kerl.
// kerl.john.r@gmail.com
// Please see LICENSE.txt.
// ================================================================
Expand Down
2 changes: 1 addition & 1 deletion pre-cmake/tools/solve_unique.cpp
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
// ================================================================
// Copyright (c) 2004 John Kerl.
// Copyright (c) 2004, 2023 John Kerl.
// kerl.john.r@gmail.com
// Please see LICENSE.txt.
// ================================================================
Expand Down
2 changes: 1 addition & 1 deletion pre-cmake/utils/moebius.cpp
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
// ================================================================
// Copyright (c) 2004 John Kerl.
// Copyright (c) 2004, 2023 John Kerl.
// kerl.john.r@gmail.com
// Please see LICENSE.txt.
// ================================================================
Expand Down
2 changes: 1 addition & 1 deletion pre-cmake/utils/moebius.h
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
// ================================================================
// Copyright (c) 2004 John Kerl.
// Copyright (c) 2004, 2023 John Kerl.
// kerl.john.r@gmail.com
// Please see LICENSE.txt.
// ================================================================
Expand Down
2 changes: 1 addition & 1 deletion spffl/base/cmps.h
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
// ================================================================
// Copyright (c) 2004 John Kerl.
// Copyright (c) 2004, 2023 John Kerl.
// kerl.john.r@gmail.com
// Please see LICENSE.txt.
// ================================================================
Expand Down
2 changes: 1 addition & 1 deletion spffl/base/line_scan.cpp
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
// ================================================================
// Copyright (c) 2004 John Kerl.
// Copyright (c) 2004, 2023 John Kerl.
// kerl.john.r@gmail.com
// Please see LICENSE.txt.
// ================================================================
Expand Down
2 changes: 1 addition & 1 deletion spffl/base/line_scan.h
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
// ================================================================
// Copyright (c) 2004 John Kerl.
// Copyright (c) 2004, 2023 John Kerl.
// kerl.john.r@gmail.com
// Please see LICENSE.txt.
// ================================================================
Expand Down
2 changes: 1 addition & 1 deletion spffl/base/tokenize.cpp
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
// ================================================================
// Copyright (c) 2004 John Kerl.
// Copyright (c) 2004, 2023 John Kerl.
// kerl.john.r@gmail.com
// Please see LICENSE.txt.
// ================================================================
Expand Down
2 changes: 1 addition & 1 deletion spffl/base/tokenize.h
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
// ================================================================
// Copyright (c) 2004 John Kerl.
// Copyright (c) 2004, 2023 John Kerl.
// kerl.john.r@gmail.com
// Please see LICENSE.txt.
// ================================================================
Expand Down
2 changes: 1 addition & 1 deletion spffl/bitrand/psdes.cpp
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
// ================================================================
// Copyright (c) 2004 John Kerl.
// Copyright (c) 2004, 2023 John Kerl.
// kerl.john.r@gmail.com
// Please see LICENSE.txt.
// ================================================================
Expand Down
2 changes: 1 addition & 1 deletion spffl/bitrand/psdes.h
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
// ================================================================
// Copyright (c) 2004 John Kerl.
// Copyright (c) 2004, 2023 John Kerl.
// kerl.john.r@gmail.com
// Please see LICENSE.txt.
// ================================================================
Expand Down
2 changes: 1 addition & 1 deletion spffl/bits/bit_matrix_t.cpp
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
// ================================================================
// Copyright (c) 2004 John Kerl.
// Copyright (c) 2004, 2023 John Kerl.
// kerl.john.r@gmail.com
// Please see LICENSE.txt.
// ================================================================
Expand Down
2 changes: 1 addition & 1 deletion spffl/bits/bit_matrix_t.h
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
// ================================================================
// Copyright (c) 2004 John Kerl.
// Copyright (c) 2004, 2023 John Kerl.
// kerl.john.r@gmail.com
// Please see LICENSE.txt.
// ================================================================
Expand Down
2 changes: 1 addition & 1 deletion spffl/bits/bit_t.cpp
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
// ================================================================
// Copyright (c) 2004 John Kerl.
// Copyright (c) 2004, 2023 John Kerl.
// kerl.john.r@gmail.com
// Please see LICENSE.txt.
// ================================================================
Expand Down
2 changes: 1 addition & 1 deletion spffl/bits/bit_t.h
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
// ================================================================
// Copyright (c) 2004 John Kerl.
// Copyright (c) 2004, 2023 John Kerl.
// kerl.john.r@gmail.com
// Please see LICENSE.txt.
// ================================================================
Expand Down
2 changes: 1 addition & 1 deletion spffl/bits/bit_vector_t.cpp
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
// ================================================================
// Copyright (c) 2004 John Kerl.
// Copyright (c) 2004, 2023 John Kerl.
// kerl.john.r@gmail.com
// Please see LICENSE.txt.
// ================================================================
Expand Down
2 changes: 1 addition & 1 deletion spffl/bits/bit_vector_t.h
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
// ================================================================
// Copyright (c) 2004 John Kerl.
// Copyright (c) 2004, 2023 John Kerl.
// kerl.john.r@gmail.com
// Please see LICENSE.txt.
// ================================================================
Expand Down
2 changes: 1 addition & 1 deletion spffl/bits/count_bits.cpp
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
// ================================================================
// Copyright (c) 2004 John Kerl.
// Copyright (c) 2004, 2023 John Kerl.
// kerl.john.r@gmail.com
// Please see LICENSE.txt.
// ================================================================
Expand Down
2 changes: 1 addition & 1 deletion spffl/bits/count_bits.h
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
// ================================================================
// Copyright (c) 2004 John Kerl.
// Copyright (c) 2004, 2023 John Kerl.
// kerl.john.r@gmail.com
// Please see LICENSE.txt.
// ================================================================
Expand Down
2 changes: 1 addition & 1 deletion spffl/cli_parser/cmd_line_matrix_ops.h
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
// ================================================================
// Copyright (c) 2004 John Kerl.
// Copyright (c) 2004, 2023 John Kerl.
// kerl.john.r@gmail.com
// Please see LICENSE.txt.
// ================================================================
Expand Down
2 changes: 1 addition & 1 deletion spffl/cli_parser/cmd_line_ops.h
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
// ================================================================
// Copyright (c) 2004 John Kerl.
// Copyright (c) 2004, 2023 John Kerl.
// kerl.john.r@gmail.com
// Please see LICENSE.txt.
// ================================================================
Expand Down
2 changes: 1 addition & 1 deletion spffl/cli_parser/cmd_line_vector_ops.h
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
// ================================================================
// Copyright (c) 2004 John Kerl.
// Copyright (c) 2004, 2023 John Kerl.
// kerl.john.r@gmail.com
// Please see LICENSE.txt.
// ================================================================
Expand Down
2 changes: 1 addition & 1 deletion spffl/containers/tfacinfo.h
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
// ================================================================
// Copyright (c) 2004 John Kerl.
// Copyright (c) 2004, 2023 John Kerl.
// kerl.john.r@gmail.com
// Please see LICENSE.txt.
// ================================================================
Expand Down
2 changes: 1 addition & 1 deletion spffl/containers/tmatrix.h
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
// ================================================================
// Copyright (c) 2004 John Kerl.
// Copyright (c) 2004, 2023 John Kerl.
// kerl.john.r@gmail.com
// Please see LICENSE.txt.
// ================================================================
Expand Down
2 changes: 1 addition & 1 deletion spffl/containers/tstack.h
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
// ================================================================
// Copyright (c) 2004 John Kerl.
// Copyright (c) 2004, 2023 John Kerl.
// kerl.john.r@gmail.com
// Please see LICENSE.txt.
// ================================================================
Expand Down
2 changes: 1 addition & 1 deletion spffl/containers/tvector.h
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
// ================================================================
// Copyright (c) 2004 John Kerl.
// Copyright (c) 2004, 2023 John Kerl.
// kerl.john.r@gmail.com
// Please see LICENSE.txt.
// ================================================================
Expand Down
2 changes: 1 addition & 1 deletion spffl/factorization/f2_poly_factor.cpp
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
// ================================================================
// Copyright (c) 2004 John Kerl.
// Copyright (c) 2004, 2023 John Kerl.
// kerl.john.r@gmail.com
// Please see LICENSE.txt.
// ================================================================
Expand Down
2 changes: 1 addition & 1 deletion spffl/factorization/f2_poly_factor.h
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
// ================================================================
// Copyright (c) 2004 John Kerl.
// Copyright (c) 2004, 2023 John Kerl.
// kerl.john.r@gmail.com
// Please see LICENSE.txt.
// ================================================================
Expand Down
2 changes: 1 addition & 1 deletion spffl/factorization/f2_poly_totient.cpp
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
// ================================================================
// Copyright (c) 2004 John Kerl.
// Copyright (c) 2004, 2023 John Kerl.
// kerl.john.r@gmail.com
// Please see LICENSE.txt.
// ================================================================
Expand Down
2 changes: 1 addition & 1 deletion spffl/factorization/f2_poly_totient.h
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
// ================================================================
// Copyright (c) 2004 John Kerl.
// Copyright (c) 2004, 2023 John Kerl.
// kerl.john.r@gmail.com
// Please see LICENSE.txt.
// ================================================================
Expand Down
2 changes: 1 addition & 1 deletion spffl/factorization/f2n_poly_factor.cpp
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
// ================================================================
// Copyright (c) 2004 John Kerl.
// Copyright (c) 2004, 2023 John Kerl.
// kerl.john.r@gmail.com
// Please see LICENSE.txt.
// ================================================================
Expand Down
2 changes: 1 addition & 1 deletion spffl/factorization/f2n_poly_factor.h
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
// ================================================================
// Copyright (c) 2004 John Kerl.
// Copyright (c) 2004, 2023 John Kerl.
// kerl.john.r@gmail.com
// Please see LICENSE.txt.
// ================================================================
Expand Down
2 changes: 1 addition & 1 deletion spffl/factorization/f2n_poly_totient.cpp
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
// ================================================================
// Copyright (c) 2004 John Kerl.
// Copyright (c) 2004, 2023 John Kerl.
// kerl.john.r@gmail.com
// Please see LICENSE.txt.
// ================================================================
Expand Down
2 changes: 1 addition & 1 deletion spffl/factorization/f2n_poly_totient.h
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
// ================================================================
// Copyright (c) 2004 John Kerl.
// Copyright (c) 2004, 2023 John Kerl.
// kerl.john.r@gmail.com
// Please see LICENSE.txt.
// ================================================================
Expand Down
2 changes: 1 addition & 1 deletion spffl/factorization/fp_poly_factor.cpp
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
// ================================================================
// Copyright (c) 2004 John Kerl.
// Copyright (c) 2004, 2023 John Kerl.
// kerl.john.r@gmail.com
// Please see LICENSE.txt.
// ================================================================
Expand Down
2 changes: 1 addition & 1 deletion spffl/factorization/fp_poly_factor.h
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
// ================================================================
// Copyright (c) 2004 John Kerl.
// Copyright (c) 2004, 2023 John Kerl.
// kerl.john.r@gmail.com
// Please see LICENSE.txt.
// ================================================================
Expand Down
2 changes: 1 addition & 1 deletion spffl/factorization/fp_poly_totient.cpp
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
// ================================================================
// Copyright (c) 2004 John Kerl.
// Copyright (c) 2004, 2023 John Kerl.
// kerl.john.r@gmail.com
// Please see LICENSE.txt.
// ================================================================
Expand Down
2 changes: 1 addition & 1 deletion spffl/factorization/fp_poly_totient.h
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
// ================================================================
// Copyright (c) 2004 John Kerl.
// Copyright (c) 2004, 2023 John Kerl.
// kerl.john.r@gmail.com
// Please see LICENSE.txt.
// ================================================================
Expand Down

0 comments on commit 0ecdd28

Please sign in to comment.