5 power(Value v
, int max
) {
6 powers
= Vector_Alloc(max
+1);
8 value_set_si(powers
->p
[0], 1);
10 value_assign(powers
->p
[1], v
);
16 Value
*operator[](int exp
) {
18 assert(exp
< powers
->Size
);
20 value_multiply(powers
->p
[n
], powers
->p
[n
-1], powers
->p
[1]);
21 return &powers
->p
[exp
];