Macaulay2 Engine
Loading...
Searching...
No Matches

◆ rawFareyApproximation()

gmp_QQ rawFareyApproximation ( gmp_RR x,
gmp_ZZ height )

Definition at line 161 of file random.cpp.

163{
164 mpq_ptr result = getmemstructtype(mpq_ptr);
165 mpq_init(result);
167 return moveTo_gmpQQ(result);
168}
gmp_QQ moveTo_gmpQQ(mpq_ptr z)
Definition gmp-util.h:58
VALGRIND_MAKE_MEM_DEFINED & result(result)
#define getmemstructtype(S)
Definition m2-mem.h:143
volatile int x
void rawSetFareyApproximation(mpq_ptr result, gmp_RR x, gmp_ZZ height)
Definition random.cpp:83

References getmemstructtype, moveTo_gmpQQ(), rawSetFareyApproximation(), result(), and x.