Merged in dachary/jerasure/wip-init (pull request #17)
make galois_init_default_field(int w) externmaster
commit
9e6b3483a3
|
@ -46,6 +46,7 @@
|
||||||
extern "C" {
|
extern "C" {
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
extern void galois_init_default_field(int w);
|
||||||
extern void galois_change_technique(gf_t *gf, int w);
|
extern void galois_change_technique(gf_t *gf, int w);
|
||||||
|
|
||||||
extern int galois_single_multiply(int a, int b, int w);
|
extern int galois_single_multiply(int a, int b, int w);
|
||||||
|
|
|
@ -168,7 +168,7 @@ gf_t* galois_init_composite_field(int w,
|
||||||
return gfp;
|
return gfp;
|
||||||
}
|
}
|
||||||
|
|
||||||
static void galois_init_default_field(int w)
|
void galois_init_default_field(int w)
|
||||||
{
|
{
|
||||||
if (w <= 0 || w > 32) {
|
if (w <= 0 || w > 32) {
|
||||||
fprintf(stderr, "ERROR -- cannot init default Galois field for w=%d\n", w);
|
fprintf(stderr, "ERROR -- cannot init default Galois field for w=%d\n", w);
|
||||||
|
|
Loading…
Reference in New Issue