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.

421 lines
6.6 KiB

25 years ago
  1. #include "exam.h"
  2. #include <cl_sfloat.h>
  3. #include <cl_sfloat_io.h>
  4. static div_test sfloat_div_tests[] = {
  5. { "0.4319s0", "0.279747s0",
  6. "1.5439s0" },
  7. { "0.58111s0", "0.474937s0",
  8. "1.22354s0" },
  9. { "0.95817s0", "-0.209396s0",
  10. "-4.57587s0" },
  11. { "-0.30497s0", "-0.182861s0",
  12. "1.66777s0" },
  13. { "-0.69316s0", "-0.32908s0",
  14. "2.10635s0" },
  15. { "-0.87152s0", "0.518326s0",
  16. "-1.68141s0" },
  17. { "-0.81208s0", "3.27736s9",
  18. "-2.47784s-10" },
  19. { "0.88465s0", "2.15492s9",
  20. "4.10527s-10" },
  21. { "-0.96446s0", "8.0971s9",
  22. "-1.19112s-10" },
  23. { "-0.65258s0", "-3.98033s9",
  24. "1.6395s-10" },
  25. { "0.663826s0", "-7.88726s8",
  26. "-8.41645s-10" },
  27. { "-0.31185s0", "4.1015s9",
  28. "-7.6033s-11" },
  29. { "-0.89607s0", "-3.887s-14",
  30. "2.3053s13" },
  31. { "-0.670135s0", "-5.027s-14",
  32. "1.33306s13" },
  33. { "0.94663s0", "-6.153s-14",
  34. "-1.5385s13" },
  35. { "-0.76772s0", "4.033s-14",
  36. "-1.90358s13" },
  37. { "-0.446358s0", "-1.9017s-13",
  38. "2.34713s12" },
  39. { "-0.157814s0", "-2.0401s-13",
  40. "7.73555s11" },
  41. { "0.636185s0", "-3.78516s19",
  42. "-1.68073s-20" },
  43. { "-0.90556s0", "7.7192s19",
  44. "-1.17314s-20" },
  45. { "0.85053s0", "8.3134s19",
  46. "1.02309s-20" },
  47. { "-0.3058s0", "3.00674s19",
  48. "-1.01705s-20" },
  49. { "0.219429s0", "-8.1184s19",
  50. "-2.70286s-21" },
  51. { "0.319603s0", "-2.0739s19",
  52. "-1.54106s-20" },
  53. { "0.58943s0", "-5.280s-24",
  54. "-1.11635s23" },
  55. { "0.72955s0", "7.852s-24",
  56. "9.2914s22" },
  57. { "-0.66327s0", "-3.124s-24",
  58. "2.12315s23" },
  59. { "-0.0137558s0", "-7.918s-24",
  60. "1.73729s21" },
  61. { "0.35823s0", "5.467s-24",
  62. "6.55263s22" },
  63. { "0.93861s0", "9.968s-24",
  64. "9.4163s22" },
  65. { "3.83346s9", "0.99782s0",
  66. "3.84185s9" },
  67. { "8.7033s9", "-0.81822s0",
  68. "-1.06369s10" },
  69. { "3.52326s8", "-0.79994s0",
  70. "-4.4044s8" },
  71. { "8.0525s9", "-0.91803s0",
  72. "-8.7715s9" },
  73. { "-2.12784s9", "-0.761246s0",
  74. "2.7952s9" },
  75. { "1.18805s9", "-0.903534s0",
  76. "-1.3149s9" },
  77. { "-6.50556s9", "-5.4642s9",
  78. "1.19058s0" },
  79. { "3.3333s8", "1.8341s8",
  80. "1.81738s0" },
  81. { "3.70934s9", "9.1957s8",
  82. "4.03375s0" },
  83. { "-8.0459s9", "4.5511s9",
  84. "-1.76791s0" },
  85. { "3.54982s9", "4.6631s8",
  86. "7.6126s0" },
  87. { "-6.27016s9", "-3.42858s9",
  88. "1.8288s0" },
  89. { "-4.3213s9", "7.223s-15",
  90. "-5.98274s23" },
  91. { "-2.57753s9", "-2.533s-15",
  92. "1.01759s24" },
  93. { "3.8858s9", "-4.505s-14",
  94. "-8.6256s22" },
  95. { "3.5946s9", "-5.067s-14",
  96. "-7.0941s22" },
  97. { "2.94434s9", "8.333s-14",
  98. "3.53333s22" },
  99. { "5.6178s9", "-8.241s-14",
  100. "-6.81694s22" },
  101. { "4.9591s8", "3.9972s19",
  102. "1.24064s-11" },
  103. { "2.4166s9", "-9.2141s19",
  104. "-2.62272s-11" },
  105. { "-1.484s9", "2.0281s19",
  106. "-7.3172s-11" },
  107. { "2.2339s8", "1.96374s19",
  108. "1.13758s-11" },
  109. { "-6.6306s9", "-2.414s19",
  110. "2.7467s-10" },
  111. { "9.9114s9", "9.6187s19",
  112. "1.03043s-10" },
  113. { "4.4579s9", "5.343s-24",
  114. "8.3434s32" },
  115. { "-6.35994s9", "-6.301s-24",
  116. "1.00936s33" },
  117. { "5.49677s9", "-1.9306s-25",
  118. "-2.84717s34" },
  119. { "-5.007s9", "3.692s-24",
  120. "-1.35617s33" },
  121. { "8.6837s9", "-1.6358s-23",
  122. "-5.3085s32" },
  123. { "5.5898s9", "-5.435s-24",
  124. "-1.02849s33" },
  125. { "-5.042s-14", "0.79081s0",
  126. "-6.3758s-14" },
  127. { "-6.231s-14", "0.96946s0",
  128. "-6.4273s-14" },
  129. { "6.016s-14", "0.418983s0",
  130. "1.43587s-13" },
  131. { "-1.1682s-13", "0.70944s0",
  132. "-1.64663s-13" },
  133. { "-1.7485s-13", "0.83207s0",
  134. "-2.1014s-13" },
  135. { "7.831s-15", "-0.083374s0",
  136. "-9.3926s-14" },
  137. { "3.947s-14", "9.2342s9",
  138. "4.2744s-24" },
  139. { "-1.1537s-13", "-6.44075s9",
  140. "1.79124s-23" },
  141. { "6.751s-14", "5.8395s8",
  142. "1.1561s-22" },
  143. { "-5.026s-14", "7.9677s9",
  144. "-6.308s-24" },
  145. { "-1.0105s-13", "-1.71082s9",
  146. "5.9066s-23" },
  147. { "-4.996s-14", "9.426s9",
  148. "-5.30024s-24" },
  149. { "-6.837s-14", "-3.573s-14",
  150. "1.91351s0" },
  151. { "-7.736s-14", "-4.898s-14",
  152. "1.57942s0" },
  153. { "3.777s-14", "8.025s-14",
  154. "0.470657s0" },
  155. { "-6.239s-14", "8.518s-15",
  156. "-7.32446s0" },
  157. { "-7.548s-15", "-4.573s-14",
  158. "0.165056s0" },
  159. { "1.6293s-14", "4.712s-14",
  160. "0.345776s0" },
  161. { "-4.47s-14", "2.73658s19",
  162. "-1.63342s-33" },
  163. { "1.0583s-13", "2.52534s19",
  164. "4.19073s-33" },
  165. { "4.351s-15", "2.70326s19",
  166. "1.60955s-34" },
  167. { "3.699s-14", "-6.00707s19",
  168. "-6.1577s-34" },
  169. { "6.358s-14", "5.18274s19",
  170. "1.22677s-33" },
  171. { "-2.971s-14", "6.153s19",
  172. "-4.8286s-34" },
  173. { "-4.968s-14", "7.699s-24",
  174. "-6.4528s9" },
  175. { "-3.654s-14", "8.434s-24",
  176. "-4.3325s9" },
  177. { "-9.276s-14", "-7.079s-24",
  178. "1.31035s10" },
  179. { "-4.556s-14", "1.3900s-23",
  180. "-3.27772s9" },
  181. { "3.832s-14", "1.55715s-22",
  182. "2.4609s8" },
  183. { "1.4186s-13", "1.64482s-21",
  184. "8.6246s7" },
  185. { "-7.0974s19", "-0.705536s0",
  186. "1.00596s20" },
  187. { "-7.687s19", "-0.241531s0",
  188. "3.1826s20" },
  189. { "3.37013s19", "-0.425987s0",
  190. "-7.9114s19" },
  191. { "6.56473s19", "-0.60696s0",
  192. "-1.08158s20" },
  193. { "4.1598s19", "0.60135s0",
  194. "6.9175s19" },
  195. { "8.8312s19", "0.93547s0",
  196. "9.4404s19" },
  197. { "2.81357s19", "-2.62832s9",
  198. "-1.07048s10" },
  199. { "5.9243s19", "-4.5189s8",
  200. "-1.311s11" },
  201. { "-8.3887s19", "9.5761s9",
  202. "-8.7601s9" },
  203. { "7.7606s19", "-8.5369s9",
  204. "-9.0906s9" },
  205. { "-7.9868s19", "5.0173s9",
  206. "-1.59186s10" },
  207. { "7.4128s19", "-6.7781s9",
  208. "-1.09364s10" },
  209. { "1.27472s19", "1.1699s-13",
  210. "1.0896s32" },
  211. { "2.97578s19", "4.448s-14",
  212. "6.6901s32" },
  213. { "7.19416s19", "1.3834s-13",
  214. "5.20034s32" },
  215. { "6.61843s19", "-4.268s-14",
  216. "-1.55071s33" },
  217. { "2.8579s19", "4.364s-14",
  218. "6.5488s32" },
  219. { "8.2451s18", "-6.532s-14",
  220. "-1.26227s32" },
  221. { "4.63364s19", "9.4305s19",
  222. "0.491344s0" },
  223. { "-1.81999s19", "1.05424s19",
  224. "-1.72636s0" },
  225. { "-1.41579s19", "-4.03517s19",
  226. "0.350864s0" },
  227. { "-1.88523s18", "-3.3165s18",
  228. "0.568436s0" },
  229. { "8.4152s17", "-7.3293s19",
  230. "-0.0114815s0" },
  231. { "-8.674s19", "-3.63595s19",
  232. "2.38562s0" },
  233. { "-1.64643s-22", "0.78035s0",
  234. "-2.10986s-22" },
  235. { "-7.455s-24", "-0.63174s0",
  236. "1.18009s-23" },
  237. { "-3.259s-24", "-0.89363s0",
  238. "3.64694s-24" },
  239. { "1.5803s-23", "-0.11338s0",
  240. "-1.39382s-22" },
  241. { "-3.534s-24", "0.407562s0",
  242. "-8.6711s-24" },
  243. { "-7.221s-24", "0.90274s0",
  244. "-7.999s-24" },
  245. { "1.0479s-23", "5.66256s8",
  246. "1.85059s-32" },
  247. { "1.62856s-21", "-1.9551s9",
  248. "-8.3298s-31" },
  249. { "-8.102s-24", "9.7896s9",
  250. "-8.2761s-34" },
  251. { "9.693s-24", "-8.777s9",
  252. "-1.10437s-33" },
  253. { "8.643s-24", "-1.25557s9",
  254. "-6.8837s-33" },
  255. { "3.224s-24", "9.8161s9",
  256. "3.2844s-34" },
  257. { "1.06582s-21", "-1.0408s-13",
  258. "-1.02405s-8" },
  259. { "1.6738s-23", "9.851s-14",
  260. "1.69914s-10" },
  261. { "-1.1514s-23", "-6.509s-14",
  262. "1.76893s-10" },
  263. { "9.171s-24", "9.292s-14",
  264. "9.8698s-11" },
  265. { "1.8589s-23", "-4.213s-14",
  266. "-4.4123s-10" },
  267. { "1.2837s-23", "1.1034s-13",
  268. "1.16341s-10" },
  269. { "3.671s-24", "1.0091s-23",
  270. "0.363792s0" },
  271. { "-3.373s-24", "-1.7017s-23",
  272. "0.198214s0" },
  273. { "-2.0157s-23", "1.0021s-23",
  274. "-2.01147s0" },
  275. { "8.041s-24", "-1.3974s-23",
  276. "-0.575424s0" },
  277. { "-5.391s-24", "1.1762s-23",
  278. "-0.458344s0" },
  279. { "1.7735s-23", "-3.313s-24",
  280. "-5.3531s0" },
  281. };