]> git-server-git.apps.pok.os.sepia.ceph.com Git - jerasure.git/commit
make galois_init_default_field(int w) extern
authorLoic Dachary <loic@dachary.org>
Tue, 8 Apr 2014 22:05:18 +0000 (00:05 +0200)
committerLoic Dachary <loic@dachary.org>
Wed, 9 Apr 2014 05:41:53 +0000 (07:41 +0200)
commitaf8d2bcd3abb3af1fb6952aa9062570127f2415a
treee23746c4063f675ed822f958aeaf21793d749b79
parentea60180e1147522fa4fee1f204c5b62fd623f7d9
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)
include/galois.h
src/galois.c