cdef extern from "ntl_wrap.h":
ctypedef struct GF2_c "struct GF2":
pass
GF2_c* GF2_new "New<GF2>"()
GF2_c* GF2_construct "Construct<GF2>"(void *mem)
void GF2_destruct "Destruct<GF2>"(GF2_c *mem)
void GF2_delete "Delete<GF2>"(GF2_c *mem)
void GF2_from_str "_from_str<GF2>"(GF2_c* dest, char* s)
object GF2_to_PyString "_to_PyString<GF2>"(GF2_c *x)
int GF2_equal "_equal<GF2>"(GF2_c x, GF2_c y)
int GF2_IsOne "IsOne"(GF2_c x)
int GF2_IsZero "IsZero"(GF2_c x)
void GF2_add "add"( GF2_c x, GF2_c a, GF2_c b)
void GF2_sub "sub"( GF2_c x, GF2_c a, GF2_c b)
void GF2_mul "mul"( GF2_c x, GF2_c a, GF2_c b)
void GF2_div "div"( GF2_c x, GF2_c a, GF2_c b)
void GF2_negate "negate"(GF2_c x, GF2_c a)
void GF2_power "power"(GF2_c t, GF2_c x, long e)
long GF2_deg "deg"(GF2_c x)
void GF2_conv_long "conv" (GF2_c x, long i)
long GF2_conv_to_long "rep" (GF2_c x)