diff options
author | Eric Hameleers <alien@slackware.com> | 2010-02-27 16:17:41 +0000 |
---|---|---|
committer | Eric Hameleers <alien@slackware.com> | 2010-02-27 16:17:41 +0000 |
commit | 273197eaaa1cab755e867be881114eb7cb96f710 (patch) | |
tree | b37a91927ff9abdff69e6c3d3efc4d5db94fa89b /par2cmdline | |
parent | f4a093bb83c1d5b01b433fe55907059c57f60c65 (diff) | |
download | asb-273197eaaa1cab755e867be881114eb7cb96f710.tar.gz asb-273197eaaa1cab755e867be881114eb7cb96f710.tar.xz |
Initial revision
Diffstat (limited to 'par2cmdline')
-rw-r--r-- | par2cmdline/build/par2cmdline_gcc_template.diff | 51 |
1 files changed, 51 insertions, 0 deletions
diff --git a/par2cmdline/build/par2cmdline_gcc_template.diff b/par2cmdline/build/par2cmdline_gcc_template.diff new file mode 100644 index 00000000..28ab3d0d --- /dev/null +++ b/par2cmdline/build/par2cmdline_gcc_template.diff @@ -0,0 +1,51 @@ +diff -u -r par2cmdline-0.4.orig/reedsolomon.cpp par2cmdline-0.4/reedsolomon.cpp +--- par2cmdline-0.4.orig/reedsolomon.cpp 2003-05-26 20:01:31.000000000 +0200 ++++ par2cmdline-0.4/reedsolomon.cpp 2006-04-11 19:44:52.000000000 +0200 +@@ -51,6 +51,7 @@ + } + } + ++template <> + bool ReedSolomon<Galois8>::SetInput(const vector<bool> &present) + { + inputcount = (u32)present.size(); +@@ -80,6 +81,7 @@ + return true; + } + ++template <> + bool ReedSolomon<Galois8>::SetInput(u32 count) + { + inputcount = count; +@@ -101,6 +103,7 @@ + return true; + } + ++template <> + bool ReedSolomon<Galois8>::Process(size_t size, u32 inputindex, const void *inputbuffer, u32 outputindex, void *outputbuffer) + { + // Look up the appropriate element in the RS matrix +@@ -189,6 +192,7 @@ + + // Set which of the source files are present and which are missing + // and compute the base values to use for the vandermonde matrix. ++template <> + bool ReedSolomon<Galois16>::SetInput(const vector<bool> &present) + { + inputcount = (u32)present.size(); +@@ -233,6 +237,7 @@ + + // Record that the specified number of source files are all present + // and compute the base values to use for the vandermonde matrix. ++template <> + bool ReedSolomon<Galois16>::SetInput(u32 count) + { + inputcount = count; +@@ -267,6 +272,7 @@ + return true; + } + ++template <> + bool ReedSolomon<Galois16>::Process(size_t size, u32 inputindex, const void *inputbuffer, u32 outputindex, void *outputbuffer) + { + // Look up the appropriate element in the RS matrix |