5 void fe_invert(int32_t out[10], int32_t z[10]) {
12 /* qhasm: z2 = z1^2^1 */
13 fe_sq(t0,z); for (i = 1;i < 1;++i) fe_sq(t0,t0);
15 /* qhasm: z8 = z2^2^2 */
16 fe_sq(t1,t0); for (i = 1;i < 2;++i) fe_sq(t1,t1);
18 /* qhasm: z9 = z1*z8 */
21 /* qhasm: z11 = z2*z9 */
24 /* qhasm: z22 = z11^2^1 */
25 fe_sq(t2,t0); for (i = 1;i < 1;++i) fe_sq(t2,t2);
27 /* qhasm: z_5_0 = z9*z22 */
30 /* qhasm: z_10_5 = z_5_0^2^5 */
31 fe_sq(t2,t1); for (i = 1;i < 5;++i) fe_sq(t2,t2);
33 /* qhasm: z_10_0 = z_10_5*z_5_0 */
36 /* qhasm: z_20_10 = z_10_0^2^10 */
37 fe_sq(t2,t1); for (i = 1;i < 10;++i) fe_sq(t2,t2);
39 /* qhasm: z_20_0 = z_20_10*z_10_0 */
42 /* qhasm: z_40_20 = z_20_0^2^20 */
43 fe_sq(t3,t2); for (i = 1;i < 20;++i) fe_sq(t3,t3);
45 /* qhasm: z_40_0 = z_40_20*z_20_0 */
48 /* qhasm: z_50_10 = z_40_0^2^10 */
49 fe_sq(t2,t2); for (i = 1;i < 10;++i) fe_sq(t2,t2);
51 /* qhasm: z_50_0 = z_50_10*z_10_0 */
54 /* qhasm: z_100_50 = z_50_0^2^50 */
55 fe_sq(t2,t1); for (i = 1;i < 50;++i) fe_sq(t2,t2);
57 /* qhasm: z_100_0 = z_100_50*z_50_0 */
60 /* qhasm: z_200_100 = z_100_0^2^100 */
61 fe_sq(t3,t2); for (i = 1;i < 100;++i) fe_sq(t3,t3);
63 /* qhasm: z_200_0 = z_200_100*z_100_0 */
66 /* qhasm: z_250_50 = z_200_0^2^50 */
67 fe_sq(t2,t2); for (i = 1;i < 50;++i) fe_sq(t2,t2);
69 /* qhasm: z_250_0 = z_250_50*z_50_0 */
72 /* qhasm: z_255_5 = z_250_0^2^5 */
73 fe_sq(t1,t1); for (i = 1;i < 5;++i) fe_sq(t1,t1);
75 /* qhasm: z_255_21 = z_255_5*z11 */