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.

459 lines
14 KiB

25 years ago
  1. #include "exam.h"
  2. #include <cl_dfloat.h>
  3. #include <cl_dfloat_io.h>
  4. #include <cl_integer.h>
  5. #include <cl_integer_io.h>
  6. static floor_test dfloat_floor_tests[] = {
  7. { "0.6173351962722496d0", "-0.11820538775792844d0",
  8. "-6", "-0.09189713027532098d0" },
  9. { "-0.17517225806171177d0", "0.1118228341753209d0",
  10. "-2", "0.04847341028893004d0" },
  11. { "-0.9387909021047899d0", "-0.16826318310698907d0",
  12. "5", "-0.09747498656984459d0" },
  13. { "0.8036728904567848d0", "0.6774308237913269d0",
  14. "1", "0.1262420666654578d0" },
  15. { "0.6882568422881421d0", "0.3302150266778784d0",
  16. "2", "0.02782678893238538d0" },
  17. { "0.3618917435888378d0", "0.5454396894763598d0",
  18. "0", "0.3618917435888378d0" },
  19. { "-0.478470818234076d0", "9.035797971846054d9",
  20. "-1", "9.035797971367584d9" },
  21. { "0.6423779722022549d0", "2.0589504447793393d9",
  22. "0", "0.6423779722022549d0" },
  23. { "0.21698095744051404d0", "1.570908384361449d9",
  24. "0", "0.21698095744051404d0" },
  25. { "0.24033995915823747d0", "6.968395233824382d9",
  26. "0", "0.24033995915823747d0" },
  27. { "-0.8531247643149816d0", "-5.299783511441018d9",
  28. "0", "-0.8531247643149817d0" },
  29. { "-0.5134978162655872d0", "2.297671112225289d9",
  30. "-1", "2.297671111711791d9" },
  31. { "0.6192405432591311d0", "5.4403538407469436d-11",
  32. "11382357864", "3.744539199218032d-11" },
  33. { "-0.20340731452742233d0", "5.44351944436815d-12",
  34. "-37366875715", "2.4681729170135434d-12" },
  35. { "-0.29394735220898527d0", "-3.6328318262890404d-12",
  36. "80914109505", "-3.3847154436219604d-12" },
  37. { "-0.8359336184185098d0", "6.064791537508077d-11",
  38. "-13783385847", "1.2432123964511977d-11" },
  39. { "-0.9762544843227843d0", "2.2086465633336306d-11",
  40. "-44201480696", "1.1997821346734454d-11" },
  41. { "-0.2919696169517234d0", "6.922295436251983d-11",
  42. "-4217815025", "3.3402028237741715d-11" },
  43. { "0.9452118035872986d0", "-1.1093667270485797d19",
  44. "-1", "-1.1093667270485797d19" },
  45. { "0.3379784391207531d0", "-3.0106029588222304d19",
  46. "-1", "-3.0106029588222304d19" },
  47. { "0.3907483945162724d0", "-9.823409070968835d19",
  48. "-1", "-9.823409070968835d19" },
  49. { "-0.4293216868359586d0", "5.965415751655242d19",
  50. "-1", "5.965415751655242d19" },
  51. { "0.13727607148241305d0", "-8.310631671228052d19",
  52. "-1", "-8.310631671228052d19" },
  53. { "-0.7478116595122868d0", "7.235991436975452d19",
  54. "-1", "7.235991436975452d19" },
  55. { "-0.9425796643098138d0", "-1.7749544068364875d-21",
  56. "531044437355311857664", "0.0d0" },
  57. { "0.20835281321620536d0", "2.7983277403481253d-21",
  58. "74456186890490986496", "0.0d0" },
  59. { "-0.5404541167071248d0", "9.266841531614177d-22",
  60. "-583212861537931100160", "0.0d0" },
  61. { "-0.06796825059990208d0", "-6.350644782153893d-21",
  62. "10702574767038046208", "0.0d0" },
  63. { "0.30647600932087793d0", "-9.704243038852408d-21",
  64. "-31581650221851901952", "0.0d0" },
  65. { "-0.7939481974521416d0", "-7.44148349933678d-21",
  66. "106692193501860495360", "0.0d0" },
  67. { "2.622471924924206d9", "0.3428958732728865d0",
  68. "7648012499", "0.2776496600055352d0" },
  69. { "9.96303133513731d9", "-0.6839887200892081d0",
  70. "-14566075496", "-0.09450688719173875d0" },
  71. { "9.438132647041376d8", "-0.9350840745499996d0",
  72. "-1009335193", "-0.15301271996267998d0" },
  73. { "-5.031281076435459d9", "0.8566679205528436d0",
  74. "-5873082155", "0.5244045303768723d0" },
  75. { "-9.504293159523993d9", "-0.17779074115973026d0",
  76. "53457750935", "-0.058079864158457416d0" },
  77. { "5.593337221858664d8", "0.6365106532159245d0",
  78. "878749977", "0.3121177083383602d0" },
  79. { "-9.849085830660753d9", "5.465582064164139d9",
  80. "-2", "1.0820782976675239d9" },
  81. { "6.254242990207708d9", "1.9986128256161973d9",
  82. "3", "2.5840451335911673d8" },
  83. { "-9.644949290710447d9", "3.677515142398587d9",
  84. "-3", "1.3875961364853137d9" },
  85. { "9.966654669106707d9", "3.622741134738514d9",
  86. "2", "2.7211723996296782d9" },
  87. { "-7.024110605080818d9", "-1.3131548351819434d9",
  88. "5", "-4.583364291711011d8" },
  89. { "-4.5982831731090415d8", "-4.587607917895467d9",
  90. "0", "-4.5982831731090415d8" },
  91. { "6.779683583609543d9", "-8.732134194560264d-11",
  92. "-77640625218895380480", "0.0d0" },
  93. { "3.040910010354103d8", "-6.386892985922651d-11",
  94. "-4761172634419539968", "0.0d0" },
  95. { "-9.081490496057175d9", "-8.389512916135551d-11",
  96. "108248125807050637312", "0.0d0" },
  97. { "-2.3391140718625803d9", "4.078343101769488d-11",
  98. "-57354519065541566464", "0.0d0" },
  99. { "9.740679130260033d9", "-4.1307299498162d-11",
  100. "-235810117064018001920", "0.0d0" },
  101. { "4.630742761978566d9", "-8.36053471494181d-11",
  102. "-55388117146413842432", "0.0d0" },
  103. { "6.607827158404311d8", "1.9791074337467208d19",
  104. "0", "6.607827158404311d8" },
  105. { "1.5835379695092866d9", "-5.599741962857091d19",
  106. "-1", "-5.599741962698737d19" },
  107. { "-9.972337740404726d9", "-1.4833907125668299d19",
  108. "0", "-9.972337740404726d9" },
  109. { "-2.8545208802037845d9", "5.460276762513134d19",
  110. "-1", "5.4602767622276825d19" },
  111. { "3.4574292483978963d9", "8.177006210253868d19",
  112. "0", "3.4574292483978963d9" },
  113. { "-6.94800692720856d9", "5.400944544004402d19",
  114. "-1", "5.400944543309601d19" },
  115. { "2.2301147741459103d9", "4.352417825189536d-22",
  116. "5123852680777023531125296857088", "0.0d0" },
  117. { "2.855798499915275d9", "-2.1597757039453335d-21",
  118. "-1322266240285272897749142994944", "0.0d0" },
  119. { "6.247757812861889d9", "-8.000803060408911d-21",
  120. "-780891338743010366964468023296", "0.0d0" },
  121. { "-8.41352264607702d8", "2.4583479152659926d-21",
  122. "-342242958933120698647142465536", "0.0d0" },
  123. { "9.08798064415713d9", "-4.6826703076651156d-21",
  124. "-1940768844921862497464005689344", "0.0d0" },
  125. { "-2.450923950975804d9", "-8.516681149015905d-21",
  126. "287779230910741073293637320704", "0.0d0" },
  127. { "-6.535114995775952d-11", "-0.4217447234387455d0",
  128. "0", "-6.535114995775952d-11" },
  129. { "6.91351782048677d-13", "-0.8578740601420116d0",
  130. "-1", "-0.8578740601413203d0" },
  131. { "-9.879448244992307d-11", "-0.6016918305263045d0",
  132. "0", "-9.879448244992307d-11" },
  133. { "7.820572196574365d-11", "-0.8508242256358738d0",
  134. "-1", "-0.8508242255576681d0" },
  135. { "-4.4420680878896835d-11", "0.6509799475016377d0",
  136. "-1", "0.650979947457217d0" },
  137. { "-8.35377304874932d-11", "-0.7623592484047194d0",
  138. "0", "-8.35377304874932d-11" },
  139. { "-4.697219220983554d-11", "-2.0199834401398075d9",
  140. "0", "-4.697219220983554d-11" },
  141. { "4.027899822164905d-11", "-3.0043885624092436d8",
  142. "-1", "-3.0043885624092436d8" },
  143. { "-9.473748837497406d-11", "-6.081705720880249d8",
  144. "0", "-9.473748837497406d-11" },
  145. { "-6.257060775257221d-11", "4.479345462936419d9",
  146. "-1", "4.479345462936419d9" },
  147. { "-4.076402998599221d-11", "3.0379052042471523d9",
  148. "-1", "3.0379052042471523d9" },
  149. { "3.2516054170046405d-11", "9.075782126517027d9",
  150. "0", "3.2516054170046405d-11" },
  151. { "7.77186165285192d-12", "-7.011585244893556d-11",
  152. "-1", "-6.234399079608364d-11" },
  153. { "-4.129939073543463d-11", "-4.398862671531905d-11",
  154. "0", "-4.129939073543463d-11" },
  155. { "-4.986332353670153d-11", "4.056354917830567d-11",
  156. "-2", "3.126377481990981d-11" },
  157. { "-6.358815251785654d-11", "3.044610839789864d-11",
  158. "-3", "2.7750172675839383d-11" },
  159. { "-1.5218538547762808d-11", "-4.9239841620755075d-11",
  160. "0", "-1.5218538547762808d-11" },
  161. { "-3.714719523899548d-11", "-3.338962509681127d-11",
  162. "1", "-3.757570142184203d-12" },
  163. { "-3.7559900032627426d-11", "-7.103620895893612d19",
  164. "0", "-3.7559900032627426d-11" },
  165. { "3.442771371655891d-11", "3.2650979291930292d19",
  166. "0", "3.442771371655891d-11" },
  167. { "-8.026236668129701d-11", "-7.030175018925641d19",
  168. "0", "-8.026236668129701d-11" },
  169. { "4.0245932625540036d-11", "9.919022649131396d19",
  170. "0", "4.0245932625540036d-11" },
  171. { "6.558019989897738d-11", "9.805879474847002d19",
  172. "0", "6.558019989897738d-11" },
  173. { "-8.950419173616613d-11", "7.8967335533488d19",
  174. "-1", "7.8967335533488d19" },
  175. { "-4.2555105814142415d-11", "-7.367149245343951d-22",
  176. "57763327980", "-5.012024424412273d-22" },
  177. { "-7.125466497249949d-11", "-9.625683307253578d-21",
  178. "7402556545", "-6.2922712544984485d-21" },
  179. { "8.076311292972551d-11", "5.7198456178965606d-21",
  180. "14119806429", "1.262169607592943d-21" },
  181. { "-7.024787982764915d-11", "1.5125149703168537d-21",
  182. "-46444419531", "6.648179051963393d-22" },
  183. { "2.3153240875994985d-11", "-1.5025822462858028d-21",
  184. "-15408967419", "-1.3907844732195436d-21" },
  185. { "9.445189938981536d-11", "-1.8886893988697117d-21",
  186. "-50009228329", "-8.218058303553574d-22" },
  187. { "-8.982223463756733d19", "0.20677548795071854d0",
  188. "-434394983311440412672", "0.0d0" },
  189. { "-2.6872844858317455d19", "0.00946240694180256d0",
  190. "-2839958693765316083712", "0.0d0" },
  191. { "-9.566658458393646d19", "-0.38847162936974444d0",
  192. "246264018659858710528", "0.0d0" },
  193. { "-4.235085548018657d19", "-0.06527446136754045d0",
  194. "648812025299173376000", "0.0d0" },
  195. { "2.8443413501845017d19", "-0.04996947402848739d0",
  196. "-569215787335074643968", "0.0d0" },
  197. { "-4.484750058861429d19", "-0.2338784192921971d0",
  198. "191755616975433072640", "0.0d0" },
  199. { "-2.986802109112903d19", "5.923385648786668d9",
  200. "-5042390090", "3.561083576852057d9" },
  201. { "8.088567504347222d18", "9.070536452627407d9",
  202. "891740807", "8.158341046664973d9" },
  203. { "-3.09688480137261d19", "-6.508291621550677d9",
  204. "4758368219", "-1.75538588669977d9" },
  205. { "4.226418080435591d19", "7.892147197133178d9",
  206. "5355219530", "6.335538696917366d8" },
  207. { "1.4013831972690205d19", "-2.4924246236187544d9",
  208. "-5622570023", "-6.556610185422871d8" },
  209. { "6.1838203826708914d19", "8.941814127664919d9",
  210. "6915621700", "8.062833976289089d9" },
  211. { "-6.916774706038343d18", "3.120694095597196d-11",
  212. "-221642189018039718512504602624", "0.0d0" },
  213. { "9.435687674071892d19", "-3.149833308668829d-11",
  214. "-2995614926067172775889444274176", "0.0d0" },
  215. { "-6.212546775235241d19", "3.239266009361982d-11",
  216. "-1917887187183768183263136317440", "0.0d0" },
  217. { "4.749482734068419d19", "-5.5235623432819116d-11",
  218. "-859858627258009608103722483712", "0.0d0" },
  219. { "3.0587261660909548d19", "4.4929685621578874d-11",
  220. "680780674018761986414328414208", "0.0d0" },
  221. { "4.141754743467259d19", "5.235000122629564d-11",
  222. "791166121575339566219965497344", "0.0d0" },
  223. { "-1.2481803107227873d19", "7.39878580568375d18",
  224. "-2", "2.3157685041396265d18" },
  225. { "-1.5884453212818639d19", "-8.336283910718495d19",
  226. "0", "-1.5884453212818639d19" },
  227. { "5.000368279611168d19", "-5.031778160332162d19",
  228. "-1", "-3.1409880720993677d17" },
  229. { "-3.6360612893747024d19", "4.7875734964388405d19",
  230. "-1", "1.1515122070641383d19" },
  231. { "2.357251757890727d19", "-4.493498319637942d19",
  232. "-1", "-2.136246561747215d19" },
  233. { "5.0747068626287395d19", "8.591364094011977d19",
  234. "0", "5.0747068626287395d19" },
  235. { "2.1440483442615423d19", "9.668454918695627d-21",
  236. "2217570813838780736509865871750106972160", "0.0d0" },
  237. { "8.818664212173065d19", "-8.186497379734964d-21",
  238. "-10772206724212702608743560617665161592832", "0.0d0" },
  239. { "-7.376250633760416d19", "-6.382238421048869d-21",
  240. "11557466435965877316178494055246213414912", "0.0d0" },
  241. { "-4.374244855009332d19", "3.864539687646209d-21",
  242. "-11318928536282082575630148538694692241408", "0.0d0" },
  243. { "7.578656580690454d19", "9.103502086399884d-22",
  244. "83249902166909342613269419960118328426496", "0.0d0" },
  245. { "5.759312769216988d19", "-9.830658049049094d-21",
  246. "-5858522125865295462884970652182979280896", "0.0d0" },
  247. { "-7.091696063135083d-21", "0.3220521420236615d0",
  248. "-1", "0.3220521420236615d0" },
  249. { "-7.472975994693659d-21", "-0.06404310380828848d0",
  250. "0", "-7.472975994693657d-21" },
  251. { "2.2994935284804662d-21", "0.8294627436562217d0",
  252. "0", "2.2994935284804662d-21" },
  253. { "-6.098532726052559d-21", "-0.5103342535054871d0",
  254. "0", "-6.098532726052559d-21" },
  255. { "-7.8237727943808d-21", "0.20193503990844952d0",
  256. "-1", "0.20193503990844952d0" },
  257. { "-5.357065560054238d-21", "0.535324456368991d0",
  258. "-1", "0.535324456368991d0" },
  259. { "8.67862366495009d-23", "5.869284875063336d9",
  260. "0", "8.67862366495009d-23" },
  261. { "-3.913399519946995d-21", "4.645302733766437d9",
  262. "-1", "4.645302733766437d9" },
  263. { "6.256033435453117d-21", "3.5904533516671333d9",
  264. "0", "6.2560334354531166d-21" },
  265. { "-7.970558626381476d-21", "4.548434922363557d9",
  266. "-1", "4.548434922363557d9" },
  267. { "7.442840440717647d-21", "-3.3266294818989463d9",
  268. "-1", "-3.3266294818989463d9" },
  269. { "-4.6732789449833775d-21", "5.614289998802058d8",
  270. "-1", "5.614289998802058d8" },
  271. { "7.136201304639634d-21", "-1.152382297069954d-12",
  272. "-1", "-1.1523822899337527d-12" },
  273. { "-7.575364316308001d-21", "-4.790622052171537d-11",
  274. "0", "-7.575364316308001d-21" },
  275. { "9.212759331893804d-21", "-6.41398602124991d-11",
  276. "-1", "-6.413986020328634d-11" },
  277. { "-1.9103188467401064d-21", "-5.1860189481412404d-11",
  278. "0", "-1.9103188467401064d-21" },
  279. { "-4.473075242507236d-21", "2.3036197131739102d-11",
  280. "-1", "2.303619712726603d-11" },
  281. { "5.138595152941494d-21", "2.9424719822474346d-11",
  282. "0", "5.138595152941494d-21" },
  283. { "-5.137698996313833d-22", "2.2468745456943227d19",
  284. "-1", "2.2468745456943227d19" },
  285. { "-7.229848882029144d-21", "-3.031606285079872d19",
  286. "0", "-7.229848882029144d-21" },
  287. { "-6.85451854164106d-21", "1.7676693722776926d19",
  288. "-1", "1.7676693722776926d19" },
  289. { "5.372223270507929d-21", "-7.439745956384552d19",
  290. "-1", "-7.439745956384552d19" },
  291. { "5.598138480271164d-21", "5.149401801116799d19",
  292. "0", "5.598138480271163d-21" },
  293. { "9.285618896860432d-21", "6.546424273112694d19",
  294. "0", "9.285618896860432d-21" },
  295. { "7.511556502656318d-21", "4.2351039143592516d-21",
  296. "1", "3.2764525882970666d-21" },
  297. { "6.050106800286075d-21", "-1.187392681676287d-21",
  298. "-6", "-1.0742492897716469d-21" },
  299. { "4.274671258683056d-21", "8.647095729321104d-21",
  300. "0", "4.274671258683056d-21" },
  301. { "7.344809600387072d-21", "6.305446958850813d-21",
  302. "1", "1.039362641536258d-21" },
  303. { "9.753544125648588d-21", "9.227661371269332d-21",
  304. "1", "5.258827543792571d-22" },
  305. { "-7.227362780459908d-21", "-6.70179577363263d-21",
  306. "1", "-5.255670068272766d-22" },
  307. };