make galois_init_default_field(int w) extern
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)
add missing return value to functions that require it
Signed-off-by: Loic Dachary <loic@dachary.org>
(cherry picked from commit
d4730bfd7d7c65850221083dcaf837a3a5672fe8)
remove unused variables
Signed-off-by: Loic Dachary <loic@dachary.org>
(cherry picked from commit
87f301084ddccf58c5206d949209b49adecccf55)
Fixed some compiler warnings.