/usr/include/NTL/ZZ_limbs.h is in libntl-dev 10.5.0-2.
This file is owned by root:root, with mode 0o644.
The actual contents of the file can be viewed below.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 | #ifndef NTL_ZZ_limbs__H
#define NTL_ZZ_limbs__H
#include <NTL/ZZ.h>
#ifdef NTL_GMP_LIP
#include <gmp.h>
#endif
#ifdef NTL_GMP_LIP
typedef mp_limb_t _ntl_limb_t;
#else
typedef unsigned long _ntl_limb_t;
#define NTL_BITS_PER_LIMB_T NTL_BITS_PER_LONG
#endif
void _ntl_glimbs_set(const _ntl_limb_t *p, long n, _ntl_gbigint *x);
// DIRT: This exposes some internals that shoup be in lip.cpp,
// but are here to make it inline.
inline
const _ntl_limb_t * _ntl_glimbs_get(_ntl_gbigint p)
{ return p ? ((_ntl_limb_t *) (((long *) (p)) + 2)) : 0; }
NTL_OPEN_NNS
typedef _ntl_limb_t ZZ_limb_t;
inline
void ZZ_limbs_set(ZZ& x, const ZZ_limb_t *p, long n)
{
_ntl_glimbs_set(p, n, &x.rep);
}
inline
const ZZ_limb_t * ZZ_limbs_get(const ZZ& a)
{
return _ntl_glimbs_get(a.rep);
}
NTL_CLOSE_NNS
#endif
|