1
0

pow225521.h 5.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160
  1. /* qhasm: fe z1 */
  2. /* qhasm: fe z2 */
  3. /* qhasm: fe z8 */
  4. /* qhasm: fe z9 */
  5. /* qhasm: fe z11 */
  6. /* qhasm: fe z22 */
  7. /* qhasm: fe z_5_0 */
  8. /* qhasm: fe z_10_5 */
  9. /* qhasm: fe z_10_0 */
  10. /* qhasm: fe z_20_10 */
  11. /* qhasm: fe z_20_0 */
  12. /* qhasm: fe z_40_20 */
  13. /* qhasm: fe z_40_0 */
  14. /* qhasm: fe z_50_10 */
  15. /* qhasm: fe z_50_0 */
  16. /* qhasm: fe z_100_50 */
  17. /* qhasm: fe z_100_0 */
  18. /* qhasm: fe z_200_100 */
  19. /* qhasm: fe z_200_0 */
  20. /* qhasm: fe z_250_50 */
  21. /* qhasm: fe z_250_0 */
  22. /* qhasm: fe z_255_5 */
  23. /* qhasm: fe z_255_21 */
  24. /* qhasm: enter pow225521 */
  25. /* qhasm: z2 = z1^2^1 */
  26. /* asm 1: fe_sq(>z2=fe#1,<z1=fe#11); for (i = 1;i < 1;++i) fe_sq(>z2=fe#1,>z2=fe#1); */
  27. /* asm 2: fe_sq(>z2=t0,<z1=z); for (i = 1;i < 1;++i) fe_sq(>z2=t0,>z2=t0); */
  28. fe_sq(t0,z); for (i = 1;i < 1;++i) fe_sq(t0,t0);
  29. /* qhasm: z8 = z2^2^2 */
  30. /* asm 1: fe_sq(>z8=fe#2,<z2=fe#1); for (i = 1;i < 2;++i) fe_sq(>z8=fe#2,>z8=fe#2); */
  31. /* asm 2: fe_sq(>z8=t1,<z2=t0); for (i = 1;i < 2;++i) fe_sq(>z8=t1,>z8=t1); */
  32. fe_sq(t1,t0); for (i = 1;i < 2;++i) fe_sq(t1,t1);
  33. /* qhasm: z9 = z1*z8 */
  34. /* asm 1: fe_mul(>z9=fe#2,<z1=fe#11,<z8=fe#2); */
  35. /* asm 2: fe_mul(>z9=t1,<z1=z,<z8=t1); */
  36. fe_mul(t1,z,t1);
  37. /* qhasm: z11 = z2*z9 */
  38. /* asm 1: fe_mul(>z11=fe#1,<z2=fe#1,<z9=fe#2); */
  39. /* asm 2: fe_mul(>z11=t0,<z2=t0,<z9=t1); */
  40. fe_mul(t0,t0,t1);
  41. /* qhasm: z22 = z11^2^1 */
  42. /* asm 1: fe_sq(>z22=fe#3,<z11=fe#1); for (i = 1;i < 1;++i) fe_sq(>z22=fe#3,>z22=fe#3); */
  43. /* asm 2: fe_sq(>z22=t2,<z11=t0); for (i = 1;i < 1;++i) fe_sq(>z22=t2,>z22=t2); */
  44. fe_sq(t2,t0); for (i = 1;i < 1;++i) fe_sq(t2,t2);
  45. /* qhasm: z_5_0 = z9*z22 */
  46. /* asm 1: fe_mul(>z_5_0=fe#2,<z9=fe#2,<z22=fe#3); */
  47. /* asm 2: fe_mul(>z_5_0=t1,<z9=t1,<z22=t2); */
  48. fe_mul(t1,t1,t2);
  49. /* qhasm: z_10_5 = z_5_0^2^5 */
  50. /* asm 1: fe_sq(>z_10_5=fe#3,<z_5_0=fe#2); for (i = 1;i < 5;++i) fe_sq(>z_10_5=fe#3,>z_10_5=fe#3); */
  51. /* asm 2: fe_sq(>z_10_5=t2,<z_5_0=t1); for (i = 1;i < 5;++i) fe_sq(>z_10_5=t2,>z_10_5=t2); */
  52. fe_sq(t2,t1); for (i = 1;i < 5;++i) fe_sq(t2,t2);
  53. /* qhasm: z_10_0 = z_10_5*z_5_0 */
  54. /* asm 1: fe_mul(>z_10_0=fe#2,<z_10_5=fe#3,<z_5_0=fe#2); */
  55. /* asm 2: fe_mul(>z_10_0=t1,<z_10_5=t2,<z_5_0=t1); */
  56. fe_mul(t1,t2,t1);
  57. /* qhasm: z_20_10 = z_10_0^2^10 */
  58. /* asm 1: fe_sq(>z_20_10=fe#3,<z_10_0=fe#2); for (i = 1;i < 10;++i) fe_sq(>z_20_10=fe#3,>z_20_10=fe#3); */
  59. /* asm 2: fe_sq(>z_20_10=t2,<z_10_0=t1); for (i = 1;i < 10;++i) fe_sq(>z_20_10=t2,>z_20_10=t2); */
  60. fe_sq(t2,t1); for (i = 1;i < 10;++i) fe_sq(t2,t2);
  61. /* qhasm: z_20_0 = z_20_10*z_10_0 */
  62. /* asm 1: fe_mul(>z_20_0=fe#3,<z_20_10=fe#3,<z_10_0=fe#2); */
  63. /* asm 2: fe_mul(>z_20_0=t2,<z_20_10=t2,<z_10_0=t1); */
  64. fe_mul(t2,t2,t1);
  65. /* qhasm: z_40_20 = z_20_0^2^20 */
  66. /* asm 1: fe_sq(>z_40_20=fe#4,<z_20_0=fe#3); for (i = 1;i < 20;++i) fe_sq(>z_40_20=fe#4,>z_40_20=fe#4); */
  67. /* asm 2: fe_sq(>z_40_20=t3,<z_20_0=t2); for (i = 1;i < 20;++i) fe_sq(>z_40_20=t3,>z_40_20=t3); */
  68. fe_sq(t3,t2); for (i = 1;i < 20;++i) fe_sq(t3,t3);
  69. /* qhasm: z_40_0 = z_40_20*z_20_0 */
  70. /* asm 1: fe_mul(>z_40_0=fe#3,<z_40_20=fe#4,<z_20_0=fe#3); */
  71. /* asm 2: fe_mul(>z_40_0=t2,<z_40_20=t3,<z_20_0=t2); */
  72. fe_mul(t2,t3,t2);
  73. /* qhasm: z_50_10 = z_40_0^2^10 */
  74. /* asm 1: fe_sq(>z_50_10=fe#3,<z_40_0=fe#3); for (i = 1;i < 10;++i) fe_sq(>z_50_10=fe#3,>z_50_10=fe#3); */
  75. /* asm 2: fe_sq(>z_50_10=t2,<z_40_0=t2); for (i = 1;i < 10;++i) fe_sq(>z_50_10=t2,>z_50_10=t2); */
  76. fe_sq(t2,t2); for (i = 1;i < 10;++i) fe_sq(t2,t2);
  77. /* qhasm: z_50_0 = z_50_10*z_10_0 */
  78. /* asm 1: fe_mul(>z_50_0=fe#2,<z_50_10=fe#3,<z_10_0=fe#2); */
  79. /* asm 2: fe_mul(>z_50_0=t1,<z_50_10=t2,<z_10_0=t1); */
  80. fe_mul(t1,t2,t1);
  81. /* qhasm: z_100_50 = z_50_0^2^50 */
  82. /* asm 1: fe_sq(>z_100_50=fe#3,<z_50_0=fe#2); for (i = 1;i < 50;++i) fe_sq(>z_100_50=fe#3,>z_100_50=fe#3); */
  83. /* asm 2: fe_sq(>z_100_50=t2,<z_50_0=t1); for (i = 1;i < 50;++i) fe_sq(>z_100_50=t2,>z_100_50=t2); */
  84. fe_sq(t2,t1); for (i = 1;i < 50;++i) fe_sq(t2,t2);
  85. /* qhasm: z_100_0 = z_100_50*z_50_0 */
  86. /* asm 1: fe_mul(>z_100_0=fe#3,<z_100_50=fe#3,<z_50_0=fe#2); */
  87. /* asm 2: fe_mul(>z_100_0=t2,<z_100_50=t2,<z_50_0=t1); */
  88. fe_mul(t2,t2,t1);
  89. /* qhasm: z_200_100 = z_100_0^2^100 */
  90. /* asm 1: fe_sq(>z_200_100=fe#4,<z_100_0=fe#3); for (i = 1;i < 100;++i) fe_sq(>z_200_100=fe#4,>z_200_100=fe#4); */
  91. /* asm 2: fe_sq(>z_200_100=t3,<z_100_0=t2); for (i = 1;i < 100;++i) fe_sq(>z_200_100=t3,>z_200_100=t3); */
  92. fe_sq(t3,t2); for (i = 1;i < 100;++i) fe_sq(t3,t3);
  93. /* qhasm: z_200_0 = z_200_100*z_100_0 */
  94. /* asm 1: fe_mul(>z_200_0=fe#3,<z_200_100=fe#4,<z_100_0=fe#3); */
  95. /* asm 2: fe_mul(>z_200_0=t2,<z_200_100=t3,<z_100_0=t2); */
  96. fe_mul(t2,t3,t2);
  97. /* qhasm: z_250_50 = z_200_0^2^50 */
  98. /* asm 1: fe_sq(>z_250_50=fe#3,<z_200_0=fe#3); for (i = 1;i < 50;++i) fe_sq(>z_250_50=fe#3,>z_250_50=fe#3); */
  99. /* asm 2: fe_sq(>z_250_50=t2,<z_200_0=t2); for (i = 1;i < 50;++i) fe_sq(>z_250_50=t2,>z_250_50=t2); */
  100. fe_sq(t2,t2); for (i = 1;i < 50;++i) fe_sq(t2,t2);
  101. /* qhasm: z_250_0 = z_250_50*z_50_0 */
  102. /* asm 1: fe_mul(>z_250_0=fe#2,<z_250_50=fe#3,<z_50_0=fe#2); */
  103. /* asm 2: fe_mul(>z_250_0=t1,<z_250_50=t2,<z_50_0=t1); */
  104. fe_mul(t1,t2,t1);
  105. /* qhasm: z_255_5 = z_250_0^2^5 */
  106. /* asm 1: fe_sq(>z_255_5=fe#2,<z_250_0=fe#2); for (i = 1;i < 5;++i) fe_sq(>z_255_5=fe#2,>z_255_5=fe#2); */
  107. /* asm 2: fe_sq(>z_255_5=t1,<z_250_0=t1); for (i = 1;i < 5;++i) fe_sq(>z_255_5=t1,>z_255_5=t1); */
  108. fe_sq(t1,t1); for (i = 1;i < 5;++i) fe_sq(t1,t1);
  109. /* qhasm: z_255_21 = z_255_5*z11 */
  110. /* asm 1: fe_mul(>z_255_21=fe#12,<z_255_5=fe#2,<z11=fe#1); */
  111. /* asm 2: fe_mul(>z_255_21=out,<z_255_5=t1,<z11=t0); */
  112. fe_mul(out,t1,t0);
  113. /* qhasm: return */