25 Dec, 2014

1 commit

  • When a fatal error (unaligned memory etc.) is detected, jerasure
    should assert(3) instead of exit(3) to give a chance to the calling
    program to catch the exception and display a stack trace. Although it is
    possible for gdb to display the stack trace and break on exit, libraries
    are not usually expected to terminate the calling program in this way.
    
    Signed-off-by: Loic Dachary <loic@dachary.org>
    (cherry picked from commit 36008101d5fd1e3d19230828c0eb231869569893)
    Loic Dachary
     

09 Jun, 2014

1 commit

  • 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>
    (cherry picked from commit 1b30a37c9f75df371cf4deaedfde6b843933b4f0)
    Loic Dachary
     

09 Apr, 2014

1 commit

  • So that the application can initialize gfp_array and gfp_is_composite
    instead of relying on initialization happening implicitly when the
    multiply or xor functions are called. The init function can be called
    once when the application guarantees thread safety. And the multiply and
    xor functions can be called from multiple threads without risking races.
    
    Signed-off-by: Loic Dachary <loic@dachary.org>
    (cherry picked from commit 5c9577172c9ba29890c821692dd4a9f9790b20d8)
    Loic Dachary
     

06 Mar, 2014

1 commit


25 Jan, 2014

1 commit


27 Dec, 2013

1 commit


20 Dec, 2013

1 commit


24 Nov, 2013

1 commit


23 Nov, 2013

1 commit


16 Oct, 2013

1 commit


15 Oct, 2013

1 commit


07 Oct, 2013

1 commit


01 Oct, 2013

1 commit