pow22523.h 5.5 KB

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