这是一个本人学习 csapp 的 learning 库
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

223 lines
2.6 KiB

  1. /* This function marks the start of the farm */
  2. int start_farm()
  3. {
  4. return 1;
  5. }
  6. unsigned getval_142()
  7. {
  8. return 2425387259U;
  9. }
  10. unsigned addval_273(unsigned x)
  11. {
  12. return x + 3284633928U;
  13. }
  14. unsigned addval_219(unsigned x)
  15. {
  16. return x + 2421715793U;
  17. }
  18. void setval_237(unsigned *p)
  19. {
  20. *p = 3351742792U;
  21. }
  22. void setval_424(unsigned *p)
  23. {
  24. *p = 2455290452U;
  25. }
  26. void setval_470(unsigned *p)
  27. {
  28. *p = 3347925091U;
  29. }
  30. void setval_426(unsigned *p)
  31. {
  32. *p = 2428995912U;
  33. }
  34. unsigned getval_280()
  35. {
  36. return 3281016873U;
  37. }
  38. /* This function marks the middle of the farm */
  39. int mid_farm()
  40. {
  41. return 1;
  42. }
  43. /* Add two arguments */
  44. long add_xy(long x, long y)
  45. {
  46. return x+y;
  47. }
  48. unsigned getval_481()
  49. {
  50. return 2428668252U;
  51. }
  52. void setval_296(unsigned *p)
  53. {
  54. *p = 2425409945U;
  55. }
  56. unsigned addval_113(unsigned x)
  57. {
  58. return x + 3380137609U;
  59. }
  60. unsigned addval_490(unsigned x)
  61. {
  62. return x + 3676361101U;
  63. }
  64. unsigned getval_226()
  65. {
  66. return 3225997705U;
  67. }
  68. void setval_384(unsigned *p)
  69. {
  70. *p = 3229929857U;
  71. }
  72. unsigned addval_190(unsigned x)
  73. {
  74. return x + 3767093313U;
  75. }
  76. void setval_276(unsigned *p)
  77. {
  78. *p = 3372794504U;
  79. }
  80. unsigned addval_436(unsigned x)
  81. {
  82. return x + 2425409161U;
  83. }
  84. unsigned getval_345()
  85. {
  86. return 3252717896U;
  87. }
  88. unsigned addval_479(unsigned x)
  89. {
  90. return x + 3372270217U;
  91. }
  92. unsigned addval_187(unsigned x)
  93. {
  94. return x + 3224948361U;
  95. }
  96. void setval_248(unsigned *p)
  97. {
  98. *p = 3674787457U;
  99. }
  100. unsigned getval_159()
  101. {
  102. return 3375944073U;
  103. }
  104. unsigned addval_110(unsigned x)
  105. {
  106. return x + 3286272456U;
  107. }
  108. unsigned addval_487(unsigned x)
  109. {
  110. return x + 3229926025U;
  111. }
  112. unsigned addval_201(unsigned x)
  113. {
  114. return x + 3353381192U;
  115. }
  116. unsigned getval_272()
  117. {
  118. return 3523793305U;
  119. }
  120. unsigned getval_155()
  121. {
  122. return 3385115273U;
  123. }
  124. void setval_299(unsigned *p)
  125. {
  126. *p = 2447411528U;
  127. }
  128. unsigned addval_404(unsigned x)
  129. {
  130. return x + 3281178249U;
  131. }
  132. unsigned getval_311()
  133. {
  134. return 3674788233U;
  135. }
  136. void setval_167(unsigned *p)
  137. {
  138. *p = 3281113481U;
  139. }
  140. void setval_328(unsigned *p)
  141. {
  142. *p = 3526935169U;
  143. }
  144. void setval_450(unsigned *p)
  145. {
  146. *p = 3372797449U;
  147. }
  148. unsigned addval_358(unsigned x)
  149. {
  150. return x + 2430634248U;
  151. }
  152. unsigned addval_124(unsigned x)
  153. {
  154. return x + 1019724425U;
  155. }
  156. unsigned getval_169()
  157. {
  158. return 3223375496U;
  159. }
  160. void setval_181(unsigned *p)
  161. {
  162. *p = 3269495112U;
  163. }
  164. unsigned addval_184(unsigned x)
  165. {
  166. return x + 3529556617U;
  167. }
  168. unsigned getval_472()
  169. {
  170. return 3525365389U;
  171. }
  172. void setval_350(unsigned *p)
  173. {
  174. *p = 2430634312U;
  175. }
  176. /* This function marks the end of the farm */
  177. int end_farm()
  178. {
  179. return 1;
  180. }