ref: 5667f2e915e89cfda69b3be28b612d59fea1d56b
dir: /libmp/mpfield.c/
#include "os.h" #include <mp.h> #include "dat.h" mpint* mpfield(mpint *N) { Mfield *f; if(N == nil || N->flags & (MPfield|MPstatic)) return N; if((f = cnfield(N)) != nil) goto Exchange; if((f = gmfield(N)) != nil) goto Exchange; return N; Exchange: setmalloctag(f, getcallerpc(&N)); mpfree(N); return (mpint*)f; }