Commit Graph

6 Commits (master)

Author SHA1 Message Date
Brad Hubbard 31cd20f7f3 Resolve cppcheck Signed integer overflow error
The type of expression '1<<31' is signed int and this causes cppcheck to
issue the following warning.

src/gf_w32.c:681]: (error) Signed integer overflow for expression
'1<<31'.

Signed-off-by: Brad Hubbard <bhubbard@redhat.com>
2017-04-10 17:47:45 +10:00
Loic Dachary 36008101d5 use assert(0) instead of exit(1)
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>
2014-12-15 12:08:37 +01:00
Loic Dachary 87f301084d remove unused variables
Signed-off-by: Loic Dachary <loic@dachary.org>
2014-03-06 01:38:29 +01:00
Jim Plank be40b4e549 Revision 2.0 is ready for prime time! 2014-01-25 10:55:29 -05:00
Kevin Greenan c4ab254bbc Do SIMD XOR, where possible! 2013-12-20 08:21:46 -08:00
Kevin Greenan 00a17c0a7a Setup autoconf to work with Jerasure 2013-12-04 23:08:08 -08:00