Page 1 of 1

Where is “struct _ntl_gbigint_body” defined?

PostPosted: Thu Feb 23, 2017 6:53 am
by nanxiao
I try to find where struct _ntl_gbigint_body is defined, but can't find it:
Code: Select all
$ grep -r _ntl_gbigint_body *
include/NTL/ZZ.h:WrappedPtr<_ntl_gbigint_body, Deleter> rep;
include/NTL/lip.h:struct _ntl_gbigint_body;
include/NTL/lip.h:typedef _ntl_gbigint_body *_ntl_gbigint;
Binary file src/RR.o matches
.....
Binary file src/GF2E.o matches
src/lip.cpp:typedef WrappedPtr<_ntl_gbigint_body, _ntl_gbigint_deleter> _ntl_gbigint_wrapped;
Binary file src/mat_ZZ_p.o matches
......


Just curious about what is the magic behind struct _ntl_gbigint_body?

Re: Where is “struct _ntl_gbigint_body” defined?

PostPosted: Fri Jul 07, 2017 3:16 pm
by victorshoup
Oh, it's never defined. I could have used a void *, but using some other pointer is better at catching bugs.
It eventually gets cast to a pointer to a particular type (usually unsigned long), depending
on the long integer package.