17db96d56Sopenharmony_ci------------------------------------------------------------------------ 27db96d56Sopenharmony_ci-- dqNextToward.decTest -- decQuad next toward rhs [754r nextafter] -- 37db96d56Sopenharmony_ci-- Copyright (c) IBM Corporation, 1981, 2008. All rights reserved. -- 47db96d56Sopenharmony_ci------------------------------------------------------------------------ 57db96d56Sopenharmony_ci-- Please see the document "General Decimal Arithmetic Testcases" -- 67db96d56Sopenharmony_ci-- at http://www2.hursley.ibm.com/decimal for the description of -- 77db96d56Sopenharmony_ci-- these testcases. -- 87db96d56Sopenharmony_ci-- -- 97db96d56Sopenharmony_ci-- These testcases are experimental ('beta' versions), and they -- 107db96d56Sopenharmony_ci-- may contain errors. They are offered on an as-is basis. In -- 117db96d56Sopenharmony_ci-- particular, achieving the same results as the tests here is not -- 127db96d56Sopenharmony_ci-- a guarantee that an implementation complies with any Standard -- 137db96d56Sopenharmony_ci-- or specification. The tests are not exhaustive. -- 147db96d56Sopenharmony_ci-- -- 157db96d56Sopenharmony_ci-- Please send comments, suggestions, and corrections to the author: -- 167db96d56Sopenharmony_ci-- Mike Cowlishaw, IBM Fellow -- 177db96d56Sopenharmony_ci-- IBM UK, PO Box 31, Birmingham Road, Warwick CV34 5JL, UK -- 187db96d56Sopenharmony_ci-- mfc@uk.ibm.com -- 197db96d56Sopenharmony_ci------------------------------------------------------------------------ 207db96d56Sopenharmony_civersion: 2.59 217db96d56Sopenharmony_ci 227db96d56Sopenharmony_ci-- All operands and results are decQuads. 237db96d56Sopenharmony_ciextended: 1 247db96d56Sopenharmony_ciclamp: 1 257db96d56Sopenharmony_ciprecision: 34 267db96d56Sopenharmony_cimaxExponent: 6144 277db96d56Sopenharmony_ciminExponent: -6143 287db96d56Sopenharmony_cirounding: half_even 297db96d56Sopenharmony_ci 307db96d56Sopenharmony_ci 317db96d56Sopenharmony_ci-- Sanity check with a scattering of numerics 327db96d56Sopenharmony_cidqnextt001 nexttoward 10 10 -> 10 337db96d56Sopenharmony_cidqnextt002 nexttoward -10 -10 -> -10 347db96d56Sopenharmony_cidqnextt003 nexttoward 1 10 -> 1.000000000000000000000000000000001 357db96d56Sopenharmony_cidqnextt004 nexttoward 1 -10 -> 0.9999999999999999999999999999999999 367db96d56Sopenharmony_cidqnextt005 nexttoward -1 10 -> -0.9999999999999999999999999999999999 377db96d56Sopenharmony_cidqnextt006 nexttoward -1 -10 -> -1.000000000000000000000000000000001 387db96d56Sopenharmony_cidqnextt007 nexttoward 0 10 -> 1E-6176 Underflow Subnormal Inexact Rounded 397db96d56Sopenharmony_cidqnextt008 nexttoward 0 -10 -> -1E-6176 Underflow Subnormal Inexact Rounded 407db96d56Sopenharmony_cidqnextt009 nexttoward 9.999999999999999999999999999999999E+6144 +Infinity -> Infinity Overflow Inexact Rounded 417db96d56Sopenharmony_cidqnextt010 nexttoward -9.999999999999999999999999999999999E+6144 -Infinity -> -Infinity Overflow Inexact Rounded 427db96d56Sopenharmony_cidqnextt011 nexttoward 9.999999999999999999999999999999999 10 -> 10.00000000000000000000000000000000 437db96d56Sopenharmony_cidqnextt012 nexttoward 10 9.999999999999999999999999999999999 -> 9.999999999999999999999999999999999 447db96d56Sopenharmony_cidqnextt013 nexttoward -9.999999999999999999999999999999999 -10 -> -10.00000000000000000000000000000000 457db96d56Sopenharmony_cidqnextt014 nexttoward -10 -9.999999999999999999999999999999999 -> -9.999999999999999999999999999999999 467db96d56Sopenharmony_cidqnextt015 nexttoward 9.999999999999999999999999999999998 10 -> 9.999999999999999999999999999999999 477db96d56Sopenharmony_cidqnextt016 nexttoward 10 9.999999999999999999999999999999998 -> 9.999999999999999999999999999999999 487db96d56Sopenharmony_cidqnextt017 nexttoward -9.999999999999999999999999999999998 -10 -> -9.999999999999999999999999999999999 497db96d56Sopenharmony_cidqnextt018 nexttoward -10 -9.999999999999999999999999999999998 -> -9.999999999999999999999999999999999 507db96d56Sopenharmony_ci 517db96d56Sopenharmony_ci------- lhs=rhs 527db96d56Sopenharmony_ci-- finites 537db96d56Sopenharmony_cidqnextt101 nexttoward 7 7 -> 7 547db96d56Sopenharmony_cidqnextt102 nexttoward -7 -7 -> -7 557db96d56Sopenharmony_cidqnextt103 nexttoward 75 75 -> 75 567db96d56Sopenharmony_cidqnextt104 nexttoward -75 -75 -> -75 577db96d56Sopenharmony_cidqnextt105 nexttoward 7.50 7.5 -> 7.50 587db96d56Sopenharmony_cidqnextt106 nexttoward -7.50 -7.50 -> -7.50 597db96d56Sopenharmony_cidqnextt107 nexttoward 7.500 7.5000 -> 7.500 607db96d56Sopenharmony_cidqnextt108 nexttoward -7.500 -7.5 -> -7.500 617db96d56Sopenharmony_ci 627db96d56Sopenharmony_ci-- zeros 637db96d56Sopenharmony_cidqnextt111 nexttoward 0 0 -> 0 647db96d56Sopenharmony_cidqnextt112 nexttoward -0 -0 -> -0 657db96d56Sopenharmony_cidqnextt113 nexttoward 0E+4 0 -> 0E+4 667db96d56Sopenharmony_cidqnextt114 nexttoward -0E+4 -0 -> -0E+4 677db96d56Sopenharmony_cidqnextt115 nexttoward 0.00000000000 0.000000000000 -> 0E-11 687db96d56Sopenharmony_cidqnextt116 nexttoward -0.00000000000 -0.00 -> -0E-11 697db96d56Sopenharmony_cidqnextt117 nexttoward 0E-141 0 -> 0E-141 707db96d56Sopenharmony_cidqnextt118 nexttoward -0E-141 -000 -> -0E-141 717db96d56Sopenharmony_ci 727db96d56Sopenharmony_ci-- full coefficients, alternating bits 737db96d56Sopenharmony_cidqnextt121 nexttoward 268268268 268268268 -> 268268268 747db96d56Sopenharmony_cidqnextt122 nexttoward -268268268 -268268268 -> -268268268 757db96d56Sopenharmony_cidqnextt123 nexttoward 134134134 134134134 -> 134134134 767db96d56Sopenharmony_cidqnextt124 nexttoward -134134134 -134134134 -> -134134134 777db96d56Sopenharmony_ci 787db96d56Sopenharmony_ci-- Nmax, Nmin, Ntiny 797db96d56Sopenharmony_cidqnextt131 nexttoward 9.999999999999999999999999999999999E+6144 9.999999999999999999999999999999999E+6144 -> 9.999999999999999999999999999999999E+6144 807db96d56Sopenharmony_cidqnextt132 nexttoward 1E-6143 1E-6143 -> 1E-6143 817db96d56Sopenharmony_cidqnextt133 nexttoward 1.000000000000000000000000000000000E-6143 1.000000000000000000000000000000000E-6143 -> 1.000000000000000000000000000000000E-6143 827db96d56Sopenharmony_cidqnextt134 nexttoward 1E-6176 1E-6176 -> 1E-6176 837db96d56Sopenharmony_ci 847db96d56Sopenharmony_cidqnextt135 nexttoward -1E-6176 -1E-6176 -> -1E-6176 857db96d56Sopenharmony_cidqnextt136 nexttoward -1.000000000000000000000000000000000E-6143 -1.000000000000000000000000000000000E-6143 -> -1.000000000000000000000000000000000E-6143 867db96d56Sopenharmony_cidqnextt137 nexttoward -1E-6143 -1E-6143 -> -1E-6143 877db96d56Sopenharmony_cidqnextt138 nexttoward -9.999999999999999999999999999999999E+6144 -9.999999999999999999999999999999999E+6144 -> -9.999999999999999999999999999999999E+6144 887db96d56Sopenharmony_ci 897db96d56Sopenharmony_ci------- lhs<rhs 907db96d56Sopenharmony_cidqnextt201 nexttoward 0.9999999999999999999999999999999995 Infinity -> 0.9999999999999999999999999999999996 917db96d56Sopenharmony_cidqnextt202 nexttoward 0.9999999999999999999999999999999996 Infinity -> 0.9999999999999999999999999999999997 927db96d56Sopenharmony_cidqnextt203 nexttoward 0.9999999999999999999999999999999997 Infinity -> 0.9999999999999999999999999999999998 937db96d56Sopenharmony_cidqnextt204 nexttoward 0.9999999999999999999999999999999998 Infinity -> 0.9999999999999999999999999999999999 947db96d56Sopenharmony_cidqnextt205 nexttoward 0.9999999999999999999999999999999999 Infinity -> 1.000000000000000000000000000000000 957db96d56Sopenharmony_cidqnextt206 nexttoward 1.000000000000000000000000000000000 Infinity -> 1.000000000000000000000000000000001 967db96d56Sopenharmony_cidqnextt207 nexttoward 1.0 Infinity -> 1.000000000000000000000000000000001 977db96d56Sopenharmony_cidqnextt208 nexttoward 1 Infinity -> 1.000000000000000000000000000000001 987db96d56Sopenharmony_cidqnextt209 nexttoward 1.000000000000000000000000000000001 Infinity -> 1.000000000000000000000000000000002 997db96d56Sopenharmony_cidqnextt210 nexttoward 1.000000000000000000000000000000002 Infinity -> 1.000000000000000000000000000000003 1007db96d56Sopenharmony_cidqnextt211 nexttoward 1.000000000000000000000000000000003 Infinity -> 1.000000000000000000000000000000004 1017db96d56Sopenharmony_cidqnextt212 nexttoward 1.000000000000000000000000000000004 Infinity -> 1.000000000000000000000000000000005 1027db96d56Sopenharmony_cidqnextt213 nexttoward 1.000000000000000000000000000000005 Infinity -> 1.000000000000000000000000000000006 1037db96d56Sopenharmony_cidqnextt214 nexttoward 1.000000000000000000000000000000006 Infinity -> 1.000000000000000000000000000000007 1047db96d56Sopenharmony_cidqnextt215 nexttoward 1.000000000000000000000000000000007 Infinity -> 1.000000000000000000000000000000008 1057db96d56Sopenharmony_cidqnextt216 nexttoward 1.000000000000000000000000000000008 Infinity -> 1.000000000000000000000000000000009 1067db96d56Sopenharmony_cidqnextt217 nexttoward 1.000000000000000000000000000000009 Infinity -> 1.000000000000000000000000000000010 1077db96d56Sopenharmony_cidqnextt218 nexttoward 1.000000000000000000000000000000010 Infinity -> 1.000000000000000000000000000000011 1087db96d56Sopenharmony_cidqnextt219 nexttoward 1.000000000000000000000000000000011 Infinity -> 1.000000000000000000000000000000012 1097db96d56Sopenharmony_ci 1107db96d56Sopenharmony_cidqnextt221 nexttoward -0.9999999999999999999999999999999995 Infinity -> -0.9999999999999999999999999999999994 1117db96d56Sopenharmony_cidqnextt222 nexttoward -0.9999999999999999999999999999999996 Infinity -> -0.9999999999999999999999999999999995 1127db96d56Sopenharmony_cidqnextt223 nexttoward -0.9999999999999999999999999999999997 Infinity -> -0.9999999999999999999999999999999996 1137db96d56Sopenharmony_cidqnextt224 nexttoward -0.9999999999999999999999999999999998 Infinity -> -0.9999999999999999999999999999999997 1147db96d56Sopenharmony_cidqnextt225 nexttoward -0.9999999999999999999999999999999999 Infinity -> -0.9999999999999999999999999999999998 1157db96d56Sopenharmony_cidqnextt226 nexttoward -1.000000000000000000000000000000000 Infinity -> -0.9999999999999999999999999999999999 1167db96d56Sopenharmony_cidqnextt227 nexttoward -1.0 Infinity -> -0.9999999999999999999999999999999999 1177db96d56Sopenharmony_cidqnextt228 nexttoward -1 Infinity -> -0.9999999999999999999999999999999999 1187db96d56Sopenharmony_cidqnextt229 nexttoward -1.000000000000000000000000000000001 Infinity -> -1.000000000000000000000000000000000 1197db96d56Sopenharmony_cidqnextt230 nexttoward -1.000000000000000000000000000000002 Infinity -> -1.000000000000000000000000000000001 1207db96d56Sopenharmony_cidqnextt231 nexttoward -1.000000000000000000000000000000003 Infinity -> -1.000000000000000000000000000000002 1217db96d56Sopenharmony_cidqnextt232 nexttoward -1.000000000000000000000000000000004 Infinity -> -1.000000000000000000000000000000003 1227db96d56Sopenharmony_cidqnextt233 nexttoward -1.000000000000000000000000000000005 Infinity -> -1.000000000000000000000000000000004 1237db96d56Sopenharmony_cidqnextt234 nexttoward -1.000000000000000000000000000000006 Infinity -> -1.000000000000000000000000000000005 1247db96d56Sopenharmony_cidqnextt235 nexttoward -1.000000000000000000000000000000007 Infinity -> -1.000000000000000000000000000000006 1257db96d56Sopenharmony_cidqnextt236 nexttoward -1.000000000000000000000000000000008 Infinity -> -1.000000000000000000000000000000007 1267db96d56Sopenharmony_cidqnextt237 nexttoward -1.000000000000000000000000000000009 Infinity -> -1.000000000000000000000000000000008 1277db96d56Sopenharmony_cidqnextt238 nexttoward -1.000000000000000000000000000000010 Infinity -> -1.000000000000000000000000000000009 1287db96d56Sopenharmony_cidqnextt239 nexttoward -1.000000000000000000000000000000011 Infinity -> -1.000000000000000000000000000000010 1297db96d56Sopenharmony_cidqnextt240 nexttoward -1.000000000000000000000000000000012 Infinity -> -1.000000000000000000000000000000011 1307db96d56Sopenharmony_ci 1317db96d56Sopenharmony_ci-- Zeros 1327db96d56Sopenharmony_cidqnextt300 nexttoward 0 Infinity -> 1E-6176 Underflow Subnormal Inexact Rounded 1337db96d56Sopenharmony_cidqnextt301 nexttoward 0.00 Infinity -> 1E-6176 Underflow Subnormal Inexact Rounded 1347db96d56Sopenharmony_cidqnextt302 nexttoward 0E-300 Infinity -> 1E-6176 Underflow Subnormal Inexact Rounded 1357db96d56Sopenharmony_cidqnextt303 nexttoward 0E+300 Infinity -> 1E-6176 Underflow Subnormal Inexact Rounded 1367db96d56Sopenharmony_cidqnextt304 nexttoward 0E+30000 Infinity -> 1E-6176 Underflow Subnormal Inexact Rounded 1377db96d56Sopenharmony_cidqnextt305 nexttoward -0 Infinity -> 1E-6176 Underflow Subnormal Inexact Rounded 1387db96d56Sopenharmony_cidqnextt306 nexttoward -0.00 Infinity -> 1E-6176 Underflow Subnormal Inexact Rounded 1397db96d56Sopenharmony_cidqnextt307 nexttoward -0E-300 Infinity -> 1E-6176 Underflow Subnormal Inexact Rounded 1407db96d56Sopenharmony_cidqnextt308 nexttoward -0E+300 Infinity -> 1E-6176 Underflow Subnormal Inexact Rounded 1417db96d56Sopenharmony_cidqnextt309 nexttoward -0E+30000 Infinity -> 1E-6176 Underflow Subnormal Inexact Rounded 1427db96d56Sopenharmony_ci 1437db96d56Sopenharmony_ci-- specials 1447db96d56Sopenharmony_cidqnextt350 nexttoward Inf Infinity -> Infinity 1457db96d56Sopenharmony_cidqnextt351 nexttoward -Inf Infinity -> -9.999999999999999999999999999999999E+6144 1467db96d56Sopenharmony_cidqnextt352 nexttoward NaN Infinity -> NaN 1477db96d56Sopenharmony_cidqnextt353 nexttoward sNaN Infinity -> NaN Invalid_operation 1487db96d56Sopenharmony_cidqnextt354 nexttoward NaN77 Infinity -> NaN77 1497db96d56Sopenharmony_cidqnextt355 nexttoward sNaN88 Infinity -> NaN88 Invalid_operation 1507db96d56Sopenharmony_cidqnextt356 nexttoward -NaN Infinity -> -NaN 1517db96d56Sopenharmony_cidqnextt357 nexttoward -sNaN Infinity -> -NaN Invalid_operation 1527db96d56Sopenharmony_cidqnextt358 nexttoward -NaN77 Infinity -> -NaN77 1537db96d56Sopenharmony_cidqnextt359 nexttoward -sNaN88 Infinity -> -NaN88 Invalid_operation 1547db96d56Sopenharmony_ci 1557db96d56Sopenharmony_ci-- Nmax, Nmin, Ntiny, subnormals 1567db96d56Sopenharmony_cidqnextt370 nexttoward -9.999999999999999999999999999999999E+6144 Infinity -> -9.999999999999999999999999999999998E+6144 1577db96d56Sopenharmony_cidqnextt371 nexttoward -9.999999999999999999999999999999998E+6144 Infinity -> -9.999999999999999999999999999999997E+6144 1587db96d56Sopenharmony_cidqnextt372 nexttoward -1E-6143 Infinity -> -9.99999999999999999999999999999999E-6144 Underflow Subnormal Inexact Rounded 1597db96d56Sopenharmony_cidqnextt373 nexttoward -1.000000000000000E-6143 Infinity -> -9.99999999999999999999999999999999E-6144 Underflow Subnormal Inexact Rounded 1607db96d56Sopenharmony_cidqnextt374 nexttoward -9E-6176 Infinity -> -8E-6176 Underflow Subnormal Inexact Rounded 1617db96d56Sopenharmony_cidqnextt375 nexttoward -9.9E-6175 Infinity -> -9.8E-6175 Underflow Subnormal Inexact Rounded 1627db96d56Sopenharmony_cidqnextt376 nexttoward -9.99999999999999999999999999999E-6147 Infinity -> -9.99999999999999999999999999998E-6147 Underflow Subnormal Inexact Rounded 1637db96d56Sopenharmony_cidqnextt377 nexttoward -9.99999999999999999999999999999999E-6144 Infinity -> -9.99999999999999999999999999999998E-6144 Underflow Subnormal Inexact Rounded 1647db96d56Sopenharmony_cidqnextt378 nexttoward -9.99999999999999999999999999999998E-6144 Infinity -> -9.99999999999999999999999999999997E-6144 Underflow Subnormal Inexact Rounded 1657db96d56Sopenharmony_cidqnextt379 nexttoward -9.99999999999999999999999999999997E-6144 Infinity -> -9.99999999999999999999999999999996E-6144 Underflow Subnormal Inexact Rounded 1667db96d56Sopenharmony_cidqnextt380 nexttoward -0E-6176 Infinity -> 1E-6176 Underflow Subnormal Inexact Rounded 1677db96d56Sopenharmony_cidqnextt381 nexttoward -1E-6176 Infinity -> -0E-6176 Underflow Subnormal Inexact Rounded Clamped 1687db96d56Sopenharmony_cidqnextt382 nexttoward -2E-6176 Infinity -> -1E-6176 Underflow Subnormal Inexact Rounded 1697db96d56Sopenharmony_ci 1707db96d56Sopenharmony_cidqnextt383 nexttoward 0E-6176 Infinity -> 1E-6176 Underflow Subnormal Inexact Rounded 1717db96d56Sopenharmony_cidqnextt384 nexttoward 1E-6176 Infinity -> 2E-6176 Underflow Subnormal Inexact Rounded 1727db96d56Sopenharmony_cidqnextt385 nexttoward 2E-6176 Infinity -> 3E-6176 Underflow Subnormal Inexact Rounded 1737db96d56Sopenharmony_cidqnextt386 nexttoward 10E-6176 Infinity -> 1.1E-6175 Underflow Subnormal Inexact Rounded 1747db96d56Sopenharmony_cidqnextt387 nexttoward 100E-6176 Infinity -> 1.01E-6174 Underflow Subnormal Inexact Rounded 1757db96d56Sopenharmony_cidqnextt388 nexttoward 100000E-6176 Infinity -> 1.00001E-6171 Underflow Subnormal Inexact Rounded 1767db96d56Sopenharmony_cidqnextt389 nexttoward 1.00000000000000000000000000000E-6143 Infinity -> 1.000000000000000000000000000000001E-6143 1777db96d56Sopenharmony_cidqnextt390 nexttoward 1.000000000000000000000000000000000E-6143 Infinity -> 1.000000000000000000000000000000001E-6143 1787db96d56Sopenharmony_cidqnextt391 nexttoward 1E-6143 Infinity -> 1.000000000000000000000000000000001E-6143 1797db96d56Sopenharmony_cidqnextt392 nexttoward 9.999999999999999999999999999999997E+6144 Infinity -> 9.999999999999999999999999999999998E+6144 1807db96d56Sopenharmony_cidqnextt393 nexttoward 9.999999999999999999999999999999998E+6144 Infinity -> 9.999999999999999999999999999999999E+6144 1817db96d56Sopenharmony_cidqnextt394 nexttoward 9.999999999999999999999999999999999E+6144 Infinity -> Infinity Overflow Inexact Rounded 1827db96d56Sopenharmony_ci 1837db96d56Sopenharmony_ci------- lhs>rhs 1847db96d56Sopenharmony_cidqnextt401 nexttoward 0.9999999999999999999999999999999995 -Infinity -> 0.9999999999999999999999999999999994 1857db96d56Sopenharmony_cidqnextt402 nexttoward 0.9999999999999999999999999999999996 -Infinity -> 0.9999999999999999999999999999999995 1867db96d56Sopenharmony_cidqnextt403 nexttoward 0.9999999999999999999999999999999997 -Infinity -> 0.9999999999999999999999999999999996 1877db96d56Sopenharmony_cidqnextt404 nexttoward 0.9999999999999999999999999999999998 -Infinity -> 0.9999999999999999999999999999999997 1887db96d56Sopenharmony_cidqnextt405 nexttoward 0.9999999999999999999999999999999999 -Infinity -> 0.9999999999999999999999999999999998 1897db96d56Sopenharmony_cidqnextt406 nexttoward 1.000000000000000000000000000000000 -Infinity -> 0.9999999999999999999999999999999999 1907db96d56Sopenharmony_cidqnextt407 nexttoward 1.0 -Infinity -> 0.9999999999999999999999999999999999 1917db96d56Sopenharmony_cidqnextt408 nexttoward 1 -Infinity -> 0.9999999999999999999999999999999999 1927db96d56Sopenharmony_cidqnextt409 nexttoward 1.000000000000000000000000000000001 -Infinity -> 1.000000000000000000000000000000000 1937db96d56Sopenharmony_cidqnextt410 nexttoward 1.000000000000000000000000000000002 -Infinity -> 1.000000000000000000000000000000001 1947db96d56Sopenharmony_cidqnextt411 nexttoward 1.000000000000000000000000000000003 -Infinity -> 1.000000000000000000000000000000002 1957db96d56Sopenharmony_cidqnextt412 nexttoward 1.000000000000000000000000000000004 -Infinity -> 1.000000000000000000000000000000003 1967db96d56Sopenharmony_cidqnextt413 nexttoward 1.000000000000000000000000000000005 -Infinity -> 1.000000000000000000000000000000004 1977db96d56Sopenharmony_cidqnextt414 nexttoward 1.000000000000000000000000000000006 -Infinity -> 1.000000000000000000000000000000005 1987db96d56Sopenharmony_cidqnextt415 nexttoward 1.000000000000000000000000000000007 -Infinity -> 1.000000000000000000000000000000006 1997db96d56Sopenharmony_cidqnextt416 nexttoward 1.000000000000000000000000000000008 -Infinity -> 1.000000000000000000000000000000007 2007db96d56Sopenharmony_cidqnextt417 nexttoward 1.000000000000000000000000000000009 -Infinity -> 1.000000000000000000000000000000008 2017db96d56Sopenharmony_cidqnextt418 nexttoward 1.000000000000000000000000000000010 -Infinity -> 1.000000000000000000000000000000009 2027db96d56Sopenharmony_cidqnextt419 nexttoward 1.000000000000000000000000000000011 -Infinity -> 1.000000000000000000000000000000010 2037db96d56Sopenharmony_cidqnextt420 nexttoward 1.000000000000000000000000000000012 -Infinity -> 1.000000000000000000000000000000011 2047db96d56Sopenharmony_ci 2057db96d56Sopenharmony_cidqnextt421 nexttoward -0.9999999999999999999999999999999995 -Infinity -> -0.9999999999999999999999999999999996 2067db96d56Sopenharmony_cidqnextt422 nexttoward -0.9999999999999999999999999999999996 -Infinity -> -0.9999999999999999999999999999999997 2077db96d56Sopenharmony_cidqnextt423 nexttoward -0.9999999999999999999999999999999997 -Infinity -> -0.9999999999999999999999999999999998 2087db96d56Sopenharmony_cidqnextt424 nexttoward -0.9999999999999999999999999999999998 -Infinity -> -0.9999999999999999999999999999999999 2097db96d56Sopenharmony_cidqnextt425 nexttoward -0.9999999999999999999999999999999999 -Infinity -> -1.000000000000000000000000000000000 2107db96d56Sopenharmony_cidqnextt426 nexttoward -1.000000000000000000000000000000000 -Infinity -> -1.000000000000000000000000000000001 2117db96d56Sopenharmony_cidqnextt427 nexttoward -1.0 -Infinity -> -1.000000000000000000000000000000001 2127db96d56Sopenharmony_cidqnextt428 nexttoward -1 -Infinity -> -1.000000000000000000000000000000001 2137db96d56Sopenharmony_cidqnextt429 nexttoward -1.000000000000000000000000000000001 -Infinity -> -1.000000000000000000000000000000002 2147db96d56Sopenharmony_cidqnextt430 nexttoward -1.000000000000000000000000000000002 -Infinity -> -1.000000000000000000000000000000003 2157db96d56Sopenharmony_cidqnextt431 nexttoward -1.000000000000000000000000000000003 -Infinity -> -1.000000000000000000000000000000004 2167db96d56Sopenharmony_cidqnextt432 nexttoward -1.000000000000000000000000000000004 -Infinity -> -1.000000000000000000000000000000005 2177db96d56Sopenharmony_cidqnextt433 nexttoward -1.000000000000000000000000000000005 -Infinity -> -1.000000000000000000000000000000006 2187db96d56Sopenharmony_cidqnextt434 nexttoward -1.000000000000000000000000000000006 -Infinity -> -1.000000000000000000000000000000007 2197db96d56Sopenharmony_cidqnextt435 nexttoward -1.000000000000000000000000000000007 -Infinity -> -1.000000000000000000000000000000008 2207db96d56Sopenharmony_cidqnextt436 nexttoward -1.000000000000000000000000000000008 -Infinity -> -1.000000000000000000000000000000009 2217db96d56Sopenharmony_cidqnextt437 nexttoward -1.000000000000000000000000000000009 -Infinity -> -1.000000000000000000000000000000010 2227db96d56Sopenharmony_cidqnextt438 nexttoward -1.000000000000000000000000000000010 -Infinity -> -1.000000000000000000000000000000011 2237db96d56Sopenharmony_cidqnextt439 nexttoward -1.000000000000000000000000000000011 -Infinity -> -1.000000000000000000000000000000012 2247db96d56Sopenharmony_ci 2257db96d56Sopenharmony_ci-- Zeros 2267db96d56Sopenharmony_cidqnextt500 nexttoward -0 -Infinity -> -1E-6176 Underflow Subnormal Inexact Rounded 2277db96d56Sopenharmony_cidqnextt501 nexttoward 0 -Infinity -> -1E-6176 Underflow Subnormal Inexact Rounded 2287db96d56Sopenharmony_cidqnextt502 nexttoward 0.00 -Infinity -> -1E-6176 Underflow Subnormal Inexact Rounded 2297db96d56Sopenharmony_cidqnextt503 nexttoward -0.00 -Infinity -> -1E-6176 Underflow Subnormal Inexact Rounded 2307db96d56Sopenharmony_cidqnextt504 nexttoward 0E-300 -Infinity -> -1E-6176 Underflow Subnormal Inexact Rounded 2317db96d56Sopenharmony_cidqnextt505 nexttoward 0E+300 -Infinity -> -1E-6176 Underflow Subnormal Inexact Rounded 2327db96d56Sopenharmony_cidqnextt506 nexttoward 0E+30000 -Infinity -> -1E-6176 Underflow Subnormal Inexact Rounded 2337db96d56Sopenharmony_cidqnextt507 nexttoward -0E+30000 -Infinity -> -1E-6176 Underflow Subnormal Inexact Rounded 2347db96d56Sopenharmony_ci 2357db96d56Sopenharmony_ci-- specials 2367db96d56Sopenharmony_cidqnextt550 nexttoward Inf -Infinity -> 9.999999999999999999999999999999999E+6144 2377db96d56Sopenharmony_cidqnextt551 nexttoward -Inf -Infinity -> -Infinity 2387db96d56Sopenharmony_cidqnextt552 nexttoward NaN -Infinity -> NaN 2397db96d56Sopenharmony_cidqnextt553 nexttoward sNaN -Infinity -> NaN Invalid_operation 2407db96d56Sopenharmony_cidqnextt554 nexttoward NaN77 -Infinity -> NaN77 2417db96d56Sopenharmony_cidqnextt555 nexttoward sNaN88 -Infinity -> NaN88 Invalid_operation 2427db96d56Sopenharmony_cidqnextt556 nexttoward -NaN -Infinity -> -NaN 2437db96d56Sopenharmony_cidqnextt557 nexttoward -sNaN -Infinity -> -NaN Invalid_operation 2447db96d56Sopenharmony_cidqnextt558 nexttoward -NaN77 -Infinity -> -NaN77 2457db96d56Sopenharmony_cidqnextt559 nexttoward -sNaN88 -Infinity -> -NaN88 Invalid_operation 2467db96d56Sopenharmony_ci 2477db96d56Sopenharmony_ci-- Nmax, Nmin, Ntiny, subnormals 2487db96d56Sopenharmony_cidqnextt670 nexttoward 9.999999999999999999999999999999999E+6144 -Infinity -> 9.999999999999999999999999999999998E+6144 2497db96d56Sopenharmony_cidqnextt671 nexttoward 9.999999999999999999999999999999998E+6144 -Infinity -> 9.999999999999999999999999999999997E+6144 2507db96d56Sopenharmony_cidqnextt672 nexttoward 1E-6143 -Infinity -> 9.99999999999999999999999999999999E-6144 Underflow Subnormal Inexact Rounded 2517db96d56Sopenharmony_cidqnextt673 nexttoward 1.000000000000000000000000000000000E-6143 -Infinity -> 9.99999999999999999999999999999999E-6144 Underflow Subnormal Inexact Rounded 2527db96d56Sopenharmony_cidqnextt674 nexttoward 9E-6176 -Infinity -> 8E-6176 Underflow Subnormal Inexact Rounded 2537db96d56Sopenharmony_cidqnextt675 nexttoward 9.9E-6175 -Infinity -> 9.8E-6175 Underflow Subnormal Inexact Rounded 2547db96d56Sopenharmony_cidqnextt676 nexttoward 9.99999999999999999999999999999E-6147 -Infinity -> 9.99999999999999999999999999998E-6147 Underflow Subnormal Inexact Rounded 2557db96d56Sopenharmony_cidqnextt677 nexttoward 9.99999999999999999999999999999999E-6144 -Infinity -> 9.99999999999999999999999999999998E-6144 Underflow Subnormal Inexact Rounded 2567db96d56Sopenharmony_cidqnextt678 nexttoward 9.99999999999999999999999999999998E-6144 -Infinity -> 9.99999999999999999999999999999997E-6144 Underflow Subnormal Inexact Rounded 2577db96d56Sopenharmony_cidqnextt679 nexttoward 9.99999999999999999999999999999997E-6144 -Infinity -> 9.99999999999999999999999999999996E-6144 Underflow Subnormal Inexact Rounded 2587db96d56Sopenharmony_cidqnextt680 nexttoward 0E-6176 -Infinity -> -1E-6176 Underflow Subnormal Inexact Rounded 2597db96d56Sopenharmony_cidqnextt681 nexttoward 1E-6176 -Infinity -> 0E-6176 Underflow Subnormal Inexact Rounded Clamped 2607db96d56Sopenharmony_cidqnextt682 nexttoward 2E-6176 -Infinity -> 1E-6176 Underflow Subnormal Inexact Rounded 2617db96d56Sopenharmony_ci 2627db96d56Sopenharmony_cidqnextt683 nexttoward -0E-6176 -Infinity -> -1E-6176 Underflow Subnormal Inexact Rounded 2637db96d56Sopenharmony_cidqnextt684 nexttoward -1E-6176 -Infinity -> -2E-6176 Underflow Subnormal Inexact Rounded 2647db96d56Sopenharmony_cidqnextt685 nexttoward -2E-6176 -Infinity -> -3E-6176 Underflow Subnormal Inexact Rounded 2657db96d56Sopenharmony_cidqnextt686 nexttoward -10E-6176 -Infinity -> -1.1E-6175 Underflow Subnormal Inexact Rounded 2667db96d56Sopenharmony_cidqnextt687 nexttoward -100E-6176 -Infinity -> -1.01E-6174 Underflow Subnormal Inexact Rounded 2677db96d56Sopenharmony_cidqnextt688 nexttoward -100000E-6176 -Infinity -> -1.00001E-6171 Underflow Subnormal Inexact Rounded 2687db96d56Sopenharmony_cidqnextt689 nexttoward -1.00000000000000000000000000000E-6143 -Infinity -> -1.000000000000000000000000000000001E-6143 2697db96d56Sopenharmony_cidqnextt690 nexttoward -1.000000000000000000000000000000000E-6143 -Infinity -> -1.000000000000000000000000000000001E-6143 2707db96d56Sopenharmony_cidqnextt691 nexttoward -1E-6143 -Infinity -> -1.000000000000000000000000000000001E-6143 2717db96d56Sopenharmony_cidqnextt692 nexttoward -9.999999999999999999999999999999998E+6144 -Infinity -> -9.999999999999999999999999999999999E+6144 2727db96d56Sopenharmony_cidqnextt693 nexttoward -9.999999999999999999999999999999999E+6144 -Infinity -> -Infinity Overflow Inexact Rounded 2737db96d56Sopenharmony_ci 2747db96d56Sopenharmony_ci------- Specials 2757db96d56Sopenharmony_cidqnextt780 nexttoward -Inf -Inf -> -Infinity 2767db96d56Sopenharmony_cidqnextt781 nexttoward -Inf -1000 -> -9.999999999999999999999999999999999E+6144 2777db96d56Sopenharmony_cidqnextt782 nexttoward -Inf -1 -> -9.999999999999999999999999999999999E+6144 2787db96d56Sopenharmony_cidqnextt783 nexttoward -Inf -0 -> -9.999999999999999999999999999999999E+6144 2797db96d56Sopenharmony_cidqnextt784 nexttoward -Inf 0 -> -9.999999999999999999999999999999999E+6144 2807db96d56Sopenharmony_cidqnextt785 nexttoward -Inf 1 -> -9.999999999999999999999999999999999E+6144 2817db96d56Sopenharmony_cidqnextt786 nexttoward -Inf 1000 -> -9.999999999999999999999999999999999E+6144 2827db96d56Sopenharmony_cidqnextt787 nexttoward -1000 -Inf -> -1000.000000000000000000000000000001 2837db96d56Sopenharmony_cidqnextt788 nexttoward -Inf -Inf -> -Infinity 2847db96d56Sopenharmony_cidqnextt789 nexttoward -1 -Inf -> -1.000000000000000000000000000000001 2857db96d56Sopenharmony_cidqnextt790 nexttoward -0 -Inf -> -1E-6176 Underflow Subnormal Inexact Rounded 2867db96d56Sopenharmony_cidqnextt791 nexttoward 0 -Inf -> -1E-6176 Underflow Subnormal Inexact Rounded 2877db96d56Sopenharmony_cidqnextt792 nexttoward 1 -Inf -> 0.9999999999999999999999999999999999 2887db96d56Sopenharmony_cidqnextt793 nexttoward 1000 -Inf -> 999.9999999999999999999999999999999 2897db96d56Sopenharmony_cidqnextt794 nexttoward Inf -Inf -> 9.999999999999999999999999999999999E+6144 2907db96d56Sopenharmony_ci 2917db96d56Sopenharmony_cidqnextt800 nexttoward Inf -Inf -> 9.999999999999999999999999999999999E+6144 2927db96d56Sopenharmony_cidqnextt801 nexttoward Inf -1000 -> 9.999999999999999999999999999999999E+6144 2937db96d56Sopenharmony_cidqnextt802 nexttoward Inf -1 -> 9.999999999999999999999999999999999E+6144 2947db96d56Sopenharmony_cidqnextt803 nexttoward Inf -0 -> 9.999999999999999999999999999999999E+6144 2957db96d56Sopenharmony_cidqnextt804 nexttoward Inf 0 -> 9.999999999999999999999999999999999E+6144 2967db96d56Sopenharmony_cidqnextt805 nexttoward Inf 1 -> 9.999999999999999999999999999999999E+6144 2977db96d56Sopenharmony_cidqnextt806 nexttoward Inf 1000 -> 9.999999999999999999999999999999999E+6144 2987db96d56Sopenharmony_cidqnextt807 nexttoward Inf Inf -> Infinity 2997db96d56Sopenharmony_cidqnextt808 nexttoward -1000 Inf -> -999.9999999999999999999999999999999 3007db96d56Sopenharmony_cidqnextt809 nexttoward -Inf Inf -> -9.999999999999999999999999999999999E+6144 3017db96d56Sopenharmony_cidqnextt810 nexttoward -1 Inf -> -0.9999999999999999999999999999999999 3027db96d56Sopenharmony_cidqnextt811 nexttoward -0 Inf -> 1E-6176 Underflow Subnormal Inexact Rounded 3037db96d56Sopenharmony_cidqnextt812 nexttoward 0 Inf -> 1E-6176 Underflow Subnormal Inexact Rounded 3047db96d56Sopenharmony_cidqnextt813 nexttoward 1 Inf -> 1.000000000000000000000000000000001 3057db96d56Sopenharmony_cidqnextt814 nexttoward 1000 Inf -> 1000.000000000000000000000000000001 3067db96d56Sopenharmony_cidqnextt815 nexttoward Inf Inf -> Infinity 3077db96d56Sopenharmony_ci 3087db96d56Sopenharmony_cidqnextt821 nexttoward NaN -Inf -> NaN 3097db96d56Sopenharmony_cidqnextt822 nexttoward NaN -1000 -> NaN 3107db96d56Sopenharmony_cidqnextt823 nexttoward NaN -1 -> NaN 3117db96d56Sopenharmony_cidqnextt824 nexttoward NaN -0 -> NaN 3127db96d56Sopenharmony_cidqnextt825 nexttoward NaN 0 -> NaN 3137db96d56Sopenharmony_cidqnextt826 nexttoward NaN 1 -> NaN 3147db96d56Sopenharmony_cidqnextt827 nexttoward NaN 1000 -> NaN 3157db96d56Sopenharmony_cidqnextt828 nexttoward NaN Inf -> NaN 3167db96d56Sopenharmony_cidqnextt829 nexttoward NaN NaN -> NaN 3177db96d56Sopenharmony_cidqnextt830 nexttoward -Inf NaN -> NaN 3187db96d56Sopenharmony_cidqnextt831 nexttoward -1000 NaN -> NaN 3197db96d56Sopenharmony_cidqnextt832 nexttoward -1 NaN -> NaN 3207db96d56Sopenharmony_cidqnextt833 nexttoward -0 NaN -> NaN 3217db96d56Sopenharmony_cidqnextt834 nexttoward 0 NaN -> NaN 3227db96d56Sopenharmony_cidqnextt835 nexttoward 1 NaN -> NaN 3237db96d56Sopenharmony_cidqnextt836 nexttoward 1000 NaN -> NaN 3247db96d56Sopenharmony_cidqnextt837 nexttoward Inf NaN -> NaN 3257db96d56Sopenharmony_ci 3267db96d56Sopenharmony_cidqnextt841 nexttoward sNaN -Inf -> NaN Invalid_operation 3277db96d56Sopenharmony_cidqnextt842 nexttoward sNaN -1000 -> NaN Invalid_operation 3287db96d56Sopenharmony_cidqnextt843 nexttoward sNaN -1 -> NaN Invalid_operation 3297db96d56Sopenharmony_cidqnextt844 nexttoward sNaN -0 -> NaN Invalid_operation 3307db96d56Sopenharmony_cidqnextt845 nexttoward sNaN 0 -> NaN Invalid_operation 3317db96d56Sopenharmony_cidqnextt846 nexttoward sNaN 1 -> NaN Invalid_operation 3327db96d56Sopenharmony_cidqnextt847 nexttoward sNaN 1000 -> NaN Invalid_operation 3337db96d56Sopenharmony_cidqnextt848 nexttoward sNaN NaN -> NaN Invalid_operation 3347db96d56Sopenharmony_cidqnextt849 nexttoward sNaN sNaN -> NaN Invalid_operation 3357db96d56Sopenharmony_cidqnextt850 nexttoward NaN sNaN -> NaN Invalid_operation 3367db96d56Sopenharmony_cidqnextt851 nexttoward -Inf sNaN -> NaN Invalid_operation 3377db96d56Sopenharmony_cidqnextt852 nexttoward -1000 sNaN -> NaN Invalid_operation 3387db96d56Sopenharmony_cidqnextt853 nexttoward -1 sNaN -> NaN Invalid_operation 3397db96d56Sopenharmony_cidqnextt854 nexttoward -0 sNaN -> NaN Invalid_operation 3407db96d56Sopenharmony_cidqnextt855 nexttoward 0 sNaN -> NaN Invalid_operation 3417db96d56Sopenharmony_cidqnextt856 nexttoward 1 sNaN -> NaN Invalid_operation 3427db96d56Sopenharmony_cidqnextt857 nexttoward 1000 sNaN -> NaN Invalid_operation 3437db96d56Sopenharmony_cidqnextt858 nexttoward Inf sNaN -> NaN Invalid_operation 3447db96d56Sopenharmony_cidqnextt859 nexttoward NaN sNaN -> NaN Invalid_operation 3457db96d56Sopenharmony_ci 3467db96d56Sopenharmony_ci-- propagating NaNs 3477db96d56Sopenharmony_cidqnextt861 nexttoward NaN1 -Inf -> NaN1 3487db96d56Sopenharmony_cidqnextt862 nexttoward +NaN2 -1000 -> NaN2 3497db96d56Sopenharmony_cidqnextt863 nexttoward NaN3 1000 -> NaN3 3507db96d56Sopenharmony_cidqnextt864 nexttoward NaN4 Inf -> NaN4 3517db96d56Sopenharmony_cidqnextt865 nexttoward NaN5 +NaN6 -> NaN5 3527db96d56Sopenharmony_cidqnextt866 nexttoward -Inf NaN7 -> NaN7 3537db96d56Sopenharmony_cidqnextt867 nexttoward -1000 NaN8 -> NaN8 3547db96d56Sopenharmony_cidqnextt868 nexttoward 1000 NaN9 -> NaN9 3557db96d56Sopenharmony_cidqnextt869 nexttoward Inf +NaN10 -> NaN10 3567db96d56Sopenharmony_cidqnextt871 nexttoward sNaN11 -Inf -> NaN11 Invalid_operation 3577db96d56Sopenharmony_cidqnextt872 nexttoward sNaN12 -1000 -> NaN12 Invalid_operation 3587db96d56Sopenharmony_cidqnextt873 nexttoward sNaN13 1000 -> NaN13 Invalid_operation 3597db96d56Sopenharmony_cidqnextt874 nexttoward sNaN14 NaN17 -> NaN14 Invalid_operation 3607db96d56Sopenharmony_cidqnextt875 nexttoward sNaN15 sNaN18 -> NaN15 Invalid_operation 3617db96d56Sopenharmony_cidqnextt876 nexttoward NaN16 sNaN19 -> NaN19 Invalid_operation 3627db96d56Sopenharmony_cidqnextt877 nexttoward -Inf +sNaN20 -> NaN20 Invalid_operation 3637db96d56Sopenharmony_cidqnextt878 nexttoward -1000 sNaN21 -> NaN21 Invalid_operation 3647db96d56Sopenharmony_cidqnextt879 nexttoward 1000 sNaN22 -> NaN22 Invalid_operation 3657db96d56Sopenharmony_cidqnextt880 nexttoward Inf sNaN23 -> NaN23 Invalid_operation 3667db96d56Sopenharmony_cidqnextt881 nexttoward +NaN25 +sNaN24 -> NaN24 Invalid_operation 3677db96d56Sopenharmony_cidqnextt882 nexttoward -NaN26 NaN28 -> -NaN26 3687db96d56Sopenharmony_cidqnextt883 nexttoward -sNaN27 sNaN29 -> -NaN27 Invalid_operation 3697db96d56Sopenharmony_cidqnextt884 nexttoward 1000 -NaN30 -> -NaN30 3707db96d56Sopenharmony_cidqnextt885 nexttoward 1000 -sNaN31 -> -NaN31 Invalid_operation 3717db96d56Sopenharmony_ci 3727db96d56Sopenharmony_ci-- Null tests 3737db96d56Sopenharmony_cidqnextt900 nexttoward 1 # -> NaN Invalid_operation 3747db96d56Sopenharmony_cidqnextt901 nexttoward # 1 -> NaN Invalid_operation 3757db96d56Sopenharmony_ci 376