Definition at line 361 of file aring-CC.hpp.
362 {
366 if (n == 0)
367 {
368 }
369 else if (n < 0)
370 {
371 n = -n;
373 }
374 else
375 {
377 }
378 while (n > 0)
379 {
380 if (n % 2)
381 {
383 }
384 n = n / 2;
385 mult(curr_pow, curr_pow, curr_pow);
386 }
388 }
void set_from_long(ElementType &result, long a) const
void invert(ElementType &res, const ElementType &a) const
void set(ElementType &result, const ElementType &a) const
void mult(ElementType &res, const ElementType &a, const RealElementType &b) const
void init(ElementType &result) const
static void clear(ElementType &result)
VALGRIND_MAKE_MEM_DEFINED & result(result)
References clear(), init(), invert(), mult(), result(), set(), and set_from_long().
Referenced by power_mpz(), and TEST().