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.

457 lines
12 KiB

25 years ago
  1. #include "exam.h"
  2. #include <cl_dfloat.h>
  3. #include <cl_dfloat_io.h>
  4. static plus_test dfloat_plus_tests[] = {
  5. { "0.6049332056786565d0", "-0.9611373574853808d0",
  6. "-0.35620415180672427d0" },
  7. { "-0.4763715667865308d0", "0.25936932107685584d0",
  8. "-0.21700224570967497d0" },
  9. { "0.2666481927718355d0", "-0.04984768063142031d0",
  10. "0.21680051214041518d0" },
  11. { "-0.29478659758474846d0", "0.3371004337672615d0",
  12. "0.042313836182513054d0" },
  13. { "0.8203063910979178d0", "0.28968607542857916d0",
  14. "1.109992466526497d0" },
  15. { "-0.08207985138263585d0", "0.4368723951711785d0",
  16. "0.35479254378854264d0" },
  17. { "-0.8659875373355486d0", "-6.631430771196765d9",
  18. "-6.631430772062753d9" },
  19. { "0.15071385783307878d0", "-7.154424279496395d9",
  20. "-7.154424279345681d9" },
  21. { "-0.8969642760814789d0", "-2.4070067380831727d8",
  22. "-2.4070067470528156d8" },
  23. { "-0.9610362081435054d0", "9.070410778399954d9",
  24. "9.070410777438917d9" },
  25. { "0.5129052501104072d0", "-7.47841120327471d9",
  26. "-7.478411202761805d9" },
  27. { "0.3840242289740675d0", "7.793048210060242d9",
  28. "7.793048210444266d9" },
  29. { "0.07603066126204616d0", "5.215008470388369d-11",
  30. "0.07603066131419625d0" },
  31. { "-0.17187858025312586d0", "-5.116645189173968d-11",
  32. "-0.17187858030429232d0" },
  33. { "0.2521315816245864d0", "8.603210607505339d-11",
  34. "0.2521315817106185d0" },
  35. { "-0.3557185853193914d0", "-2.0371324697272998d-11",
  36. "-0.3557185853397627d0" },
  37. { "0.7142792289542045d0", "-7.106356053331326d-11",
  38. "0.7142792288831409d0" },
  39. { "0.4380415886629452d0", "-3.069969538383403d-11",
  40. "0.43804158863224546d0" },
  41. { "0.24798614227178573d0", "3.972393639614975d19",
  42. "3.972393639614975d19" },
  43. { "-0.5210677288128815d0", "4.846393336901129d19",
  44. "4.846393336901129d19" },
  45. { "0.5825404819115d0", "1.9710987361264255d19",
  46. "1.9710987361264255d19" },
  47. { "0.9105175208730549d0", "2.391166552096775d19",
  48. "2.391166552096775d19" },
  49. { "0.48414423368371695d0", "-9.696117779740095d19",
  50. "-9.696117779740095d19" },
  51. { "0.25780758450697716d0", "6.094683117025535d19",
  52. "6.094683117025535d19" },
  53. { "0.9824539149570484d0", "-5.4680066990812835d-21",
  54. "0.9824539149570484d0" },
  55. { "-0.9520982941158654d0", "3.2513564801568073d-21",
  56. "-0.9520982941158654d0" },
  57. { "0.0630170624560149d0", "-9.858852595793203d-21",
  58. "0.0630170624560149d0" },
  59. { "0.24705141169888878d0", "1.4582081178692862d-22",
  60. "0.24705141169888878d0" },
  61. { "0.7440948700757135d0", "-3.0932442581890818d-21",
  62. "0.7440948700757135d0" },
  63. { "-0.5055970869515372d0", "4.0277457257516025d-21",
  64. "-0.5055970869515372d0" },
  65. { "1.672355787134947d9", "0.0064909681594120805d0",
  66. "1.672355787141438d9" },
  67. { "-9.694504381396599d9", "-0.8925470085542831d0",
  68. "-9.694504382289146d9" },
  69. { "-1.6695005924298635d9", "-0.34426964741306d0",
  70. "-1.6695005927741332d9" },
  71. { "-6.085591212594774d9", "0.5107956920100049d0",
  72. "-6.085591212083979d9" },
  73. { "7.457486660952688d9", "-0.4323787588338597d0",
  74. "7.457486660520309d9" },
  75. { "-8.790796444526546d9", "0.911415263281967d0",
  76. "-8.790796443615131d9" },
  77. { "9.667548804251982d9", "-1.266547751029956d8",
  78. "9.540894029148987d9" },
  79. { "-6.169561898845145d9", "9.627911197121864d9",
  80. "3.458349298276719d9" },
  81. { "-9.870287253215279d9", "9.004242781937655d8",
  82. "-8.969862975021513d9" },
  83. { "-8.175630881172554d9", "-4.08632236263908d9",
  84. "-1.2261953243811634d10" },
  85. { "2.9069444232153206d9", "-7.961831315741894d9",
  86. "-5.054886892526573d9" },
  87. { "-7.003647401371184d9", "-1.768371514817526d9",
  88. "-8.772018916188711d9" },
  89. { "-6.418847599138249d9", "2.755257250162372d-11",
  90. "-6.418847599138249d9" },
  91. { "2.3093152687241793d9", "1.2205440142364766d-11",
  92. "2.3093152687241793d9" },
  93. { "8.634577667577518d9", "-9.065714034538668d-11",
  94. "8.634577667577518d9" },
  95. { "1.711283212591781d9", "-3.235019197733951d-11",
  96. "1.711283212591781d9" },
  97. { "2.583886638357791d9", "-8.199109798920928d-11",
  98. "2.583886638357791d9" },
  99. { "-7.517123950474774d9", "5.2057802142431697d-11",
  100. "-7.517123950474774d9" },
  101. { "3.266571938086574d9", "-4.4782768261898355d19",
  102. "-4.478276825863179d19" },
  103. { "2.1000389219899452d9", "-8.547158903365463d19",
  104. "-8.54715890315546d19" },
  105. { "-3.9140926801217155d9", "7.387959860641422d19",
  106. "7.387959860250013d19" },
  107. { "-7.087607465790431d9", "7.96875093387599d19",
  108. "7.96875093316723d19" },
  109. { "-8.341000808926519d9", "6.9360028397637304d19",
  110. "6.93600283892963d19" },
  111. { "-5.507940634743809d9", "9.760028858210094d19",
  112. "9.7600288576593d19" },
  113. { "8.492522971238823d9", "-2.8253881864964467d-22",
  114. "8.492522971238823d9" },
  115. { "1.2731765723336241d9", "-5.8473937102910264d-21",
  116. "1.2731765723336241d9" },
  117. { "9.654280758878323d9", "-4.2332114049658973d-22",
  118. "9.654280758878323d9" },
  119. { "-6.864618926120946d9", "-1.245648314796599d-21",
  120. "-6.864618926120946d9" },
  121. { "-3.9916044043798673d8", "1.697737588450543d-21",
  122. "-3.9916044043798673d8" },
  123. { "-7.818041624198686d9", "4.635421587404246d-21",
  124. "-7.818041624198686d9" },
  125. { "2.0609929543990767d-12", "-0.2126306554359736d0",
  126. "-0.2126306554339126d0" },
  127. { "-1.5923091695877845d-11", "0.515731533720818d0",
  128. "0.515731533704895d0" },
  129. { "4.794527092905871d-11", "-0.9066947202676092d0",
  130. "-0.9066947202196639d0" },
  131. { "-8.63854477728633d-11", "0.3122982022565777d0",
  132. "0.3122982021701922d0" },
  133. { "-7.577966666552416d-11", "-0.24137602092437593d0",
  134. "-0.2413760210001556d0" },
  135. { "-4.971730475882754d-11", "-0.8202688719750202d0",
  136. "-0.8202688720247375d0" },
  137. { "-5.249369194379291d-11", "-8.546120620321186d9",
  138. "-8.546120620321186d9" },
  139. { "8.280786962526793d-11", "5.758373397436368d9",
  140. "5.758373397436368d9" },
  141. { "6.370323595535815d-11", "-8.470663335712393d9",
  142. "-8.470663335712393d9" },
  143. { "3.59771226839467d-11", "3.5042505440266216d8",
  144. "3.5042505440266216d8" },
  145. { "-3.945501687396375d-11", "-5.082779978069177d9",
  146. "-5.082779978069177d9" },
  147. { "9.780590963267516d-11", "-5.05591945120475d9",
  148. "-5.05591945120475d9" },
  149. { "6.323293597096768d-11", "-7.208898910487284d-11",
  150. "-8.85605313390516d-12" },
  151. { "-4.549781732354749d-11", "-6.095452636416357d-11",
  152. "-1.0645234368771105d-10" },
  153. { "-5.372680267837374d-11", "2.0748354219485134d-11",
  154. "-3.297844845888861d-11" },
  155. { "3.550879553916665d-11", "-4.374873254056574d-11",
  156. "-8.23993700139909d-12" },
  157. { "-6.746002242414832d-11", "3.0803985031459436d-11",
  158. "-3.665603739268888d-11" },
  159. { "-7.902512161494214d-11", "-8.907842858073236d-11",
  160. "-1.681035501956745d-10" },
  161. { "-4.1465935469350415d-11", "6.244210696961323d19",
  162. "6.244210696961323d19" },
  163. { "4.921297536286578d-11", "-1.694436650099881d19",
  164. "-1.694436650099881d19" },
  165. { "-7.879478980672654d-11", "6.41757969360492d19",
  166. "6.41757969360492d19" },
  167. { "-8.200749317872953d-11", "-9.490225542618815d19",
  168. "-9.490225542618815d19" },
  169. { "-7.572981329795812d-11", "-3.350367078181029d19",
  170. "-3.350367078181029d19" },
  171. { "-5.955255565125549d-11", "-5.009913629288125d19",
  172. "-5.009913629288125d19" },
  173. { "-9.818180775332558d-11", "-7.926156011681593d-21",
  174. "-9.818180776125174d-11" },
  175. { "-5.2466438379505935d-12", "8.468830229031857d-21",
  176. "-5.246643829481763d-12" },
  177. { "3.582774358441715d-11", "3.6865211729351863d-22",
  178. "3.58277435847858d-11" },
  179. { "7.169296413565744d-11", "-9.974881413980864d-21",
  180. "7.169296412568256d-11" },
  181. { "-9.615073655516977d-11", "4.9552491300097786d-21",
  182. "-9.615073655021452d-11" },
  183. { "6.7696956269187d-11", "4.1431488006404866d-21",
  184. "6.769695627333016d-11" },
  185. { "-4.663397365185298d19", "0.9758464195927673d0",
  186. "-4.663397365185298d19" },
  187. { "-4.77977261393851d19", "0.04145189313162445d0",
  188. "-4.77977261393851d19" },
  189. { "7.195364554121596d19", "0.5169917736820715d0",
  190. "7.195364554121596d19" },
  191. { "-7.766254779507882d19", "0.5919134938460356d0",
  192. "-7.766254779507882d19" },
  193. { "-8.411122653901408d19", "-0.14463225181516137d0",
  194. "-8.411122653901408d19" },
  195. { "-9.101920591747218d19", "0.23349918704239836d0",
  196. "-9.101920591747218d19" },
  197. { "7.037477746142529d18", "-3.250947575909365d9",
  198. "7.037477742891581d18" },
  199. { "-6.864341752972099d19", "-4.0510449339565725d9",
  200. "-6.864341753377203d19" },
  201. { "-5.329540273290228d19", "8.14869777458878d9",
  202. "-5.329540272475358d19" },
  203. { "-9.726234388247201d19", "2.053976989398215d9",
  204. "-9.726234388041803d19" },
  205. { "-1.910324088450308d19", "6.247052535748024d9",
  206. "-1.910324087825603d19" },
  207. { "-6.079933001949367d18", "6.316829148809886d9",
  208. "-6.079932995632539d18" },
  209. { "-4.499107911798452d19", "9.659763881732633d-11",
  210. "-4.499107911798452d19" },
  211. { "-3.0972208018542522d19", "-9.077209886078653d-11",
  212. "-3.0972208018542522d19" },
  213. { "-2.3000547840875442d19", "-3.2043634522621155d-11",
  214. "-2.3000547840875442d19" },
  215. { "2.124555308489292d19", "2.252166800652451d-11",
  216. "2.124555308489292d19" },
  217. { "-7.74280238703686d19", "1.7289553748884322d-11",
  218. "-7.74280238703686d19" },
  219. { "-8.119446783121816d19", "-4.3461802389685114d-11",
  220. "-8.119446783121816d19" },
  221. { "-4.70848534032654d18", "-4.698316648967506d19",
  222. "-5.169165183000161d19" },
  223. { "2.853799842810312d19", "-5.56805968603395d19",
  224. "-2.7142598432236384d19" },
  225. { "-2.9128622996090335d19", "-5.153369106520702d19",
  226. "-8.066231406129735d19" },
  227. { "-5.415993984772977d19", "4.481932558278175d19",
  228. "-9.340614264948015d18" },
  229. { "-1.4652301908531261d19", "7.89284449966826d19",
  230. "6.427614308815133d19" },
  231. { "-8.241911630479252d19", "5.377001886877124d19",
  232. "-2.8649097436021277d19" },
  233. { "-6.923631123395076d19", "7.100129853298664d-22",
  234. "-6.923631123395076d19" },
  235. { "-5.864213410820717d19", "-2.649878514627326d-21",
  236. "-5.864213410820717d19" },
  237. { "8.660575002861176d19", "2.751926085897399d-21",
  238. "8.660575002861176d19" },
  239. { "-3.0252871646631318d19", "6.852831573716124d-21",
  240. "-3.0252871646631318d19" },
  241. { "-9.155476807340938d19", "-5.552907466957205d-21",
  242. "-9.155476807340938d19" },
  243. { "-4.03382621358461d19", "6.670808279457885d-21",
  244. "-4.03382621358461d19" },
  245. { "8.842980509187577d-21", "0.5028466982188534d0",
  246. "0.5028466982188534d0" },
  247. { "1.7292043381396136d-21", "0.19490424064972922d0",
  248. "0.19490424064972922d0" },
  249. { "-5.854820918836103d-21", "-0.6700030154364615d0",
  250. "-0.6700030154364615d0" },
  251. { "-2.152396491682048d-21", "0.5002930268902921d0",
  252. "0.5002930268902921d0" },
  253. { "-1.0897149666610629d-21", "0.16555534170490604d0",
  254. "0.16555534170490604d0" },
  255. { "6.321421497987867d-24", "-0.08008112131564671d0",
  256. "-0.08008112131564671d0" },
  257. { "-6.1552667309563055d-21", "7.235074489769488d9",
  258. "7.235074489769488d9" },
  259. { "-2.2311335001219955d-22", "1.220011008333989d9",
  260. "1.220011008333989d9" },
  261. { "8.523565724937177d-23", "-4.1650242034123087d9",
  262. "-4.1650242034123087d9" },
  263. { "-2.4400041303825447d-21", "4.435554678685388d9",
  264. "4.435554678685388d9" },
  265. { "-3.4479065449345757d-22", "8.491084033112451d8",
  266. "8.491084033112451d8" },
  267. { "-7.919939059912893d-21", "-7.610637842585286d9",
  268. "-7.610637842585286d9" },
  269. { "4.4958602369105625d-21", "5.758376768873417d-11",
  270. "5.7583767693230034d-11" },
  271. { "2.4375297386412195d-21", "9.417086717671841d-11",
  272. "9.417086717915595d-11" },
  273. { "1.0040647133383462d-21", "3.4701016271268983d-12",
  274. "3.470101628130963d-12" },
  275. { "-3.885093055726793d-21", "-8.523534862249969d-11",
  276. "-8.523534862638479d-11" },
  277. { "1.027951323422187d-21", "-7.65508060829868d-11",
  278. "-7.655080608195885d-11" },
  279. { "-9.83813940552434d-21", "-5.048380063082019d-11",
  280. "-5.0483800640658324d-11" },
  281. { "-7.640856498925806d-21", "-5.743808556015994d19",
  282. "-5.743808556015994d19" },
  283. { "8.053891045717591d-21", "4.0840032650134725d19",
  284. "4.0840032650134725d19" },
  285. { "-4.794782783871528d-21", "-3.431216587740782d18",
  286. "-3.431216587740782d18" },
  287. { "1.860870988390988d-21", "-3.757945694933625d19",
  288. "-3.757945694933625d19" },
  289. { "5.445498222566789d-21", "7.575823566817991d19",
  290. "7.575823566817991d19" },
  291. { "2.631896745307223d-21", "4.906449817201212d19",
  292. "4.906449817201212d19" },
  293. { "-6.61689881073516d-21", "5.357007670385275d-21",
  294. "-1.2598911403498852d-21" },
  295. { "3.0173001109587537d-21", "5.2947222461350496d-21",
  296. "8.312022357093803d-21" },
  297. { "-8.792518441030627d-21", "-1.0516787854168774d-21",
  298. "-9.844197226447504d-21" },
  299. { "7.349451992884509d-21", "-8.427997362671486d-21",
  300. "-1.0785453697869767d-21" },
  301. { "-7.881179611953633d-21", "3.2080446524364824d-21",
  302. "-4.6731349595171506d-21" },
  303. { "-9.614117725927607d-21", "-5.35667712698602d-21",
  304. "-1.4970794852913628d-20" },
  305. };