Commit 44201cf4366744c523080edf536a55d4cb4444eb

Authored by KMG
1 parent 8d673c08

Added new license header for version 2.0

Updated the README (Going to add detail on how to us GF-complete soon)
Examples/cauchy_01.c
1   -/* Examples/cauchy_01.c
2   -
3   -Jerasure - A C/C++ Library for a Variety of Reed-Solomon and RAID-6 Erasure Coding Techniques
4   -
5   -Revision 1.2A
6   -May 24, 2011
7   -
8   -James S. Plank
9   -Department of Electrical Engineering and Computer Science
10   -University of Tennessee
11   -Knoxville, TN 37996
12   -plank@cs.utk.edu
13   -
14   -Copyright (c) 2011, James S. Plank
15   -All rights reserved.
16   -
17   -Redistribution and use in source and binary forms, with or without
18   -modification, are permitted provided that the following conditions
19   -are met:
20   -
21   - - Redistributions of source code must retain the above copyright
22   - notice, this list of conditions and the following disclaimer.
23   -
24   - - Redistributions in binary form must reproduce the above copyright
25   - notice, this list of conditions and the following disclaimer in
26   - the documentation and/or other materials provided with the
27   - distribution.
28   -
29   - - Neither the name of the University of Tennessee nor the names of its
30   - contributors may be used to endorse or promote products derived
31   - from this software without specific prior written permission.
32   -
33   -THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
34   -"AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
35   -LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
36   -A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
37   -HOLDER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT,
38   -INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING,
39   -BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS
40   -OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED
41   -AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
42   -LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY
43   -WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
44   -POSSIBILITY OF SUCH DAMAGE.
45   -
  1 +/* *
  2 + * Copyright (c) 2013, James S. Plank and Kevin Greenan
  3 + * All rights reserved.
  4 + *
  5 + * Jerasure - A C/C++ Library for a Variety of Reed-Solomon and RAID-6 Erasure
  6 + * Coding Techniques
  7 + *
  8 + * Revision 2.0: Galois Field backend now links to GF-Complete
  9 + *
  10 + * Redistribution and use in source and binary forms, with or without
  11 + * modification, are permitted provided that the following conditions
  12 + * are met:
  13 + *
  14 + * - Redistributions of source code must retain the above copyright
  15 + * notice, this list of conditions and the following disclaimer.
  16 + *
  17 + * - Redistributions in binary form must reproduce the above copyright
  18 + * notice, this list of conditions and the following disclaimer in
  19 + * the documentation and/or other materials provided with the
  20 + * distribution.
  21 + *
  22 + * - Neither the name of the University of Tennessee nor the names of its
  23 + * contributors may be used to endorse or promote products derived
  24 + * from this software without specific prior written permission.
  25 + *
  26 + * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
  27 + * "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
  28 + * LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
  29 + * A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
  30 + * HOLDER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT,
  31 + * INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING,
  32 + * BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS
  33 + * OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED
  34 + * AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
  35 + * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY
  36 + * WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
  37 + * POSSIBILITY OF SUCH DAMAGE.
46 38 */
47 39  
  40 +
48 41 #include <stdio.h>
49 42 #include <stdlib.h>
50 43 #include <string.h>
... ...
Examples/cauchy_02.c
1   -/* Examples/cauchy_02.c
2   -Jerasure - A C/C++ Library for a Variety of Reed-Solomon and RAID-6 Erasure Coding Techniques
3   -
4   -Revision 1.2A
5   -May 24, 2011
6   -
7   -James S. Plank
8   -Department of Electrical Engineering and Computer Science
9   -University of Tennessee
10   -Knoxville, TN 37996
11   -plank@cs.utk.edu
12   -
13   -Copyright (c) 2011, James S. Plank
14   -All rights reserved.
15   -
16   -Redistribution and use in source and binary forms, with or without
17   -modification, are permitted provided that the following conditions
18   -are met:
19   -
20   - - Redistributions of source code must retain the above copyright
21   - notice, this list of conditions and the following disclaimer.
22   -
23   - - Redistributions in binary form must reproduce the above copyright
24   - notice, this list of conditions and the following disclaimer in
25   - the documentation and/or other materials provided with the
26   - distribution.
27   -
28   - - Neither the name of the University of Tennessee nor the names of its
29   - contributors may be used to endorse or promote products derived
30   - from this software without specific prior written permission.
31   -
32   -THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
33   -"AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
34   -LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
35   -A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
36   -HOLDER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT,
37   -INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING,
38   -BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS
39   -OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED
40   -AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
41   -LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY
42   -WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
43   -POSSIBILITY OF SUCH DAMAGE.
44   -
  1 +/* *
  2 + * Copyright (c) 2013, James S. Plank and Kevin Greenan
  3 + * All rights reserved.
  4 + *
  5 + * Jerasure - A C/C++ Library for a Variety of Reed-Solomon and RAID-6 Erasure
  6 + * Coding Techniques
  7 + *
  8 + * Revision 2.0: Galois Field backend now links to GF-Complete
  9 + *
  10 + * Redistribution and use in source and binary forms, with or without
  11 + * modification, are permitted provided that the following conditions
  12 + * are met:
  13 + *
  14 + * - Redistributions of source code must retain the above copyright
  15 + * notice, this list of conditions and the following disclaimer.
  16 + *
  17 + * - Redistributions in binary form must reproduce the above copyright
  18 + * notice, this list of conditions and the following disclaimer in
  19 + * the documentation and/or other materials provided with the
  20 + * distribution.
  21 + *
  22 + * - Neither the name of the University of Tennessee nor the names of its
  23 + * contributors may be used to endorse or promote products derived
  24 + * from this software without specific prior written permission.
  25 + *
  26 + * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
  27 + * "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
  28 + * LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
  29 + * A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
  30 + * HOLDER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT,
  31 + * INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING,
  32 + * BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS
  33 + * OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED
  34 + * AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
  35 + * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY
  36 + * WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
  37 + * POSSIBILITY OF SUCH DAMAGE.
45 38 */
46 39  
47 40  
  41 +
48 42 /*
49 43 revised by S. Simmerman
50 44 2/25/08
... ...
Examples/cauchy_03.c
1   -/* Examples/cauchy_03.c
2   - * James S. Plank
3   -
4   -Jerasure - A C/C++ Library for a Variety of Reed-Solomon and RAID-6 Erasure Coding Techniques
5   -
6   -Revision 1.2A
7   -May 24, 2011
8   -
9   -James S. Plank
10   -Department of Electrical Engineering and Computer Science
11   -University of Tennessee
12   -Knoxville, TN 37996
13   -plank@cs.utk.edu
14   -
15   -Copyright (c) 2011, James S. Plank
16   -All rights reserved.
17   -
18   -Redistribution and use in source and binary forms, with or without
19   -modification, are permitted provided that the following conditions
20   -are met:
21   -
22   - - Redistributions of source code must retain the above copyright
23   - notice, this list of conditions and the following disclaimer.
24   -
25   - - Redistributions in binary form must reproduce the above copyright
26   - notice, this list of conditions and the following disclaimer in
27   - the documentation and/or other materials provided with the
28   - distribution.
29   -
30   - - Neither the name of the University of Tennessee nor the names of its
31   - contributors may be used to endorse or promote products derived
32   - from this software without specific prior written permission.
33   -
34   -THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
35   -"AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
36   -LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
37   -A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
38   -HOLDER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT,
39   -INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING,
40   -BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS
41   -OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED
42   -AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
43   -LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY
44   -WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
45   -POSSIBILITY OF SUCH DAMAGE.
46   -
  1 +/* *
  2 + * Copyright (c) 2013, James S. Plank and Kevin Greenan
  3 + * All rights reserved.
  4 + *
  5 + * Jerasure - A C/C++ Library for a Variety of Reed-Solomon and RAID-6 Erasure
  6 + * Coding Techniques
  7 + *
  8 + * Revision 2.0: Galois Field backend now links to GF-Complete
  9 + *
  10 + * Redistribution and use in source and binary forms, with or without
  11 + * modification, are permitted provided that the following conditions
  12 + * are met:
  13 + *
  14 + * - Redistributions of source code must retain the above copyright
  15 + * notice, this list of conditions and the following disclaimer.
  16 + *
  17 + * - Redistributions in binary form must reproduce the above copyright
  18 + * notice, this list of conditions and the following disclaimer in
  19 + * the documentation and/or other materials provided with the
  20 + * distribution.
  21 + *
  22 + * - Neither the name of the University of Tennessee nor the names of its
  23 + * contributors may be used to endorse or promote products derived
  24 + * from this software without specific prior written permission.
  25 + *
  26 + * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
  27 + * "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
  28 + * LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
  29 + * A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
  30 + * HOLDER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT,
  31 + * INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING,
  32 + * BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS
  33 + * OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED
  34 + * AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
  35 + * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY
  36 + * WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
  37 + * POSSIBILITY OF SUCH DAMAGE.
47 38 */
48 39  
49 40  
  41 +
50 42 /*
51 43 revised by S. Simmerman
52 44 2/25/08
... ...
Examples/cauchy_04.c
1   -/* Examples/cauchy_04.c
2   - * James S. Plank
3   -
4   -Jerasure - A C/C++ Library for a Variety of Reed-Solomon and RAID-6 Erasure Coding Techniques
5   -
6   -Revision 1.2A
7   -May 24, 2011
8   -
9   -James S. Plank
10   -Department of Electrical Engineering and Computer Science
11   -University of Tennessee
12   -Knoxville, TN 37996
13   -plank@cs.utk.edu
14   -
15   -Copyright (c) 2011, James S. Plank
16   -All rights reserved.
17   -
18   -Redistribution and use in source and binary forms, with or without
19   -modification, are permitted provided that the following conditions
20   -are met:
21   -
22   - - Redistributions of source code must retain the above copyright
23   - notice, this list of conditions and the following disclaimer.
24   -
25   - - Redistributions in binary form must reproduce the above copyright
26   - notice, this list of conditions and the following disclaimer in
27   - the documentation and/or other materials provided with the
28   - distribution.
29   -
30   - - Neither the name of the University of Tennessee nor the names of its
31   - contributors may be used to endorse or promote products derived
32   - from this software without specific prior written permission.
33   -
34   -THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
35   -"AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
36   -LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
37   -A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
38   -HOLDER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT,
39   -INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING,
40   -BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS
41   -OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED
42   -AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
43   -LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY
44   -WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
45   -POSSIBILITY OF SUCH DAMAGE.
46   -
47   -
  1 +/* *
  2 + * Copyright (c) 2013, James S. Plank and Kevin Greenan
  3 + * All rights reserved.
  4 + *
  5 + * Jerasure - A C/C++ Library for a Variety of Reed-Solomon and RAID-6 Erasure
  6 + * Coding Techniques
  7 + *
  8 + * Revision 2.0: Galois Field backend now links to GF-Complete
  9 + *
  10 + * Redistribution and use in source and binary forms, with or without
  11 + * modification, are permitted provided that the following conditions
  12 + * are met:
  13 + *
  14 + * - Redistributions of source code must retain the above copyright
  15 + * notice, this list of conditions and the following disclaimer.
  16 + *
  17 + * - Redistributions in binary form must reproduce the above copyright
  18 + * notice, this list of conditions and the following disclaimer in
  19 + * the documentation and/or other materials provided with the
  20 + * distribution.
  21 + *
  22 + * - Neither the name of the University of Tennessee nor the names of its
  23 + * contributors may be used to endorse or promote products derived
  24 + * from this software without specific prior written permission.
  25 + *
  26 + * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
  27 + * "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
  28 + * LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
  29 + * A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
  30 + * HOLDER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT,
  31 + * INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING,
  32 + * BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS
  33 + * OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED
  34 + * AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
  35 + * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY
  36 + * WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
  37 + * POSSIBILITY OF SUCH DAMAGE.
48 38 */
49 39  
50 40  
  41 +
51 42 /*
52 43 revised by S. Simmerman
53 44 2/25/08
... ...
Examples/decoder.c
1   -/* Examples/decoder.c
2   - * Catherine D. Schuman, James S. Plank
  1 +/* *
  2 + * Copyright (c) 2013, James S. Plank and Kevin Greenan
  3 + * All rights reserved.
  4 + *
  5 + * Jerasure - A C/C++ Library for a Variety of Reed-Solomon and RAID-6 Erasure
  6 + * Coding Techniques
  7 + *
  8 + * Revision 2.0: Galois Field backend now links to GF-Complete
  9 + *
  10 + * Redistribution and use in source and binary forms, with or without
  11 + * modification, are permitted provided that the following conditions
  12 + * are met:
  13 + *
  14 + * - Redistributions of source code must retain the above copyright
  15 + * notice, this list of conditions and the following disclaimer.
  16 + *
  17 + * - Redistributions in binary form must reproduce the above copyright
  18 + * notice, this list of conditions and the following disclaimer in
  19 + * the documentation and/or other materials provided with the
  20 + * distribution.
  21 + *
  22 + * - Neither the name of the University of Tennessee nor the names of its
  23 + * contributors may be used to endorse or promote products derived
  24 + * from this software without specific prior written permission.
  25 + *
  26 + * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
  27 + * "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
  28 + * LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
  29 + * A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
  30 + * HOLDER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT,
  31 + * INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING,
  32 + * BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS
  33 + * OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED
  34 + * AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
  35 + * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY
  36 + * WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
  37 + * POSSIBILITY OF SUCH DAMAGE.
  38 + */
3 39  
4   -Jerasure - A C/C++ Library for a Variety of Reed-Solomon and RAID-6 Erasure Coding Techniques
5   -
6   -Revision 1.2A
7   -May 24, 2011
8   -
9   -James S. Plank
10   -Department of Electrical Engineering and Computer Science
11   -University of Tennessee
12   -Knoxville, TN 37996
13   -plank@cs.utk.edu
14   -
15   -Copyright (c) 2011, James S. Plank
16   -All rights reserved.
17   -
18   -Redistribution and use in source and binary forms, with or without
19   -modification, are permitted provided that the following conditions
20   -are met:
21   -
22   - - Redistributions of source code must retain the above copyright
23   - notice, this list of conditions and the following disclaimer.
24   -
25   - - Redistributions in binary form must reproduce the above copyright
26   - notice, this list of conditions and the following disclaimer in
27   - the documentation and/or other materials provided with the
28   - distribution.
29   -
30   - - Neither the name of the University of Tennessee nor the names of its
31   - contributors may be used to endorse or promote products derived
32   - from this software without specific prior written permission.
33   -
34   -THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
35   -"AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
36   -LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
37   -A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
38   -HOLDER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT,
39   -INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING,
40   -BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS
41   -OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED
42   -AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
43   -LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY
44   -WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
45   -POSSIBILITY OF SUCH DAMAGE.
46   -
47   -
48   -*/
49 40  
50 41 /*
51 42 This program takes as input an inputfile, k, m, a coding
... ...
Examples/encoder.c
1   -/* Examples/encoder.c
2   - * Catherine D. Schuman, James S. Plank
3   -
4   -Jerasure - A C/C++ Library for a Variety of Reed-Solomon and RAID-6 Erasure Coding Techniques
5   -
6   -Revision 1.2A
7   -May 24, 2011
8   -
9   -James S. Plank
10   -Department of Electrical Engineering and Computer Science
11   -University of Tennessee
12   -Knoxville, TN 37996
13   -plank@cs.utk.edu
14   -
15   -Copyright (c) 2011, James S. Plank
16   -All rights reserved.
17   -
18   -Redistribution and use in source and binary forms, with or without
19   -modification, are permitted provided that the following conditions
20   -are met:
21   -
22   - - Redistributions of source code must retain the above copyright
23   - notice, this list of conditions and the following disclaimer.
24   -
25   - - Redistributions in binary form must reproduce the above copyright
26   - notice, this list of conditions and the following disclaimer in
27   - the documentation and/or other materials provided with the
28   - distribution.
29   -
30   - - Neither the name of the University of Tennessee nor the names of its
31   - contributors may be used to endorse or promote products derived
32   - from this software without specific prior written permission.
33   -
34   -THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
35   -"AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
36   -LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
37   -A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
38   -HOLDER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT,
39   -INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING,
40   -BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS
41   -OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED
42   -AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
43   -LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY
44   -WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
45   -POSSIBILITY OF SUCH DAMAGE.
46   -
47   -
  1 +/* *
  2 + * Copyright (c) 2013, James S. Plank and Kevin Greenan
  3 + * All rights reserved.
  4 + *
  5 + * Jerasure - A C/C++ Library for a Variety of Reed-Solomon and RAID-6 Erasure
  6 + * Coding Techniques
  7 + *
  8 + * Revision 2.0: Galois Field backend now links to GF-Complete
  9 + *
  10 + * Redistribution and use in source and binary forms, with or without
  11 + * modification, are permitted provided that the following conditions
  12 + * are met:
  13 + *
  14 + * - Redistributions of source code must retain the above copyright
  15 + * notice, this list of conditions and the following disclaimer.
  16 + *
  17 + * - Redistributions in binary form must reproduce the above copyright
  18 + * notice, this list of conditions and the following disclaimer in
  19 + * the documentation and/or other materials provided with the
  20 + * distribution.
  21 + *
  22 + * - Neither the name of the University of Tennessee nor the names of its
  23 + * contributors may be used to endorse or promote products derived
  24 + * from this software without specific prior written permission.
  25 + *
  26 + * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
  27 + * "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
  28 + * LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
  29 + * A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
  30 + * HOLDER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT,
  31 + * INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING,
  32 + * BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS
  33 + * OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED
  34 + * AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
  35 + * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY
  36 + * WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
  37 + * POSSIBILITY OF SUCH DAMAGE.
48 38 */
49 39  
  40 +
50 41 /*
51 42  
52 43 This program takes as input an inputfile, k, m, a coding
... ...
Examples/jerasure_01.c
1   -/* Examples/jerasure_01.c
2   - * James S. Plank
3   -
4   -Jerasure - A C/C++ Library for a Variety of Reed-Solomon and RAID-6 Erasure Coding Techniques
5   -
6   -Revision 1.2A
7   -May 24, 2011
8   -
9   -James S. Plank
10   -Department of Electrical Engineering and Computer Science
11   -University of Tennessee
12   -Knoxville, TN 37996
13   -plank@cs.utk.edu
14   -
15   -Copyright (c) 2011, James S. Plank
16   -All rights reserved.
17   -
18   -Redistribution and use in source and binary forms, with or without
19   -modification, are permitted provided that the following conditions
20   -are met:
21   -
22   - - Redistributions of source code must retain the above copyright
23   - notice, this list of conditions and the following disclaimer.
24   -
25   - - Redistributions in binary form must reproduce the above copyright
26   - notice, this list of conditions and the following disclaimer in
27   - the documentation and/or other materials provided with the
28   - distribution.
29   -
30   - - Neither the name of the University of Tennessee nor the names of its
31   - contributors may be used to endorse or promote products derived
32   - from this software without specific prior written permission.
33   -
34   -THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
35   -"AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
36   -LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
37   -A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
38   -HOLDER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT,
39   -INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING,
40   -BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS
41   -OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED
42   -AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
43   -LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY
44   -WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
45   -POSSIBILITY OF SUCH DAMAGE.
46   -
47   -
  1 +/* *
  2 + * Copyright (c) 2013, James S. Plank and Kevin Greenan
  3 + * All rights reserved.
  4 + *
  5 + * Jerasure - A C/C++ Library for a Variety of Reed-Solomon and RAID-6 Erasure
  6 + * Coding Techniques
  7 + *
  8 + * Revision 2.0: Galois Field backend now links to GF-Complete
  9 + *
  10 + * Redistribution and use in source and binary forms, with or without
  11 + * modification, are permitted provided that the following conditions
  12 + * are met:
  13 + *
  14 + * - Redistributions of source code must retain the above copyright
  15 + * notice, this list of conditions and the following disclaimer.
  16 + *
  17 + * - Redistributions in binary form must reproduce the above copyright
  18 + * notice, this list of conditions and the following disclaimer in
  19 + * the documentation and/or other materials provided with the
  20 + * distribution.
  21 + *
  22 + * - Neither the name of the University of Tennessee nor the names of its
  23 + * contributors may be used to endorse or promote products derived
  24 + * from this software without specific prior written permission.
  25 + *
  26 + * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
  27 + * "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
  28 + * LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
  29 + * A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
  30 + * HOLDER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT,
  31 + * INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING,
  32 + * BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS
  33 + * OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED
  34 + * AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
  35 + * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY
  36 + * WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
  37 + * POSSIBILITY OF SUCH DAMAGE.
48 38 */
49 39  
50 40  
  41 +
51 42 #include <stdio.h>
52 43 #include <stdlib.h>
53 44 #include "jerasure.h"
... ...
Examples/jerasure_02.c
1   -/* Examples/jerasure_02.c
2   -
3   -Jerasure - A C/C++ Library for a Variety of Reed-Solomon and RAID-6 Erasure Coding Techniques
4   -
5   -Revision 1.2A
6   -May 24, 2011
7   -
8   -James S. Plank
9   -Department of Electrical Engineering and Computer Science
10   -University of Tennessee
11   -Knoxville, TN 37996
12   -plank@cs.utk.edu
13   -
14   -Copyright (c) 2011, James S. Plank
15   -All rights reserved.
16   -
17   -Redistribution and use in source and binary forms, with or without
18   -modification, are permitted provided that the following conditions
19   -are met:
20   -
21   - - Redistributions of source code must retain the above copyright
22   - notice, this list of conditions and the following disclaimer.
23   -
24   - - Redistributions in binary form must reproduce the above copyright
25   - notice, this list of conditions and the following disclaimer in
26   - the documentation and/or other materials provided with the
27   - distribution.
28   -
29   - - Neither the name of the University of Tennessee nor the names of its
30   - contributors may be used to endorse or promote products derived
31   - from this software without specific prior written permission.
32   -
33   -THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
34   -"AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
35   -LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
36   -A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
37   -HOLDER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT,
38   -INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING,
39   -BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS
40   -OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED
41   -AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
42   -LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY
43   -WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
44   -POSSIBILITY OF SUCH DAMAGE.
45   -
  1 +/* *
  2 + * Copyright (c) 2013, James S. Plank and Kevin Greenan
  3 + * All rights reserved.
  4 + *
  5 + * Jerasure - A C/C++ Library for a Variety of Reed-Solomon and RAID-6 Erasure
  6 + * Coding Techniques
  7 + *
  8 + * Revision 2.0: Galois Field backend now links to GF-Complete
  9 + *
  10 + * Redistribution and use in source and binary forms, with or without
  11 + * modification, are permitted provided that the following conditions
  12 + * are met:
  13 + *
  14 + * - Redistributions of source code must retain the above copyright
  15 + * notice, this list of conditions and the following disclaimer.
  16 + *
  17 + * - Redistributions in binary form must reproduce the above copyright
  18 + * notice, this list of conditions and the following disclaimer in
  19 + * the documentation and/or other materials provided with the
  20 + * distribution.
  21 + *
  22 + * - Neither the name of the University of Tennessee nor the names of its
  23 + * contributors may be used to endorse or promote products derived
  24 + * from this software without specific prior written permission.
  25 + *
  26 + * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
  27 + * "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
  28 + * LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
  29 + * A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
  30 + * HOLDER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT,
  31 + * INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING,
  32 + * BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS
  33 + * OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED
  34 + * AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
  35 + * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY
  36 + * WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
  37 + * POSSIBILITY OF SUCH DAMAGE.
46 38 */
47 39  
  40 +
48 41 #include <stdio.h>
49 42 #include <stdlib.h>
50 43 #include "jerasure.h"
... ...
Examples/jerasure_03.c
1   -/* Examples/jerasure_03.c
2   -Jerasure - A C/C++ Library for a Variety of Reed-Solomon and RAID-6 Erasure Coding Techniques
3   -
4   -Revision 1.2A
5   -May 24, 2011
6   -
7   -James S. Plank
8   -Department of Electrical Engineering and Computer Science
9   -University of Tennessee
10   -Knoxville, TN 37996
11   -plank@cs.utk.edu
12   -
13   -Copyright (c) 2011, James S. Plank
14   -All rights reserved.
15   -
16   -Redistribution and use in source and binary forms, with or without
17   -modification, are permitted provided that the following conditions
18   -are met:
19   -
20   - - Redistributions of source code must retain the above copyright
21   - notice, this list of conditions and the following disclaimer.
22   -
23   - - Redistributions in binary form must reproduce the above copyright
24   - notice, this list of conditions and the following disclaimer in
25   - the documentation and/or other materials provided with the
26   - distribution.
27   -
28   - - Neither the name of the University of Tennessee nor the names of its
29   - contributors may be used to endorse or promote products derived
30   - from this software without specific prior written permission.
31   -
32   -THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
33   -"AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
34   -LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
35   -A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
36   -HOLDER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT,
37   -INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING,
38   -BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS
39   -OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED
40   -AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
41   -LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY
42   -WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
43   -POSSIBILITY OF SUCH DAMAGE.
44   -
45   -
  1 +/* *
  2 + * Copyright (c) 2013, James S. Plank and Kevin Greenan
  3 + * All rights reserved.
  4 + *
  5 + * Jerasure - A C/C++ Library for a Variety of Reed-Solomon and RAID-6 Erasure
  6 + * Coding Techniques
  7 + *
  8 + * Revision 2.0: Galois Field backend now links to GF-Complete
  9 + *
  10 + * Redistribution and use in source and binary forms, with or without
  11 + * modification, are permitted provided that the following conditions
  12 + * are met:
  13 + *
  14 + * - Redistributions of source code must retain the above copyright
  15 + * notice, this list of conditions and the following disclaimer.
  16 + *
  17 + * - Redistributions in binary form must reproduce the above copyright
  18 + * notice, this list of conditions and the following disclaimer in
  19 + * the documentation and/or other materials provided with the
  20 + * distribution.
  21 + *
  22 + * - Neither the name of the University of Tennessee nor the names of its
  23 + * contributors may be used to endorse or promote products derived
  24 + * from this software without specific prior written permission.
  25 + *
  26 + * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
  27 + * "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
  28 + * LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
  29 + * A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
  30 + * HOLDER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT,
  31 + * INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING,
  32 + * BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS
  33 + * OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED
  34 + * AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
  35 + * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY
  36 + * WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
  37 + * POSSIBILITY OF SUCH DAMAGE.
46 38 */
  39 +
47 40  
48 41  
49 42 #include <stdio.h>
... ...
Examples/jerasure_04.c
1   -/* Examples/jerasure_04.c
2   -Jerasure - A C/C++ Library for a Variety of Reed-Solomon and RAID-6 Erasure Coding Techniques
3   -
4   -Revision 1.2A
5   -May 24, 2011
6   -
7   -James S. Plank
8   -Department of Electrical Engineering and Computer Science
9   -University of Tennessee
10   -Knoxville, TN 37996
11   -plank@cs.utk.edu
12   -
13   -Copyright (c) 2011, James S. Plank
14   -All rights reserved.
15   -
16   -Redistribution and use in source and binary forms, with or without
17   -modification, are permitted provided that the following conditions
18   -are met:
19   -
20   - - Redistributions of source code must retain the above copyright
21   - notice, this list of conditions and the following disclaimer.
22   -
23   - - Redistributions in binary form must reproduce the above copyright
24   - notice, this list of conditions and the following disclaimer in
25   - the documentation and/or other materials provided with the
26   - distribution.
27   -
28   - - Neither the name of the University of Tennessee nor the names of its
29   - contributors may be used to endorse or promote products derived
30   - from this software without specific prior written permission.
31   -
32   -THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
33   -"AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
34   -LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
35   -A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
36   -HOLDER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT,
37   -INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING,
38   -BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS
39   -OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED
40   -AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
41   -LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY
42   -WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
43   -POSSIBILITY OF SUCH DAMAGE.
44   -
45   -
  1 +/* *
  2 + * Copyright (c) 2013, James S. Plank and Kevin Greenan
  3 + * All rights reserved.
  4 + *
  5 + * Jerasure - A C/C++ Library for a Variety of Reed-Solomon and RAID-6 Erasure
  6 + * Coding Techniques
  7 + *
  8 + * Revision 2.0: Galois Field backend now links to GF-Complete
  9 + *
  10 + * Redistribution and use in source and binary forms, with or without
  11 + * modification, are permitted provided that the following conditions
  12 + * are met:
  13 + *
  14 + * - Redistributions of source code must retain the above copyright
  15 + * notice, this list of conditions and the following disclaimer.
  16 + *
  17 + * - Redistributions in binary form must reproduce the above copyright
  18 + * notice, this list of conditions and the following disclaimer in
  19 + * the documentation and/or other materials provided with the
  20 + * distribution.
  21 + *
  22 + * - Neither the name of the University of Tennessee nor the names of its
  23 + * contributors may be used to endorse or promote products derived
  24 + * from this software without specific prior written permission.
  25 + *
  26 + * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
  27 + * "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
  28 + * LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
  29 + * A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
  30 + * HOLDER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT,
  31 + * INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING,
  32 + * BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS
  33 + * OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED
  34 + * AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
  35 + * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY
  36 + * WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
  37 + * POSSIBILITY OF SUCH DAMAGE.
46 38 */
  39 +
47 40  
48 41 #include <stdio.h>
49 42 #include <stdlib.h>
... ...
Examples/jerasure_05.c
1   -/* Examples/jerasure_05.c
2   -Jerasure - A C/C++ Library for a Variety of Reed-Solomon and RAID-6 Erasure Coding Techniques
3   -
4   -Revision 1.2A
5   -May 24, 2011
6   -
7   -James S. Plank
8   -Department of Electrical Engineering and Computer Science
9   -University of Tennessee
10   -Knoxville, TN 37996
11   -plank@cs.utk.edu
12   -
13   -Copyright (c) 2011, James S. Plank
14   -All rights reserved.
15   -
16   -Redistribution and use in source and binary forms, with or without
17   -modification, are permitted provided that the following conditions
18   -are met:
19   -
20   - - Redistributions of source code must retain the above copyright
21   - notice, this list of conditions and the following disclaimer.
22   -
23   - - Redistributions in binary form must reproduce the above copyright
24   - notice, this list of conditions and the following disclaimer in
25   - the documentation and/or other materials provided with the
26   - distribution.
27   -
28   - - Neither the name of the University of Tennessee nor the names of its
29   - contributors may be used to endorse or promote products derived
30   - from this software without specific prior written permission.
31   -
32   -THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
33   -"AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
34   -LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
35   -A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
36   -HOLDER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT,
37   -INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING,
38   -BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS
39   -OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED
40   -AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
41   -LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY
42   -WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
43   -POSSIBILITY OF SUCH DAMAGE.
44   -
  1 +/* *
  2 + * Copyright (c) 2013, James S. Plank and Kevin Greenan
  3 + * All rights reserved.
  4 + *
  5 + * Jerasure - A C/C++ Library for a Variety of Reed-Solomon and RAID-6 Erasure
  6 + * Coding Techniques
  7 + *
  8 + * Revision 2.0: Galois Field backend now links to GF-Complete
  9 + *
  10 + * Redistribution and use in source and binary forms, with or without
  11 + * modification, are permitted provided that the following conditions
  12 + * are met:
  13 + *
  14 + * - Redistributions of source code must retain the above copyright
  15 + * notice, this list of conditions and the following disclaimer.
  16 + *
  17 + * - Redistributions in binary form must reproduce the above copyright
  18 + * notice, this list of conditions and the following disclaimer in
  19 + * the documentation and/or other materials provided with the
  20 + * distribution.
  21 + *
  22 + * - Neither the name of the University of Tennessee nor the names of its
  23 + * contributors may be used to endorse or promote products derived
  24 + * from this software without specific prior written permission.
  25 + *
  26 + * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
  27 + * "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
  28 + * LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
  29 + * A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
  30 + * HOLDER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT,
  31 + * INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING,
  32 + * BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS
  33 + * OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED
  34 + * AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
  35 + * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY
  36 + * WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
  37 + * POSSIBILITY OF SUCH DAMAGE.
45 38 */
  39 +
46 40  
47 41  
48 42 /*
... ...
Examples/jerasure_06.c
1   -/* Examples/jerasure_06.c
2   -Jerasure - A C/C++ Library for a Variety of Reed-Solomon and RAID-6 Erasure Coding Techniques
3   -
4   -Revision 1.2A
5   -May 24, 2011
6   -
7   -James S. Plank
8   -Department of Electrical Engineering and Computer Science
9   -University of Tennessee
10   -Knoxville, TN 37996
11   -plank@cs.utk.edu
12   -
13   -Copyright (c) 2011, James S. Plank
14   -All rights reserved.
15   -
16   -Redistribution and use in source and binary forms, with or without
17   -modification, are permitted provided that the following conditions
18   -are met:
19   -
20   - - Redistributions of source code must retain the above copyright
21   - notice, this list of conditions and the following disclaimer.
22   -
23   - - Redistributions in binary form must reproduce the above copyright
24   - notice, this list of conditions and the following disclaimer in
25   - the documentation and/or other materials provided with the
26   - distribution.
27   -
28   - - Neither the name of the University of Tennessee nor the names of its
29