add galois_init_default_field error code wip-galois-init
authorLoic Dachary <loic@dachary.org>
Sun, 8 Jun 2014 16:54:00 +0000 (18:54 +0200)
committerLoic Dachary <loic@dachary.org>
Sun, 8 Jun 2014 16:59:00 +0000 (18:59 +0200)
commit1b30a37c9f75df371cf4deaedfde6b843933b4f0
treeefff819aea5370f019b1b4150e798540368d7ade
add galois_init_default_field error code

galois_init_default_field returns an errno(3) code in case of error
instead of exiting. This is handy when the caller needs to perform
cleanup or error reporting when an error occurs instead of exit(2).

The exit(2) based error handling is preserved in the static
galois_init() function which is used in galois.c instead and is based on
galois_init_default_field to avoid code duplication.

Signed-off-by: Loic Dachary <loic@dachary.org>
56 files changed:
.gitattributes [new file with mode: 0644]
.gitignore [new file with mode: 0644]
AUTHORS [new file with mode: 0644]
COPYING [new file with mode: 0644]
ChangeLog [new file with mode: 0644]
Examples/.gitignore [new file with mode: 0644]
Examples/Makefile.am [new file with mode: 0644]
Examples/cauchy_01.c [new file with mode: 0644]
Examples/cauchy_02.c [new file with mode: 0644]
Examples/cauchy_03.c [new file with mode: 0644]
Examples/cauchy_04.c [new file with mode: 0644]
Examples/decoder.c [new file with mode: 0644]
Examples/encoder.c [new file with mode: 0644]
Examples/jerasure_01.c [new file with mode: 0644]
Examples/jerasure_02.c [new file with mode: 0644]
Examples/jerasure_03.c [new file with mode: 0644]
Examples/jerasure_04.c [new file with mode: 0644]
Examples/jerasure_05.c [new file with mode: 0644]
Examples/jerasure_06.c [new file with mode: 0644]
Examples/jerasure_07.c [new file with mode: 0644]
Examples/jerasure_08.c [new file with mode: 0644]
Examples/liberation_01.c [new file with mode: 0644]
Examples/reed_sol_01.c [new file with mode: 0644]
Examples/reed_sol_02.c [new file with mode: 0644]
Examples/reed_sol_03.c [new file with mode: 0644]
Examples/reed_sol_04.c [new file with mode: 0644]
Examples/reed_sol_test_gf.c [new file with mode: 0644]
Examples/reed_sol_time_gf.c [new file with mode: 0644]
Examples/test_all_gfs.sh [new file with mode: 0755]
Examples/time_all_gfs_argv_init.sh [new file with mode: 0755]
License.txt [new file with mode: 0644]
Makefile.am [new file with mode: 0644]
Manual.pdf [new file with mode: 0644]
NEWS [new file with mode: 0644]
PERF.txt [new file with mode: 0644]
README [new file with mode: 0644]
configure.ac [new file with mode: 0644]
include/cauchy.h [new file with mode: 0644]
include/galois.h [new file with mode: 0644]
include/jerasure.h [new file with mode: 0644]
include/liberation.h [new file with mode: 0644]
include/reed_sol.h [new file with mode: 0644]
include/timing.h [new file with mode: 0644]
m4/ax_check_compile_flag.m4 [new file with mode: 0644]
m4/ax_ext.m4 [new file with mode: 0644]
m4/ax_gcc_x86_avx_xgetbv.m4 [new file with mode: 0644]
m4/ax_gcc_x86_cpuid.m4 [new file with mode: 0644]
m4/ax_require_defined.m4 [new file with mode: 0644]
src/Makefile.am [new file with mode: 0644]
src/cauchy.c [new file with mode: 0644]
src/cauchy_best_r6.c [new file with mode: 0644]
src/galois.c [new file with mode: 0644]
src/jerasure.c [new file with mode: 0644]
src/liberation.c [new file with mode: 0644]
src/reed_sol.c [new file with mode: 0644]
src/timing.c [new file with mode: 0644]