1
0

pow22523.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_252_2 */
  23. /* qhasm: fe z_252_3 */
  24. /* qhasm: enter pow22523 */
  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#1,<z11=fe#1); for (i = 1;i < 1;++i) fe_sq(>z22=fe#1,>z22=fe#1); */
  43. /* asm 2: fe_sq(>z22=t0,<z11=t0); for (i = 1;i < 1;++i) fe_sq(>z22=t0,>z22=t0); */
  44. fe_sq(t0,t0); for (i = 1;i < 1;++i) fe_sq(t0,t0);
  45. /* qhasm: z_5_0 = z9*z22 */
  46. /* asm 1: fe_mul(>z_5_0=fe#1,<z9=fe#2,<z22=fe#1); */
  47. /* asm 2: fe_mul(>z_5_0=t0,<z9=t1,<z22=t0); */
  48. fe_mul(t0,t1,t0);
  49. /* qhasm: z_10_5 = z_5_0^2^5 */
  50. /* asm 1: fe_sq(>z_10_5=fe#2,<z_5_0=fe#1); for (i = 1;i < 5;++i) fe_sq(>z_10_5=fe#2,>z_10_5=fe#2); */
  51. /* asm 2: fe_sq(>z_10_5=t1,<z_5_0=t0); for (i = 1;i < 5;++i) fe_sq(>z_10_5=t1,>z_10_5=t1); */
  52. fe_sq(t1,t0); for (i = 1;i < 5;++i) fe_sq(t1,t1);
  53. /* qhasm: z_10_0 = z_10_5*z_5_0 */
  54. /* asm 1: fe_mul(>z_10_0=fe#1,<z_10_5=fe#2,<z_5_0=fe#1); */
  55. /* asm 2: fe_mul(>z_10_0=t0,<z_10_5=t1,<z_5_0=t0); */
  56. fe_mul(t0,t1,t0);
  57. /* qhasm: z_20_10 = z_10_0^2^10 */
  58. /* asm 1: fe_sq(>z_20_10=fe#2,<z_10_0=fe#1); for (i = 1;i < 10;++i) fe_sq(>z_20_10=fe#2,>z_20_10=fe#2); */
  59. /* asm 2: fe_sq(>z_20_10=t1,<z_10_0=t0); for (i = 1;i < 10;++i) fe_sq(>z_20_10=t1,>z_20_10=t1); */
  60. fe_sq(t1,t0); for (i = 1;i < 10;++i) fe_sq(t1,t1);
  61. /* qhasm: z_20_0 = z_20_10*z_10_0 */
  62. /* asm 1: fe_mul(>z_20_0=fe#2,<z_20_10=fe#2,<z_10_0=fe#1); */
  63. /* asm 2: fe_mul(>z_20_0=t1,<z_20_10=t1,<z_10_0=t0); */
  64. fe_mul(t1,t1,t0);
  65. /* qhasm: z_40_20 = z_20_0^2^20 */
  66. /* asm 1: fe_sq(>z_40_20=fe#3,<z_20_0=fe#2); for (i = 1;i < 20;++i) fe_sq(>z_40_20=fe#3,>z_40_20=fe#3); */
  67. /* asm 2: fe_sq(>z_40_20=t2,<z_20_0=t1); for (i = 1;i < 20;++i) fe_sq(>z_40_20=t2,>z_40_20=t2); */
  68. fe_sq(t2,t1); for (i = 1;i < 20;++i) fe_sq(t2,t2);
  69. /* qhasm: z_40_0 = z_40_20*z_20_0 */
  70. /* asm 1: fe_mul(>z_40_0=fe#2,<z_40_20=fe#3,<z_20_0=fe#2); */
  71. /* asm 2: fe_mul(>z_40_0=t1,<z_40_20=t2,<z_20_0=t1); */
  72. fe_mul(t1,t2,t1);
  73. /* qhasm: z_50_10 = z_40_0^2^10 */
  74. /* asm 1: fe_sq(>z_50_10=fe#2,<z_40_0=fe#2); for (i = 1;i < 10;++i) fe_sq(>z_50_10=fe#2,>z_50_10=fe#2); */
  75. /* asm 2: fe_sq(>z_50_10=t1,<z_40_0=t1); for (i = 1;i < 10;++i) fe_sq(>z_50_10=t1,>z_50_10=t1); */
  76. fe_sq(t1,t1); for (i = 1;i < 10;++i) fe_sq(t1,t1);
  77. /* qhasm: z_50_0 = z_50_10*z_10_0 */
  78. /* asm 1: fe_mul(>z_50_0=fe#1,<z_50_10=fe#2,<z_10_0=fe#1); */
  79. /* asm 2: fe_mul(>z_50_0=t0,<z_50_10=t1,<z_10_0=t0); */
  80. fe_mul(t0,t1,t0);
  81. /* qhasm: z_100_50 = z_50_0^2^50 */
  82. /* asm 1: fe_sq(>z_100_50=fe#2,<z_50_0=fe#1); for (i = 1;i < 50;++i) fe_sq(>z_100_50=fe#2,>z_100_50=fe#2); */
  83. /* asm 2: fe_sq(>z_100_50=t1,<z_50_0=t0); for (i = 1;i < 50;++i) fe_sq(>z_100_50=t1,>z_100_50=t1); */
  84. fe_sq(t1,t0); for (i = 1;i < 50;++i) fe_sq(t1,t1);
  85. /* qhasm: z_100_0 = z_100_50*z_50_0 */
  86. /* asm 1: fe_mul(>z_100_0=fe#2,<z_100_50=fe#2,<z_50_0=fe#1); */
  87. /* asm 2: fe_mul(>z_100_0=t1,<z_100_50=t1,<z_50_0=t0); */
  88. fe_mul(t1,t1,t0);
  89. /* qhasm: z_200_100 = z_100_0^2^100 */
  90. /* asm 1: fe_sq(>z_200_100=fe#3,<z_100_0=fe#2); for (i = 1;i < 100;++i) fe_sq(>z_200_100=fe#3,>z_200_100=fe#3); */
  91. /* asm 2: fe_sq(>z_200_100=t2,<z_100_0=t1); for (i = 1;i < 100;++i) fe_sq(>z_200_100=t2,>z_200_100=t2); */
  92. fe_sq(t2,t1); for (i = 1;i < 100;++i) fe_sq(t2,t2);
  93. /* qhasm: z_200_0 = z_200_100*z_100_0 */
  94. /* asm 1: fe_mul(>z_200_0=fe#2,<z_200_100=fe#3,<z_100_0=fe#2); */
  95. /* asm 2: fe_mul(>z_200_0=t1,<z_200_100=t2,<z_100_0=t1); */
  96. fe_mul(t1,t2,t1);
  97. /* qhasm: z_250_50 = z_200_0^2^50 */
  98. /* asm 1: fe_sq(>z_250_50=fe#2,<z_200_0=fe#2); for (i = 1;i < 50;++i) fe_sq(>z_250_50=fe#2,>z_250_50=fe#2); */
  99. /* asm 2: fe_sq(>z_250_50=t1,<z_200_0=t1); for (i = 1;i < 50;++i) fe_sq(>z_250_50=t1,>z_250_50=t1); */
  100. fe_sq(t1,t1); for (i = 1;i < 50;++i) fe_sq(t1,t1);
  101. /* qhasm: z_250_0 = z_250_50*z_50_0 */
  102. /* asm 1: fe_mul(>z_250_0=fe#1,<z_250_50=fe#2,<z_50_0=fe#1); */
  103. /* asm 2: fe_mul(>z_250_0=t0,<z_250_50=t1,<z_50_0=t0); */
  104. fe_mul(t0,t1,t0);
  105. /* qhasm: z_252_2 = z_250_0^2^2 */
  106. /* asm 1: fe_sq(>z_252_2=fe#1,<z_250_0=fe#1); for (i = 1;i < 2;++i) fe_sq(>z_252_2=fe#1,>z_252_2=fe#1); */
  107. /* asm 2: fe_sq(>z_252_2=t0,<z_250_0=t0); for (i = 1;i < 2;++i) fe_sq(>z_252_2=t0,>z_252_2=t0); */
  108. fe_sq(t0,t0); for (i = 1;i < 2;++i) fe_sq(t0,t0);
  109. /* qhasm: z_252_3 = z_252_2*z1 */
  110. /* asm 1: fe_mul(>z_252_3=fe#12,<z_252_2=fe#1,<z1=fe#11); */
  111. /* asm 2: fe_mul(>z_252_3=out,<z_252_2=t0,<z1=z); */
  112. fe_mul(out,t0,z);
  113. /* qhasm: return */