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
14 KiB

25 years ago
  1. #include "exam.h"
  2. #include <cl_lfloat.h>
  3. #include <cl_lfloat_io.h>
  4. static plus_test lfloat_plus_tests[] = {
  5. { "0.31465012912061093874L0", "-0.07221963987249409544L0",
  6. "0.2424304892481168433L0" },
  7. { "0.7168586654865411176L0", "-0.19348808923554474066L0",
  8. "0.52337057625099637695L0" },
  9. { "-0.64115701400120904706L0", "0.70535558267169594756L0",
  10. "0.0641985686704869005L0" },
  11. { "-0.8607621650923123159L0", "0.8368256394262067108L0",
  12. "-0.023936525666105605082L0" },
  13. { "0.44168990042410450855L0", "-0.6041911435521196045L0",
  14. "-0.16250124312801509594L0" },
  15. { "0.0234267775301613878L0", "-0.43594485933986284478L0",
  16. "-0.41251808180970145698L0" },
  17. { "-0.99559578594307881024L0", "-9.836107054378142702L9",
  18. "-9.836107055373738488L9" },
  19. { "-0.72423071295455899397L0", "9.238843039595790172L9",
  20. "9.238843038871559459L9" },
  21. { "-0.20719390117857393156L0", "-9.029224604657100362L9",
  22. "-9.029224604864294263L9" },
  23. { "0.20816015380514039224L0", "-7.4782571284307568003L9",
  24. "-7.4782571282225966468L9" },
  25. { "-0.16613875159201114463L0", "-1.203554507952656804L9",
  26. "-1.2035545081187955556L9" },
  27. { "-0.9837368636729942673L0", "7.5892747601936916704L9",
  28. "7.5892747592099548066L9" },
  29. { "-0.92391870362276300936L0", "-5.309205414965326826L-11",
  30. "-0.9239187036758550635L0" },
  31. { "-0.2308075581152660786L0", "-2.5400598439608570973L-11",
  32. "-0.23080755814066667704L0" },
  33. { "0.5668336039528930528L0", "1.9300606943253841182L-12",
  34. "0.56683360395482311353L0" },
  35. { "-0.19685144163870526662L0", "-8.548847281762266571L-11",
  36. "-0.19685144172419373944L0" },
  37. { "0.053837363417219887007L0", "-8.4734948552444605444L-11",
  38. "0.053837363332484938454L0" },
  39. { "0.24539562474220232599L0", "-1.3753029433519360674L-11",
  40. "0.24539562472844929655L0" },
  41. { "-0.83198492765474177585L0", "-1.0728971972413839207L19",
  42. "-1.0728971972413839208L19" },
  43. { "0.58494670591273850794L0", "-2.6078285749436068966L19",
  44. "-2.6078285749436068966L19" },
  45. { "-0.6489422625947265175L0", "5.675479528094312524L19",
  46. "5.675479528094312524L19" },
  47. { "0.82416783003308421654L0", "3.4337105673864461624L19",
  48. "3.4337105673864461624L19" },
  49. { "0.5977825969561704576L0", "9.447212597358366985L19",
  50. "9.447212597358366985L19" },
  51. { "0.81709616259702447027L0", "1.8840697606071622024L19",
  52. "1.8840697606071622024L19" },
  53. { "0.99140689029640294337L0", "-7.9441986163714183364L-21",
  54. "0.99140689029640294337L0" },
  55. { "0.49487318874207713882L0", "-2.377409962381832069L-21",
  56. "0.49487318874207713882L0" },
  57. { "0.050320977002567080524L0", "-1.3329877923173878127L-21",
  58. "0.050320977002567080524L0" },
  59. { "-0.25724170819862546218L0", "7.609825486664252559L-22",
  60. "-0.25724170819862546218L0" },
  61. { "0.3667308347763138993L0", "4.077152141636570548L-21",
  62. "0.3667308347763138993L0" },
  63. { "0.5130660492586603372L0", "-5.091230019243679202L-21",
  64. "0.5130660492586603372L0" },
  65. { "8.916053557053472733L8", "0.59999700846599703845L0",
  66. "8.916053563053442818L8" },
  67. { "1.250980635471676891L9", "-0.46325398810664378442L0",
  68. "1.2509806350084229029L9" },
  69. { "-5.548594356609427516L9", "-0.21577258386321002115L0",
  70. "-5.5485943568252001L9" },
  71. { "1.06508055885340104636L9", "0.8422978396429581549L0",
  72. "1.065080559695698886L9" },
  73. { "6.225756677310580186L9", "0.49531151031004978726L0",
  74. "6.2257566778058916964L9" },
  75. { "-2.273191688409860673L9", "-0.80983784631745405196L0",
  76. "-2.2731916892196985192L9" },
  77. { "5.688674258485728496L8", "8.2409948814224157357L9",
  78. "8.809862307270988585L9" },
  79. { "-2.7544302700606018156L9", "9.230174236450698873L9",
  80. "6.4757439663900970574L9" },
  81. { "-4.588747139238971857L9", "6.342892129519977196L9",
  82. "1.7541449902810053392L9" },
  83. { "1.5275587581475159762L9", "4.3720035959575018324L9",
  84. "5.8995623541050178087L9" },
  85. { "2.8881760807020099163L9", "7.5622154923755766074L9",
  86. "1.0450391573077586524L10" },
  87. { "6.1044519092512786468L9", "1.3858854402983849103L9",
  88. "7.490337349549663557L9" },
  89. { "4.8767035174458515886L9", "6.3051681974292703475L-11",
  90. "4.8767035174458515886L9" },
  91. { "-9.4188975960705796466L8", "-8.975187577611984141L-12",
  92. "-9.4188975960705796466L8" },
  93. { "-9.689819354179956828L9", "-9.7453604450079548966L-11",
  94. "-9.689819354179956828L9" },
  95. { "4.987209054002559248L9", "9.284991248759031191L-11",
  96. "4.987209054002559248L9" },
  97. { "-3.5572071813296941216L9", "-6.261737879308894803L-11",
  98. "-3.5572071813296941216L9" },
  99. { "-7.5872628366112743053L9", "2.2152240842834943001L-11",
  100. "-7.5872628366112743053L9" },
  101. { "7.0206128338340270845L9", "5.9246012493594508704L19",
  102. "5.9246012500615121536L19" },
  103. { "5.3017367315254228474L9", "-1.0933628665004153848L19",
  104. "-1.0933628659702417116L19" },
  105. { "-6.339538144593375358L9", "-8.0543624921112893224L19",
  106. "-8.054362492745243137L19" },
  107. { "-1.6010717980362600647L9", "9.973849926670833376L19",
  108. "9.973849926510726196L19" },
  109. { "3.2030522063397198562L9", "-2.4396867565423101768L19",
  110. "-2.4396867562220049562L19" },
  111. { "8.8622195973163761245L9", "-6.4961266512803550736L19",
  112. "-6.496126650394133114L19" },
  113. { "5.45529926142043848L9", "6.939479435912862762L-21",
  114. "5.45529926142043848L9" },
  115. { "-4.484627189114150671L9", "-1.6571134694524616111L-21",
  116. "-4.484627189114150671L9" },
  117. { "8.813820141949620774L9", "-2.8267147580155665537L-21",
  118. "8.813820141949620774L9" },
  119. { "-9.972890003927356798L9", "-3.0273462676816521264L-21",
  120. "-9.972890003927356798L9" },
  121. { "6.792889851253184185L9", "-5.937539083879130763L-21",
  122. "6.792889851253184185L9" },
  123. { "-3.2663407400779399923L9", "-4.0747082067253115984L-21",
  124. "-3.2663407400779399923L9" },
  125. { "-3.4242541190221825202L-11", "-0.71988400153646663195L0",
  126. "-0.71988400157070917316L0" },
  127. { "-7.8906347145510431055L-11", "-0.22021321631029436988L0",
  128. "-0.22021321638920071702L0" },
  129. { "-7.486719858997914782L-11", "0.38102237422222776873L0",
  130. "0.38102237414736057013L0" },
  131. { "-2.6956794925506179954L-12", "-0.49627581161649902356L0",
  132. "-0.49627581161919470304L0" },
  133. { "-8.312064814531952837L-11", "0.5797009072836515581L0",
  134. "0.57970090720053090995L0" },
  135. { "-4.0305959593285763394L-11", "0.16233584979062195143L0",
  136. "0.16233584975031599183L0" },
  137. { "3.731977491280278192L-11", "3.0305998235716452734L9",
  138. "3.0305998235716452734L9" },
  139. { "2.7847304030282320388L-11", "-6.146190065628934066L9",
  140. "-6.146190065628934066L9" },
  141. { "-1.1797664511795163538L-11", "1.4888590774768513251L9",
  142. "1.4888590774768513251L9" },
  143. { "-3.736849276790130025L-11", "1.9988395869145483342L9",
  144. "1.9988395869145483342L9" },
  145. { "5.7818526942690563386L-12", "3.5155514714363584847L9",
  146. "3.5155514714363584847L9" },
  147. { "1.8183862272066184134L-11", "-4.635399960322760982L9",
  148. "-4.635399960322760982L9" },
  149. { "3.5539523819420841283L-11", "4.3044646394847154864L-11",
  150. "7.858417021426799615L-11" },
  151. { "8.719537619908441472L-11", "-8.580989797275158101L-11",
  152. "1.3854782263328337111L-12" },
  153. { "2.49701168436805957L-12", "-2.6066406246366064513L-11",
  154. "-2.3569394561998004944L-11" },
  155. { "4.2774640500882048993L-11", "3.7620100241760410496L-11",
  156. "8.039474074264245949L-11" },
  157. { "3.9907211434460210612L-11", "9.72066373418363098L-11",
  158. "1.3711384877629652041L-10" },
  159. { "-7.851637932849992129L-11", "4.9296626910685147652L-11",
  160. "-2.9219752417814773637L-11" },
  161. { "3.14874349918113769L-11", "-1.8148353890339025639L19",
  162. "-1.8148353890339025639L19" },
  163. { "-8.444922682942673745L-11", "-5.0034364072191331772L19",
  164. "-5.0034364072191331772L19" },
  165. { "4.762299619586316462L-12", "-1.3412404578328588061L19",
  166. "-1.3412404578328588061L19" },
  167. { "-9.22833351501850052L-12", "3.1000370791158631634L19",
  168. "3.1000370791158631634L19" },
  169. { "6.1164399913981911425L-11", "6.1863455383782109436L19",
  170. "6.1863455383782109436L19" },
  171. { "-8.413645565754525347L-11", "-2.5034082588556447364L19",
  172. "-2.5034082588556447364L19" },
  173. { "3.4875247204061292656L-11", "-7.8682893445087250245L-21",
  174. "3.487524719619300331L-11" },
  175. { "-2.1647610944488691768L-11", "-8.371089558230910183L-21",
  176. "-2.1647610952859781326L-11" },
  177. { "5.7598234760228848032L-11", "2.8011007358408259187L-21",
  178. "5.7598234763029948767L-11" },
  179. { "-9.268425959344303144L-11", "-6.4655012698265179856L-21",
  180. "-9.2684259599908532713L-11" },
  181. { "7.067467072298381137L-11", "-3.8206328350148818058L-21",
  182. "7.0674670719163178536L-11" },
  183. { "7.8912028748606542386L-11", "8.456364925917236866L-21",
  184. "7.891202875706290731L-11" },
  185. { "-6.976183652817340798L18", "0.08822040416435015717L0",
  186. "-6.976183652817340798L18" },
  187. { "-1.2414457404200743984L19", "-0.85791705029429396234L0",
  188. "-1.2414457404200743985L19" },
  189. { "-8.9687515173878579424L19", "-0.3328210335620137057L0",
  190. "-8.9687515173878579424L19" },
  191. { "-5.438581645592863998L19", "-0.67774278184358142436L0",
  192. "-5.438581645592863998L19" },
  193. { "-5.4350840695201649084L19", "-0.72739900682842943577L0",
  194. "-5.4350840695201649084L19" },
  195. { "7.814697448090367615L19", "0.24326892882624165414L0",
  196. "7.814697448090367615L19" },
  197. { "-2.4356768540932142124L19", "6.5169042447583127604L9",
  198. "-2.435676853441523788L19" },
  199. { "-8.7464253032141704904L19", "6.8315507162032823036L9",
  200. "-8.7464253025310154184L19" },
  201. { "-2.4810334273518910993L18", "-7.638114077520272164L9",
  202. "-2.4810334349900051768L18" },
  203. { "-9.80334620432051716L19", "4.474822777555302305L9",
  204. "-9.8033462038730348824L19" },
  205. { "-1.5185085475715921137L19", "8.496315073274781452L9",
  206. "-1.5185085467219606064L19" },
  207. { "-9.3842548893937585184L19", "-9.948865349103608366L9",
  208. "-9.3842548903886450536L19" },
  209. { "5.9391253980818643888L19", "5.6213951287112563564L-11",
  210. "5.9391253980818643888L19" },
  211. { "-4.8270749631022207188L19", "6.506986668488438766L-11",
  212. "-4.8270749631022207188L19" },
  213. { "8.953940231252599753L19", "-1.7735448342981541823L-11",
  214. "8.953940231252599753L19" },
  215. { "-6.1065165153181616235L18", "-1.8103764902203059955L-11",
  216. "-6.1065165153181616235L18" },
  217. { "-9.6224955477275161216L19", "9.4659333494557267205L-11",
  218. "-9.6224955477275161216L19" },
  219. { "-9.2620034246522033504L19", "-8.920063409062509698L-11",
  220. "-9.2620034246522033504L19" },
  221. { "5.9633456897700879935L18", "4.0390945943970882336L19",
  222. "4.6354291633740970328L19" },
  223. { "-6.1420542659063065884L19", "-3.9869088703267959336L19",
  224. "-1.01289631362331025216L20" },
  225. { "7.804124970286546613L19", "8.061318173712112305L19",
  226. "1.5865443143998658918L20" },
  227. { "-7.763817772329800516L19", "-4.9349702057713961232L19",
  228. "-1.2698787978101196639L20" },
  229. { "-3.1480955091040648274L19", "-4.706529024129812914L19",
  230. "-7.8546245332338777416L19" },
  231. { "-4.7131343507844737428L19", "5.4602299451983202032L19",
  232. "7.470955944138464604L18" },
  233. { "5.9403761194093478956L19", "-6.280541343011718101L-21",
  234. "5.9403761194093478956L19" },
  235. { "-3.763295388652278206L19", "-9.963494853851408371L-21",
  236. "-3.763295388652278206L19" },
  237. { "2.5136958358030666948L19", "5.335607709622335287L-21",
  238. "2.5136958358030666948L19" },
  239. { "6.2273952762016960176L19", "-5.6012630121574213906L-21",
  240. "6.2273952762016960176L19" },
  241. { "-9.3934610912833028936L19", "-2.59552531586503232L-21",
  242. "-9.3934610912833028936L19" },
  243. { "2.9584554660239488776L19", "6.875837450751388893L-21",
  244. "2.9584554660239488776L19" },
  245. { "-8.4905558825256936576L-21", "0.112912972443893420624L0",
  246. "0.11291297244389342062L0" },
  247. { "-5.3259362300699140443L-21", "0.44064771529278198132L0",
  248. "0.44064771529278198132L0" },
  249. { "-9.245572241572266517L-21", "0.043497459079983070442L0",
  250. "0.043497459079983070432L0" },
  251. { "7.6311333407948593004L-22", "0.74437178299084331024L0",
  252. "0.74437178299084331024L0" },
  253. { "-7.71114100404407176L-21", "-0.30667849853816871164L0",
  254. "-0.30667849853816871164L0" },
  255. { "3.544120177696956032L-21", "0.79322122717232419205L0",
  256. "0.79322122717232419205L0" },
  257. { "7.7913861181291523115L-21", "8.526554352243632931L9",
  258. "8.526554352243632931L9" },
  259. { "-3.9196632415032070805L-21", "-2.5228304289307799614L9",
  260. "-2.5228304289307799614L9" },
  261. { "7.643174046933518012L-22", "2.9248526891356128762L9",
  262. "2.9248526891356128762L9" },
  263. { "1.8801815336593227227L-21", "6.8178694125314363L9",
  264. "6.8178694125314363L9" },
  265. { "-2.6985037225367287349L-21", "-4.5571976978858014136L9",
  266. "-4.5571976978858014136L9" },
  267. { "6.0444611510506986126L-21", "-8.64585025875790907L9",
  268. "-8.64585025875790907L9" },
  269. { "-1.250177749198396931L-21", "6.428634063301101147L-11",
  270. "6.428634063176083372L-11" },
  271. { "-1.5666058964343815161L-21", "3.552568414787808555L-11",
  272. "3.5525684146311479653L-11" },
  273. { "-5.8078119773790503857L-21", "8.896395897015492877L-12",
  274. "8.8963958912076809L-12" },
  275. { "6.7472260162031965506L-21", "-6.617115409846031908L-11",
  276. "-6.617115409171309306L-11" },
  277. { "-4.16121984125470857L-21", "-3.095053467302410671L-11",
  278. "-3.095053467718532655L-11" },
  279. { "-2.114411383443366621L-21", "9.716046816037651671L-11",
  280. "9.716046815826210533L-11" },
  281. { "-2.3406730990296292957L-21", "7.900725768498098123L18",
  282. "7.900725768498098123L18" },
  283. { "-4.1514248667302411754L-21", "-8.4325334951006246184L19",
  284. "-8.4325334951006246184L19" },
  285. { "8.433933541545648577L-21", "-4.9459088765496691632L19",
  286. "-4.9459088765496691632L19" },
  287. { "2.2922577085250648752L-21", "7.813245819908182463L19",
  288. "7.813245819908182463L19" },
  289. { "8.887270525300553388L-21", "8.651116139112459977L19",
  290. "8.651116139112459977L19" },
  291. { "1.1406539199130032192L-21", "2.3931812472136783544L19",
  292. "2.3931812472136783544L19" },
  293. { "-3.778523001798117503L-21", "2.0779948578933832532L-22",
  294. "-3.5707235160087791776L-21" },
  295. { "-1.6066062689688361383L-21", "-3.5232009896946632975L-21",
  296. "-5.1298072586634994358L-21" },
  297. { "3.9703618511174300454L-21", "-8.036088455194107478L-21",
  298. "-4.0657266040766774324L-21" },
  299. { "6.46657477279861825L-21", "2.6384883907642781157L-21",
  300. "9.105063163562896366L-21" },
  301. { "4.9706631077050274314L-21", "2.3628052244020145395L-21",
  302. "7.333468332107041971L-21" },
  303. { "7.065951142271372955L-21", "3.1965272324939519L-21",
  304. "1.02624783747653248544L-20" },
  305. };