1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 191 192 193 194 195 196 197 198 199 200 201 202 203 204 205 206 207 208 209 210 211 212 213 214 215 216 217 218 219 220 221 222 223 224 225 226 227 228 229 230 231 232 233 234 235 236 237 238 239 240 241 242 243 244 245 246 247 248 249 250 251 252 253 254 255 256 257 258 259 260 261 262 263 264 265 266 267 268 269 270 271 272 273 274 275 276 277 278 279 280 281 282 283 284 285 286 287 288 289 290 291 292 293 294 295 296 297 298 299 300 301 302 303 304 305 306 307 308 309 310 311 312 313 314 315 316 317 318 319 320 321 322 323 324 325 326 327 328 329 330 331 332 333 334 335 336 337 338 339 340 341 342 343 344 345 346 347 348 349 350 351 352 353 354 355 356 357 358 359 360 361 362 363 364 365 366 367 368 369 370 371 372 373 374 375 376 377 378 379 380 381 382 383 384 385 386 387 388 389 390 391 392 393 394 395 396 397 398 399 400 401 402 403 404 405 406 407 408 409 410 411 412 413 414 415 416 417 418 419 420 421 422 423 424 425 426 427 428 429 430 431 432 433 434 435 436 437 438 439 440 441 442 443 444 445 446 447 448 449 450 451 452 453 454 455 456 457 458 459 460 461 462 463 464 465 466 467 468 469 470 471 472 473 474 475 476 477 478 479 480 481 482 483 484 485 486 487 488 489 490 491 492 493 494 495 496 497 498 499 500 501 502 503 504 505 506 507 508 509 510 511 512 513 514 515 516 517 518 519 520 521 522 523 524 525 526 527 528 529 530 531 532 533 534 535 536 537 538 539 540 541 542 543 544 545 546 547 548 549 550 551 552 553 554 555 556 557 558 559 560 561 562 563 564 565 566 567 568 569 570 571 572 573 574 575 576 577 578 579 580 581 582 583 584 585 586 587 588 589 590 591 592 593 594 595 596 597 598 599 600 601 602 603 604 605 606 607 608 609 610 611 612 613 614 615 616 617 618 619 620 621 622 623 624 625 626 627 628 629 630 631 632 633 634 635 636 637 638 639 640 641 642 643 644 645 646 647 648 649 650 651 652 653 654 655 656 657 658 659 660 661 662 663 664 665 666 667 668 669 670 671 672 673 674 675 676 677 678 679 680 681 682 683 684 685 686 687 688 689 690 691 692 693 694 695 696 697 698 699 700 701 702 703 704 705 706 707 708 709 710 711 712 713 714 715 716 717 718 719 720 721 722 723 724 725 726 727 728 729 730 731 732 733 734 735 736 737 738 739 740 741 742 743 744 745 746 747 748 749 750 751 752 753 754 755 756 757 758 759 760 761 762 763 764 765 766 767 768 769 770 771 772 773 774 775 776 777 778 779 780 781 782 783 784 785 786 787 788 789 790 791 792 793 794 795 796 797 798 799 800 801 802 803 804 805 806 807 808 809 810 811 812 813 814 815 816 817 818 819 820 821 822 823 824 825 826 827 828 829 830 831 832 833 834 835 836 837 838 839 840 841 842 843 844 845 846 847 848 849 850 851 852 853 854 855 856 857 858 859 860 861 862 863 864 865 866 867 868 869 870 871 872 873 874 875 876 877 878 879 880 881 882 883 884 885 886 887 888 889 890 891 892 893 894 895 896 897 898 899 900 901 902 903 904 905 906 907 908 909 910 911 912 913 914 915 916 917 918 919 920 921 922 923 924 925 926 927 928 929 930 931 932 933 934 935 936 937 938 939 940 941 942 943 944 945 946 947 948 949 950 951 952 953 954 955 956 957 958 959 960 961 962 963 964 965 966 967 968 969 970 971 972 973 974 975 976 977 978 979 980 981 982 983 984 985 986 987 988 989 990 991 992 993 994 995 996 997 998 999 1000 1001 1002 1003 1004 1005 1006 1007 1008 1009 1010 1011 1012 1013 1014 1015 1016 1017 1018 1019 1020 1021 1022 1023 1024 1025 1026 1027 1028 1029 1030 1031 1032 1033 1034 1035 1036 1037 1038 1039 1040 1041 1042 1043 1044 1045 1046 1047 1048 1049 1050 1051 1052 1053 1054 1055 1056 1057 1058 1059 1060 1061 1062 1063 1064 1065 1066 1067 1068 1069 1070 1071 1072 1073 1074 1075 1076 1077 1078 1079 1080 1081 1082 1083 1084 1085 1086 1087 1088 1089 1090 1091 1092 1093 1094 1095 1096 1097 1098 1099 1100 1101 1102 1103 1104 1105 1106 1107 1108 1109 1110 1111 1112 1113 1114 1115 1116 1117 1118 1119 1120 1121 1122 1123 1124 1125 1126 1127 1128 1129 1130 1131 1132 1133 1134 1135 1136 1137 1138 1139 1140 1141 1142 1143 1144 1145 1146 1147 1148 1149 1150 1151 1152 1153 1154 1155 1156 1157 1158 1159 1160 1161 1162 1163 1164 1165 1166 1167 1168 1169 1170 1171 1172 1173 1174 1175 1176 1177 1178 1179 1180 1181 1182 1183 1184 1185 1186 1187 1188 1189 1190 1191 1192 1193 1194 1195 1196 1197 1198 1199 1200 1201 1202 1203 1204 1205 1206 1207 1208 1209 1210 1211 1212 1213 1214 1215 1216 1217 1218 1219 1220 1221 1222 1223 1224 1225 1226 1227 1228 1229 1230 1231 1232 1233 1234 1235 1236 1237 1238 1239 1240 1241 1242 1243 1244 1245 1246 1247 1248 1249 1250 1251 1252 1253 1254 1255 1256 1257 1258 1259 1260 1261 1262 1263 1264 1265 1266 1267 1268 1269 1270 1271 1272 1273 1274 1275 1276 1277 1278 1279 1280 1281 1282 1283 1284 1285 1286 1287 1288 1289 1290 1291 1292 1293 1294 1295 1296 1297 1298 1299 1300 1301 1302 1303 1304 1305 1306 1307 1308 1309 1310 1311 1312 1313 1314 1315 1316 1317 1318 1319 1320 1321 1322 1323 1324 1325 1326 1327 1328 1329 1330 1331 1332 1333 1334 1335 1336 1337 1338 1339 1340 1341 1342 1343 1344 1345 1346 1347 1348 1349 1350 1351 1352 1353 1354 1355 1356 1357 1358 1359 1360 1361 1362 1363 1364 1365 1366 1367 1368 1369 1370 1371 1372 1373 1374 1375 1376 1377 1378 1379 1380 1381 1382 1383 1384 1385 1386 1387 1388 1389 1390 1391 1392 1393 1394 1395 1396 1397 1398 1399 1400 1401 1402 1403 1404 1405 1406 1407 1408 1409 1410 1411 1412 1413 1414 1415 1416 1417 1418 1419 1420 1421 1422 1423 1424 1425 1426 1427 1428 1429 1430 1431 1432 1433 1434 1435 1436 1437 1438 1439 1440 1441 1442 1443 1444 1445 1446 1447 1448 1449 1450 1451 1452 1453 1454 1455 1456 1457 1458 1459 1460 1461 1462 1463 1464 1465 1466 1467 1468 1469 1470 1471 1472 1473 1474 1475 1476 1477 1478 1479 1480 1481 1482 1483 1484 1485 1486 1487 1488 1489 1490 1491 1492 1493 1494 1495 1496 1497 1498 1499 1500 1501 1502 1503 1504 1505 1506 1507 1508 1509 1510 1511 1512 1513 1514 1515 1516 1517 1518 1519 1520 1521 1522 1523 1524 1525 1526 1527 1528 1529 1530 1531 1532 1533 1534 1535 1536 1537 1538 1539 1540 1541 1542 1543 1544 1545 1546 1547 1548 1549 1550 1551 1552 1553 1554 1555 1556 1557 1558 1559 1560 1561 1562 1563 1564 1565 1566 1567 1568 1569 1570 1571 1572 1573 1574 1575 1576 1577 1578 1579 1580 1581 1582 1583 1584 1585 1586 1587 1588 1589 1590 1591 1592 1593 1594 1595 1596 1597 1598 1599 1600 1601 1602 1603 1604 1605 1606 1607 1608 1609 1610 1611 1612 1613 1614 1615 1616 1617 1618 1619 1620 1621 1622 1623 1624 1625 1626 1627 1628 1629 1630 1631 1632 1633 1634 1635 1636 1637 1638 1639 1640 1641 1642 1643 1644 1645 1646 1647 1648 1649 1650 1651 1652 1653 1654 1655 1656 1657 1658 1659 1660 1661 1662 1663 1664 1665 1666 1667 1668 1669 1670 1671 1672 1673 1674 1675 1676 1677 1678 1679 1680 1681 1682 1683 1684 1685 1686 1687 1688 1689 1690 1691 1692 1693 1694 1695 1696 1697 1698 1699 1700 1701 1702 1703 1704 1705 1706 1707 1708 1709 1710 1711 1712 1713 1714 1715 1716 1717 1718 1719 1720 1721 1722 1723 1724 1725 1726 1727 1728 1729 1730 1731 1732 1733 1734 1735 1736 1737 1738 1739 1740 1741 1742 1743 1744 1745 1746 1747 1748 1749 1750 1751 1752 1753 1754 1755 1756 1757 1758 1759 1760 1761 1762 1763 1764 1765 1766 1767 1768 1769 1770 1771 1772 1773 1774 1775 1776 1777 1778 1779 1780 1781 1782 1783 1784 1785 1786 1787 1788 1789 1790 1791 1792 1793 1794 1795 1796 1797 1798 1799 1800 1801 1802 1803 1804 1805 1806 1807 1808 1809 1810 1811 1812 1813 1814 1815 1816 1817 1818 1819 1820 1821 1822 1823 1824 1825 1826 1827 1828 1829 1830 1831 1832 1833 1834 1835 1836 1837 1838 1839 1840 1841 1842 1843 1844 1845 1846 1847 1848 1849 1850 1851 1852 1853 1854 1855 1856 1857 1858 1859 1860 1861 1862 1863 1864 1865 1866 1867 1868 1869 1870 1871 1872 1873 1874 1875 1876 1877 1878 1879 1880 1881 1882 1883 1884 1885 1886 1887 1888 1889 1890 1891 1892 1893 1894 1895 1896 1897 1898 1899 1900 1901 1902 1903 1904 1905 1906 1907 1908 1909 1910 1911 1912 1913 1914 1915 1916 1917 1918 1919 1920 1921 1922 1923 1924 1925 1926 1927 1928 1929 1930 1931 1932 1933 1934 1935 1936 1937 1938 1939 1940 1941 1942 1943 1944 1945 1946 1947 1948 1949 1950 1951 1952 1953 1954 1955 1956 1957 1958 1959 1960 1961 1962 1963 1964 1965 1966 1967 1968 1969 1970 1971 1972 1973 1974 1975 1976 1977 1978 1979 1980 1981 1982 1983 1984 1985 1986 1987 1988 1989 1990 1991 1992 1993 1994 1995 1996 1997 1998 1999 2000 2001 2002 2003 2004 2005 2006 2007 2008 2009 2010 2011 2012 2013 2014 2015 2016 2017 2018 2019 2020 2021 2022 2023 2024 2025 2026 2027 2028 2029 2030 2031 2032 2033 2034 2035 2036 2037 2038 2039 2040 2041 2042 2043 2044 2045 2046 2047 2048 2049 2050 2051 2052 2053 2054 2055 2056 2057 2058 2059 2060 2061 2062 2063 2064 2065 2066 2067 2068 2069 2070 2071 2072 2073 2074 2075 2076 2077 2078 2079 2080 2081 2082 2083 2084 2085 2086 2087 2088 2089 2090 2091 2092 2093 2094 2095 2096 2097 2098 2099 2100 2101 2102 2103 2104 2105 2106 2107 2108 2109 2110 2111 2112 2113 2114 2115 2116 2117 2118 2119 2120 2121 2122 2123 2124 2125 2126 2127 2128 2129 2130 2131 2132 2133 2134 2135 2136 2137 2138 2139 2140 2141 2142 2143 2144 2145 2146 2147 2148 2149 2150 2151 2152 2153 2154 2155 2156 2157 2158 2159 2160 2161 2162 2163 2164 2165 2166 2167 2168 2169 2170 2171 2172 2173 2174 2175 2176 2177 2178 2179 2180 2181 2182 2183 2184 2185 2186 2187 2188 2189 2190 2191 2192 2193 2194 2195 2196 2197 2198 2199 2200 2201 2202 2203 2204 2205 2206 2207 2208 2209 2210 2211 2212 2213 2214 2215 2216 2217 2218 2219 2220 2221 2222 2223 2224 2225 2226 2227 2228 2229 2230 2231 2232 2233 2234 2235 2236 2237 2238 2239 2240 2241 2242 2243 2244 2245 2246 2247 2248 2249 2250 2251 2252 2253 2254 2255 2256 2257 2258 2259 2260 2261 2262 2263 2264 2265 2266 2267 2268 2269 2270 2271 2272 2273 2274 2275 2276 2277 2278 2279 2280 2281 2282 2283 2284 2285 2286 2287 2288 2289 2290 2291 2292 2293 2294 2295 2296 2297 2298 2299 2300 2301 2302 2303 2304 2305 2306 2307 2308 2309 2310 2311 2312 2313 2314 2315 2316 2317 2318 2319 2320 2321 2322 2323 2324 2325 2326 2327 2328 2329 2330 2331 2332 2333 2334 2335 2336 2337 2338 2339 2340 2341 2342 2343 2344 2345 2346 2347 2348 2349 2350 2351 2352 2353 2354 2355 2356 2357 2358 2359 2360 2361 2362 2363 2364 2365 2366 2367 2368 2369 2370 2371 2372 2373 2374 2375 2376 2377 2378 2379 2380 2381 2382 2383 2384 2385 2386 2387 2388 2389 2390 2391 2392 2393 2394 2395 2396 2397 2398 2399 2400 2401 2402 2403 2404 2405 2406 2407 2408 2409 2410 2411 2412 2413 2414 2415 2416 2417 2418 2419 2420 2421 2422 2423 2424 2425 2426 2427 2428 2429 2430 2431 2432 2433 2434 2435 2436 2437 2438 2439 2440 2441 2442 2443 2444 2445 2446 2447 2448 2449 2450 2451 2452 2453 2454 2455 2456 2457 2458 2459 2460 2461 2462 2463 2464 2465 2466 2467 2468 2469 2470 2471 2472 2473 2474 2475 2476 2477 2478 2479 2480 2481 2482 2483 2484 2485 2486 2487 2488 2489 2490 2491 2492 2493 2494 2495 2496 2497 2498 2499 2500 2501 2502 2503 2504 2505 2506 2507 2508 2509 2510 2511 2512 2513 2514 2515 2516 2517 2518 2519 2520 2521 2522 2523 2524 2525 2526 2527 2528 2529 2530 2531 2532 2533 2534 2535 2536 2537 2538 2539 2540 2541 2542 2543 2544 2545 2546 2547 2548 2549 2550 2551 2552 2553 2554 2555 2556 2557 2558 2559 2560 2561 2562 2563 2564 2565 2566 2567 2568 2569 2570 2571 2572 2573 2574 2575 2576 2577 2578 2579 2580 2581 2582 2583 2584 2585 2586 2587 2588 2589 2590 2591 2592 2593 2594 2595 2596 2597 2598 2599 2600 2601 2602 2603 2604 2605 2606 2607 2608 2609 2610 2611 2612 2613 2614 2615 2616 2617 2618 2619 2620 2621 2622 2623 2624 2625 2626 2627 2628 2629 2630 2631 2632 2633 2634 2635 2636 2637 2638 2639 2640 2641 2642 2643 2644 2645 2646 2647 2648 2649 2650 2651 2652 2653 2654 2655 2656 2657 2658 2659 2660 2661 2662 2663 2664 2665 2666 2667 2668 2669 2670 2671 2672 2673 2674 2675 2676 2677 2678 2679 2680 2681 2682 2683 2684 2685 2686 2687 2688 2689 2690 2691 2692 2693 2694 2695 2696 2697 2698 2699 2700 2701 2702 2703 2704 2705 2706 2707 2708 2709 2710 2711 2712 2713 2714 2715 2716 2717 2718 2719 2720 2721 2722 2723 2724 2725 2726 2727 2728 2729 2730 2731 2732 2733 2734 2735 2736 2737 2738 2739 2740 2741 2742 2743 2744 2745 2746 2747 2748 2749 2750 2751 2752 2753 2754 2755 2756 2757 2758 2759 2760 2761 2762 2763 2764 2765 2766 2767 2768 2769 2770 2771 2772 2773 2774 2775 2776 2777 2778 2779 2780 2781 2782 2783 2784 2785 2786 2787 2788 2789 2790 2791 2792 2793 2794 2795 2796 2797 2798 2799 2800 2801 2802 2803 2804 2805 2806 2807 2808 2809 2810 2811 2812 2813 2814 2815 2816 2817 2818 2819 2820 2821 2822 2823 2824 2825 2826 2827 2828 2829 2830 2831 2832 2833 2834 2835 2836 2837 2838 2839 2840 2841 2842 2843 2844 2845 2846 2847 2848 2849 2850 2851 2852 2853 2854 2855 2856 2857 2858 2859 2860 2861 2862 2863 2864 2865 2866 2867 2868 2869 2870 2871 2872 2873 2874 2875 2876 2877 2878 2879 2880 2881 2882 2883 2884 2885 2886 2887 2888 2889 2890 2891 2892 2893 2894 2895 2896 2897 2898 2899 2900 2901 2902 2903 2904 2905 2906 2907 2908 2909 2910 2911 2912 2913 2914 2915 2916 2917 2918 2919 2920 2921 2922 2923 2924 2925 2926 2927 2928 2929 2930 2931 2932 2933 2934 2935 2936 2937 2938 2939 2940 2941 2942 2943 2944 2945 2946 2947 2948 2949 2950 2951 2952 2953 2954 2955 2956 2957 2958 2959 2960 2961 2962 2963 2964 2965 2966 2967 2968 2969 2970 2971 2972 2973 2974 2975 2976 2977 2978 2979 2980 2981 2982 2983 2984 2985 2986 2987 2988 2989 2990 2991 2992 2993 2994 2995 2996 2997 2998 2999 3000 3001 3002 3003 3004 3005 3006 3007 3008 3009 3010 3011 3012 3013 3014 3015 3016 3017 3018 3019 3020 3021 3022 3023 3024 3025 3026 3027 3028 3029 3030 3031 3032 3033 3034 3035 3036 3037 3038 3039 3040 3041 3042 3043 3044 3045 3046 3047 3048 3049 3050 3051 3052 3053 3054 3055 3056 3057 3058 3059 3060 3061 3062 3063 3064 3065 3066 3067 3068 3069 3070 3071 3072 3073 3074 3075 3076 3077 3078 3079 3080 3081 3082 3083 3084 3085 3086 3087 3088 3089 3090 3091 3092 3093 3094 3095 3096 3097 3098 3099 3100 3101 3102 3103 3104 3105 3106 3107 3108 3109 3110 3111 3112 3113 3114 3115 3116 3117 3118 3119 3120 3121 3122 3123 3124 3125 3126 3127 3128 3129 3130 3131 3132 3133 3134 3135 3136 3137 3138 3139 3140 3141 3142 3143 3144 3145 3146 3147 3148 3149 3150 3151 3152 3153 3154 3155 3156 3157 3158 3159 3160 3161 3162 3163 3164 3165 3166 3167 3168 3169 3170 3171 3172 3173 3174 3175 3176 3177 3178 3179 3180 3181 3182 3183 3184 3185 3186 3187 3188 3189 3190 3191 3192 3193 3194 3195 3196 3197 3198 3199 3200 3201 3202 3203 3204 3205 3206 3207 3208 3209 3210 3211 3212 3213 3214 3215 3216 3217 3218 3219 3220 3221 3222 3223 3224 3225 3226 3227 3228 3229 3230 3231 3232 3233 3234 3235 3236 3237 3238 3239 3240 3241 3242 3243 3244 3245 3246 3247 3248 3249 3250 3251 3252 3253 3254 3255 3256 3257 3258 3259 3260 3261 3262 3263 3264 3265 3266 3267 3268 3269 3270 3271 3272 3273 3274 3275 3276 3277 3278 3279 3280 3281 3282 3283 3284 3285 3286 3287 3288 3289 3290 3291 3292 3293 3294 3295 3296 3297 3298 3299 3300 3301 3302 3303 3304 3305 3306 3307 3308 3309 3310 3311 3312 3313 3314 3315 3316 3317 3318 3319 3320 3321 3322 3323 3324 3325 3326 3327 3328 3329 3330 3331 3332 3333 3334 3335 3336 3337 3338 3339 3340 3341 3342 3343 3344 3345 3346 3347 3348 3349 3350 3351 3352 3353 3354 3355 3356 3357 3358 3359 3360 3361 3362 3363 3364 3365 3366 3367 3368 3369 3370 3371 3372 3373 3374 3375 3376 3377 3378 3379 3380 3381 3382 3383 3384 3385 3386 3387 3388 3389 3390 3391 3392 3393 3394 3395 3396 3397 3398 3399 3400 3401 3402 3403 3404 3405 3406 3407 3408 3409 3410 3411 3412 3413 3414 3415 3416 3417 3418 3419 3420 3421 3422 3423 3424 3425 3426 3427 3428 3429 3430 3431 3432 3433 3434 3435 3436 3437 3438 3439 3440 3441 3442 3443 3444 3445 3446 3447 3448 3449 3450 3451 3452 3453 3454 3455 3456 3457 3458 3459 3460 3461 3462 3463 3464 3465 3466 3467 3468 3469 3470 3471 3472 3473 3474 3475 3476 3477 3478 3479 3480 3481 3482 3483 3484 3485 3486 3487 3488 3489 3490 3491 3492 3493 3494 3495 3496 3497 3498 3499 3500 3501 3502 3503 3504 3505 3506 3507 3508 3509 3510 3511 3512 3513 3514 3515 3516 3517 3518 3519 3520 3521 3522 3523 3524 3525 3526 3527 3528 3529 3530 3531 3532 3533 3534 3535 3536 3537 3538 3539 3540 3541 3542 3543 3544 3545 3546 3547 3548 3549 3550 3551 3552 3553 3554 3555 3556 3557 3558 3559 3560 3561 3562 3563 3564 3565 3566 3567 3568 3569 3570 3571 3572 3573 3574 3575 3576 3577 3578 3579 3580 3581 3582 3583 3584 3585 3586 3587 3588 3589 3590 3591 3592 3593 3594 3595 3596 3597 3598 3599 3600 3601 3602 3603 3604 3605 3606 3607 3608 3609 3610 3611 3612 3613 3614 3615 3616 3617 3618 3619 3620 3621 3622 3623 3624 3625 3626 3627 3628 3629 3630 3631 3632 3633 3634 3635 3636 3637 3638 3639 3640 3641 3642 3643 3644 3645 3646 3647 3648 3649 3650 3651 3652 3653 3654 3655 3656 3657 3658 3659 3660 3661 3662 3663 3664 3665 3666 3667 3668 3669 3670 3671 3672 3673 3674 3675 3676 3677 3678 3679 3680 3681 3682 3683 3684 3685 3686 3687 3688 3689 3690 3691 3692 3693 3694 3695 3696 3697 3698 3699 3700 3701 3702 3703 3704 3705 3706 3707 3708 3709 3710 3711 3712 3713 3714 3715 3716 3717 3718 3719 3720 3721 3722 3723 3724 3725 3726 3727 3728 3729 3730 3731 3732 3733 3734 3735 3736 3737 3738 3739 3740 3741 3742 3743 3744 3745 3746 3747 3748 3749 3750 3751 3752 3753 3754 3755 3756 3757 3758 3759 3760 3761 3762 3763 3764 3765 3766 3767 3768 3769 3770 3771 3772 3773 3774 3775 3776 3777 3778 3779 3780 3781 3782 3783 3784 3785 3786 3787 3788 3789 3790 3791 3792 3793 3794 3795 3796 3797 3798 3799 3800 3801 3802 3803 3804 3805 3806 3807 3808 3809 3810 3811 3812 3813 3814 3815 3816 3817 3818 3819 3820 3821 3822 3823 3824 3825 3826 3827 3828 3829 3830 3831 3832 3833 3834 3835 3836 3837 3838 3839 3840 3841 3842 3843 3844 3845 3846 3847 3848 3849 3850 3851 3852 3853 3854 3855 3856 3857 3858 3859 3860 3861 3862 3863 3864 3865 3866 3867 3868 3869 3870 3871 3872 3873 3874 3875 3876 3877 3878 3879 3880 3881 3882 3883 3884 3885 3886 3887 3888 3889 3890 3891 3892 3893 3894 3895 3896 3897 3898 3899 3900 3901 3902 3903 3904 3905 3906 3907 3908 3909 3910 3911 3912 3913 3914 3915 3916 3917 3918 3919 3920 3921 3922 3923 3924 3925 3926 3927 3928 3929 3930 3931 3932 3933 3934 3935 3936 3937 3938 3939 3940 3941 3942 3943 3944 3945 3946 3947 3948 3949 3950 3951 3952 3953 3954 3955 3956 3957 3958 3959 3960 3961 3962 3963 3964 3965 3966 3967 3968 3969 3970 3971 3972 3973 3974 3975 3976 3977 3978 3979 3980 3981 3982 3983 3984 3985 3986 3987 3988 3989 3990 3991 3992 3993 3994 3995 3996 3997 3998 3999 4000 4001 4002 4003 4004 4005 4006 4007 4008 4009 4010 4011 4012 4013 4014 4015 4016 4017 4018 4019 4020 4021 4022 4023 4024 4025 4026 4027 4028 4029 4030 4031 4032 4033 4034 4035 4036 4037 4038 4039 4040 4041 4042 4043 4044 4045 4046 4047 4048 4049 4050 4051 4052 4053 4054 4055 4056 4057 4058 4059 4060 4061 4062 4063 4064 4065 4066 4067 4068 4069 4070 4071 4072 4073 4074 4075 4076 4077 4078 4079 4080 4081 4082 4083 4084 4085 4086 4087 4088 4089 4090 4091 4092 4093 4094 4095 4096 4097 4098 4099 4100 4101 4102 4103 4104 4105 4106 4107 4108 4109 4110 4111 4112 4113 4114 4115 4116 4117 4118 4119 4120 4121 4122 4123 4124 4125 4126 4127 4128 4129 4130 4131 4132 4133 4134 4135 4136 4137 4138 4139 4140 4141 4142 4143 4144 4145 4146 4147 4148 4149 4150 4151 4152 4153 4154 4155 4156 4157 4158 4159 4160 4161 4162 4163 4164 4165 4166 4167 4168 4169 4170 4171 4172 4173 4174 4175 4176 4177 4178 4179 4180 4181 4182 4183 4184 4185 4186 4187 4188 4189 4190 4191 4192 4193 4194 4195 4196 4197 4198 4199 4200 4201 4202 4203 4204 4205 4206 4207 4208 4209 4210 4211 4212 4213 4214 4215 4216 4217 4218 4219 4220 4221 4222 4223 4224 4225 4226 4227 4228 4229 4230 4231 4232 4233 4234 4235 4236 4237 4238 4239 4240 4241 4242 4243 4244 4245 4246 4247 4248 4249 4250 4251 4252 4253 4254 4255 4256 4257 4258 4259 4260 4261 4262 4263 4264 4265 4266 4267 4268 4269 4270 4271 4272 4273 4274 4275 4276 4277 4278 4279 4280 4281 4282 4283 4284 4285 4286 4287 4288 4289 4290 4291 4292 4293 4294 4295 4296 4297 4298 4299 4300 4301 4302 4303 4304 4305 4306 4307 4308 4309 4310 4311 4312 4313 4314 4315 4316 4317 4318 4319 4320 4321 4322 4323 4324 4325 4326 4327 4328 4329 4330 4331 4332 4333 4334 4335 4336 4337 4338 4339 4340 4341 4342 4343 4344 4345 4346 4347 4348 4349 4350 4351 4352 4353 4354 4355 4356 4357 4358 4359 4360 4361 4362 4363 4364 4365 4366 4367 4368 4369 4370 4371 4372 4373 4374 4375 4376 4377 4378 4379 4380 4381 4382 4383 4384 4385 4386 4387 4388 4389 4390 4391 4392 4393 4394 4395 4396 4397 4398 4399 4400 4401 4402 4403 4404 4405 4406 4407 4408 4409 4410 4411 4412 4413 4414 4415 4416 4417 4418 4419 4420 4421 4422 4423 4424 4425 4426 4427 4428 4429 4430 4431 4432 4433 4434 4435 4436 4437 4438 4439 4440 4441 4442 4443 4444 4445 4446 4447 4448 4449 4450 4451 4452 4453 4454 4455 4456 4457 4458 4459 4460 4461 4462 4463 4464 4465 4466 4467 4468 4469 4470 4471 4472 4473 4474 4475 4476 4477 4478 4479 4480 4481 4482 4483 4484 4485 4486 4487 4488 4489 4490 4491 4492 4493 4494 4495 4496 4497 4498 4499 4500 4501 4502 4503 4504 4505 4506 4507 4508 4509 4510 4511 4512 4513 4514 4515 4516 4517 4518 4519 4520 4521 4522 4523 4524 4525 4526 4527 4528 4529 4530 4531 4532 4533 4534 4535 4536 4537 4538 4539 4540 4541 4542 4543 4544 4545 4546 4547 4548 4549 4550 4551 4552 4553 4554 4555 4556 4557 4558 4559 4560 4561 4562 4563 4564 4565 4566 4567 4568 4569 4570 4571 4572 4573 4574 4575 4576 4577 4578 4579 4580 4581 4582 4583 4584 4585 4586 4587 4588 4589 4590 4591 4592 4593 4594 4595 4596 4597 4598 4599 4600 4601 4602 4603 4604 4605 4606 4607 4608 4609 4610 4611 4612 4613 4614 4615 4616 4617 4618 4619 4620 4621 4622 4623 4624 4625 4626 4627 4628 4629 4630 4631 4632 4633 4634 4635 4636 4637 4638 4639 4640 4641 4642 4643 4644 4645 4646 4647 4648 4649 4650 4651 4652 4653 4654 4655 4656 4657 4658 4659 4660 4661 4662 4663 4664 4665 4666 4667 4668 4669 4670 4671 4672 4673 4674 4675 4676 4677 4678 4679 4680 4681 4682 4683 4684 4685 4686 4687 4688 4689 4690 4691 4692 4693 4694 4695 4696 4697 4698 4699 4700 4701 4702 4703 4704 4705 4706 4707 4708 4709 4710 4711 4712 4713 4714 4715 4716 4717 4718 4719 4720 4721 4722 4723 4724 4725 4726 4727 4728 4729 4730 4731 4732 4733 4734 4735 4736 4737 4738 4739 4740 4741 4742 4743 4744 4745 4746 4747 4748 4749 4750 4751 4752 4753 4754 4755 4756 4757 4758 4759 4760 4761 4762 4763 4764 4765 4766 4767 4768 4769 4770 4771 4772 4773 4774 4775 4776 4777 4778 4779 4780 4781 4782 4783 4784 4785 4786 4787 4788 4789 4790 4791 4792 4793 4794 4795 4796 4797 4798 4799 4800 4801 4802 4803 4804 4805 4806 4807 4808 4809 4810 4811 4812 4813 4814 4815 4816 4817 4818 4819 4820 4821 4822 4823 4824 4825 4826 4827 4828 4829 4830 4831 4832 4833 4834 4835 4836 4837 4838 4839 4840 4841 4842 4843 4844 4845 4846 4847 4848 4849 4850 4851 4852 4853 4854 4855 4856 4857 4858 4859 4860 4861 4862 4863 4864 4865 4866 4867 4868 4869 4870 4871 4872 4873 4874 4875 4876 4877 4878 4879 4880 4881 4882 4883 4884 4885 4886 4887 4888 4889 4890 4891 4892 4893 4894 4895 4896 4897 4898 4899 4900 4901 4902 4903 4904 4905 4906 4907 4908 4909 4910 4911 4912 4913 4914 4915 4916 4917 4918 4919 4920 4921 4922 4923 4924 4925 4926 4927 4928 4929 4930 4931 4932 4933 4934 4935 4936 4937 4938 4939 4940 4941 4942 4943 4944 4945 4946 4947 4948 4949 4950 4951 4952 4953 4954 4955 4956 4957 4958 4959 4960 4961 4962 4963 4964 4965 4966 4967 4968 4969 4970 4971 4972 4973 4974 4975 4976 4977 4978 4979 4980 4981 4982 4983 4984 4985 4986 4987 4988 4989 4990 4991 4992 4993 4994 4995 4996 4997 4998 4999 5000 5001 5002 5003 5004 5005 5006 5007 5008 5009 5010 5011 5012 5013 5014 5015 5016 5017 5018 5019 5020 5021 5022 5023 5024 5025 5026 5027 5028 5029 5030 5031 5032 5033 5034 5035 5036 5037 5038 5039 5040 5041 5042 5043 5044 5045 5046 5047 5048 5049 5050 5051 5052 5053 5054 5055 5056 5057 5058 5059 5060 5061 5062 5063 5064 5065 5066 5067 5068 5069 5070 5071 5072 5073 5074 5075 5076 5077 5078 5079 5080 5081 5082 5083 5084 5085 5086 5087 5088 5089 5090 5091 5092 5093 5094 5095 5096 5097 5098 5099 5100 5101 5102 5103 5104 5105 5106 5107 5108 5109 5110 5111 5112 5113 5114 5115 5116 5117 5118 5119 5120 5121 5122 5123 5124 5125 5126 5127 5128 5129 5130 5131 5132 5133 5134 5135 5136 5137 5138 5139 5140 5141 5142 5143 5144 5145 5146 5147 5148 5149 5150 5151 5152 5153 5154 5155 5156 5157 5158 5159 5160 5161 5162 5163 5164 5165 5166 5167 5168 5169 5170 5171 5172 5173 5174 5175 5176 5177 5178 5179 5180 5181 5182 5183 5184 5185 5186 5187 5188 5189 5190 5191 5192 5193 5194 5195 5196 5197 5198 5199 5200 5201 5202 5203 5204 5205 5206 5207 5208 5209 5210 5211 5212 5213 5214 5215 5216 5217 5218 5219 5220 5221 5222 5223 5224 5225 5226 5227 5228 5229 5230 5231 5232 5233 5234 5235 5236 5237 5238 5239 5240 5241 5242 5243 5244 5245 5246 5247 5248 5249 5250 5251 5252 5253 5254 5255 5256 5257 5258 5259 5260 5261 5262 5263 5264 5265 5266 5267 5268 5269 5270 5271 5272 5273 5274 5275 5276 5277 5278 5279 5280 5281 5282 5283 5284 5285 5286 5287 5288 5289 5290 5291 5292 5293 5294 5295 5296 5297 5298 5299 5300 5301 5302 5303 5304 5305 5306 5307 5308 5309 5310 5311 5312 5313 5314 5315 5316 5317 5318 5319 5320 5321 5322 5323 5324 5325 5326 5327 5328 5329 5330 5331 5332 5333 5334 5335 5336 5337 5338 5339 5340 5341 5342 5343 5344 5345 5346 5347 5348 5349 5350 5351 5352 5353 5354 5355 5356 5357 5358 5359 5360 5361 5362 5363 5364 5365 5366 5367 5368 5369 5370 5371 5372 5373 5374 5375 5376 5377 5378 5379 5380 5381 5382 5383 5384 5385 5386 5387 5388 5389 5390 5391 5392 5393 5394 5395 5396 5397 5398 5399 5400 5401 5402 5403 5404 5405 5406 5407 5408 5409 5410 5411 5412 5413 5414 5415 5416 5417 5418 5419 5420 5421 5422 5423 5424 5425 5426 5427 5428 5429 5430 5431 5432 5433 5434 5435 5436 5437 5438 5439 5440 5441 5442 5443 5444 5445 5446 5447 5448 5449 5450 5451 5452 5453 5454 5455 5456 5457 5458 5459 5460 5461 5462 5463 5464 5465 5466 5467 5468 5469 5470 5471 5472 5473 5474 5475 5476 5477 5478 5479 5480 5481 5482 5483 5484 5485 5486 5487 5488 5489 5490 5491 5492 5493 5494 5495 5496 5497 5498 5499 5500 5501 5502 5503 5504 5505 5506 5507 5508 5509 5510 5511 5512 5513 5514 5515 5516 5517 5518 5519 5520 5521 5522 5523 5524 5525 5526 5527 5528 5529 5530 5531 5532 5533 5534 5535 5536 5537 5538 5539 5540 5541 5542 5543 5544 5545 5546 5547 5548 5549 5550 5551 5552 5553 5554 5555 5556 5557 5558 5559 5560 5561 5562 5563 5564 5565 5566 5567 5568 5569 5570 5571 5572 5573 5574 5575 5576 5577 5578 5579 5580 5581 5582 5583 5584 5585 5586 5587 5588 5589 5590 5591 5592 5593 5594 5595 5596 5597 5598 5599 5600 5601 5602 5603 5604 5605 5606 5607 5608 5609 5610 5611 5612 5613 5614 5615 5616 5617 5618 5619 5620 5621 5622 5623 5624 5625 5626 5627 5628 5629 5630 5631 5632 5633 5634 5635 5636 5637 5638 5639 5640 5641 5642 5643 5644 5645 5646 5647 5648 5649 5650 5651 5652 5653 5654 5655 5656 5657 5658 5659 5660 5661 5662 5663 5664 5665 5666 5667 5668 5669 5670 5671 5672 5673 5674 5675 5676 5677 5678 5679 5680 5681 5682 5683 5684 5685 5686 5687 5688 5689 5690 5691 5692 5693 5694 5695 5696 5697 5698 5699 5700 5701 5702 5703 5704 5705 5706 5707 5708 5709 5710 5711 5712 5713 5714 5715 5716 5717 5718 5719 5720 5721 5722 5723 5724 5725 5726 5727 5728 5729 5730 5731 5732 5733 5734 5735 5736 5737 5738 5739 5740 5741 5742 5743 5744 5745 5746 5747 5748 5749 5750 5751 5752 5753 5754 5755 5756 5757 5758 5759 5760 5761 5762 5763 5764 5765 5766 5767 5768 5769 5770 5771 5772 5773 5774 5775 5776 5777 5778 5779 5780 5781 5782 5783 5784 5785 5786 5787 5788 5789 5790 5791 5792 5793 5794 5795 5796 5797 5798 5799 5800 5801 5802 5803 5804 5805 5806 5807 5808 5809 5810 5811 5812 5813 5814 5815 5816 5817 5818 5819 5820 5821 5822 5823 5824 5825 5826 5827 5828 5829 5830 5831 5832 5833 5834 5835 5836 5837 5838 5839 5840 5841 5842 5843 5844 5845 5846 5847 5848 5849 5850 5851 5852 5853 5854 5855 5856 5857 5858 5859 5860 5861 5862 5863 5864 5865 5866 5867 5868 5869 5870 5871 5872 5873 5874 5875 5876 5877 5878 5879 5880 5881 5882 5883 5884 5885 5886 5887 5888 5889 5890 5891 5892 5893 5894 5895 5896 5897 5898 5899 5900 5901 5902 5903 5904 5905 5906 5907 5908 5909 5910 5911 5912 5913 5914 5915 5916 5917 5918 5919 5920 5921 5922 5923 5924 5925 5926 5927 5928 5929 5930 5931 5932 5933 5934 5935 5936 5937 5938 5939 5940 5941 5942 5943 5944 5945 5946 5947 5948 5949 5950 5951 5952 5953 5954 5955 5956 5957 5958 5959 5960 5961 5962 5963 5964 5965 5966 5967 5968 5969 5970 5971 5972 5973 5974 5975 5976 5977 5978 5979 5980 5981 5982 5983 5984 5985 5986 5987 5988 5989 5990 5991 5992 5993 5994 5995 5996 5997 5998 5999 6000 6001 6002 6003 6004 6005 6006 6007 6008 6009 6010 6011 6012 6013 6014 6015 6016 6017 6018 6019 6020 6021 6022 6023 6024 6025 6026 6027 6028 6029 6030 6031 6032 6033 6034 6035 6036 6037 6038 6039 6040 6041 6042 6043 6044 6045 6046 6047 6048 6049 6050 6051 6052 6053 6054 6055 6056 6057 6058 6059 6060 6061 6062 6063 6064 6065 6066 6067 6068 6069 6070 6071 6072 6073 6074 6075 6076 6077 6078 6079 6080 6081 6082 6083 6084 6085 6086 6087 6088 6089 6090 6091 6092 6093 6094 6095 6096 6097 6098 6099 6100 6101 6102 6103 6104 6105 6106 6107 6108 6109 6110 6111 6112 6113 6114 6115 6116 6117 6118 6119 6120 6121 6122 6123 6124 6125 6126 6127 6128 6129 6130 6131 6132 6133 6134 6135 6136 6137 6138 6139 6140 6141 6142 6143 6144 6145 6146 6147 6148 6149 6150 6151 6152 6153 6154 6155 6156 6157 6158 6159 6160 6161 6162 6163 6164 6165 6166 6167 6168 6169 6170 6171 6172 6173 6174 6175 6176 6177 6178 6179 6180 6181 6182 6183 6184 6185 6186 6187 6188 6189 6190 6191 6192 6193 6194 6195 6196 6197 6198 6199 6200 6201 6202 6203 6204 6205 6206 6207 6208 6209 6210 6211 6212 6213 6214 6215 6216 6217 6218 6219 6220 6221 6222 6223 6224 6225 6226 6227 6228 6229 6230 6231 6232 6233 6234 6235 6236 6237 6238 6239 6240 6241 6242 6243 6244 6245 6246 6247 6248 6249 6250 6251 6252 6253 6254 6255 6256 6257 6258 6259 6260 6261 6262 6263 6264 6265 6266 6267 6268 6269 6270 6271 6272 6273 6274 6275 6276 6277 6278 6279 6280 6281 6282 6283 6284 6285 6286 6287 6288 6289 6290 6291 6292 6293 6294 6295 6296 6297 6298 6299 6300 6301 6302 6303 6304 6305 6306 6307 6308 6309 6310 6311 6312 6313 6314 6315 6316 6317 6318 6319 6320 6321 6322 6323 6324 6325 6326 6327 6328 6329 6330 6331 6332 6333 6334 6335 6336 6337 6338 6339 6340 6341 6342 6343 6344 6345 6346 6347 6348 6349 6350 6351 6352 6353 6354 6355 6356 6357 6358 6359 6360 6361 6362 6363 6364 6365 6366 6367 6368 6369 6370 6371 6372 6373 6374 6375 6376 6377 6378 6379 6380 6381 6382 6383 6384 6385 6386 6387 6388 6389 6390 6391 6392 6393 6394 6395 6396 6397 6398 6399 6400 6401 6402 6403 6404 6405 6406 6407 6408 6409 6410 6411 6412 6413 6414 6415 6416 6417 6418 6419 6420 6421 6422 6423 6424 6425 6426 6427 6428 6429 6430 6431 6432 6433 6434 6435 6436 6437 6438 6439 6440 6441 6442 6443 6444 6445 6446 6447 6448 6449 6450 6451 6452 6453 6454 6455 6456 6457 6458 6459 6460 6461 6462 6463 6464 6465 6466 6467 6468 6469 6470 6471 6472 6473 6474 6475 6476 6477 6478 6479 6480 6481 6482 6483 6484 6485 6486 6487 6488 6489 6490 6491 6492 6493 6494 6495 6496 6497 6498 6499 6500 6501 6502 6503 6504 6505 6506 6507 6508 6509 6510 6511 6512 6513 6514 6515 6516 6517 6518 6519 6520 6521 6522 6523 6524 6525 6526 6527 6528 6529 6530 6531 6532 6533 6534 6535 6536 6537 6538 6539 6540 6541 6542 6543 6544 6545 6546 6547 6548 6549 6550 6551 6552 6553 6554 6555 6556 6557 6558 6559 6560 6561 6562 6563 6564 6565 6566 6567 6568 6569 6570 6571 6572 6573 6574 6575 6576 6577 6578 6579 6580 6581 6582 6583 6584 6585 6586 6587 6588 6589 6590 6591 6592 6593 6594 6595 6596 6597 6598 6599 6600 6601 6602 6603 6604 6605 6606 6607 6608 6609 6610 6611 6612 6613 6614 6615 6616 6617 6618 6619 6620 6621 6622 6623 6624 6625 6626 6627 6628 6629 6630 6631 6632 6633 6634 6635 6636 6637 6638 6639 6640 6641 6642 6643 6644 6645 6646 6647 6648 6649 6650 6651 6652 6653 6654 6655 6656 6657 6658 6659 6660 6661 6662 6663 6664 6665 6666 6667 6668 6669 6670 6671 6672 6673 6674 6675 6676 6677 6678 6679 6680 6681 6682 6683 6684 6685 6686 6687 6688 6689 6690 6691 6692 6693 6694 6695 6696 6697 6698 6699 6700 6701 6702 6703 6704 6705 6706 6707 6708 6709 6710 6711 6712 6713 6714 6715 6716 6717 6718 6719 6720 6721 6722 6723 6724 6725 6726 6727 6728 6729 6730 6731 6732 6733 6734 6735 6736 6737 6738 6739 6740 6741 6742 6743 6744 6745 6746 6747 6748 6749 6750 6751 6752 6753 6754 6755 6756 6757 6758 6759 6760 6761 6762 6763 6764 6765 6766 6767 6768 6769 6770 6771 6772 6773 6774 6775 6776 6777 6778 6779 6780 6781 6782 6783 6784 6785 6786 6787 6788 6789 6790 6791 6792 6793 6794 6795 6796 6797 6798 6799 6800 6801 6802 6803 6804 6805 6806 6807 6808 6809 6810 6811 6812 6813 6814 6815 6816 6817 6818 6819 6820 6821 6822 6823 6824 6825 6826 6827 6828 6829 6830 6831 6832 6833 6834 6835 6836 6837 6838 6839 6840 6841 6842 6843 6844 6845 6846 6847 6848 6849 6850 6851 6852 6853 6854 6855 6856 6857 6858 6859 6860 6861 6862 6863 6864 6865 6866 6867 6868 6869 6870 6871 6872 6873 6874 6875 6876 6877 6878 6879 6880 6881 6882 6883 6884 6885 6886 6887 6888 6889 6890 6891 6892 6893 6894 6895 6896 6897 6898 6899 6900 6901 6902 6903 6904 6905 6906 6907 6908 6909 6910 6911 6912 6913 6914 6915 6916 6917 6918 6919 6920 6921 6922 6923 6924 6925 6926 6927 6928 6929 6930 6931 6932 6933 6934 6935 6936 6937 6938 6939 6940 6941 6942 6943 6944 6945 6946 6947 6948 6949 6950 6951 6952 6953 6954 6955 6956 6957 6958 6959 6960 6961 6962 6963 6964 6965 6966 6967 6968 6969 6970 6971 6972 6973 6974 6975 6976 6977 6978 6979 6980 6981 6982 6983 6984 6985 6986 6987 6988 6989 6990 6991 6992 6993 6994 6995 6996 6997 6998 6999 7000 7001 7002 7003 7004 7005 7006 7007 7008 7009 7010 7011 7012 7013 7014 7015 7016 7017 7018 7019 7020 7021 7022 7023 7024 7025 7026 7027 7028 7029 7030 7031 7032 7033 7034 7035 7036 7037 7038 7039 7040 7041 7042 7043 7044 7045 7046 7047 7048 7049 7050 7051 7052 7053 7054 7055 7056 7057 7058 7059 7060 7061 7062 7063 7064 7065 7066 7067 7068 7069 7070 7071 7072 7073 7074 7075 7076 7077 7078 7079 7080 7081 7082 7083 7084 7085 7086 7087 7088 7089 7090 7091 7092 7093 7094 7095 7096 7097 7098 7099 7100 7101 7102 7103 7104 7105 7106 7107 7108 7109 7110 7111 7112 7113 7114 7115 7116 7117 7118 7119 7120 7121 7122 7123 7124 7125 7126 7127 7128 7129 7130 7131 7132 7133 7134 7135 7136 7137 7138 7139 7140 7141 7142 7143 7144 7145 7146 7147 7148 7149 7150 7151 7152 7153 7154 7155 7156 7157 7158 7159 7160 7161 7162 7163 7164 7165 7166 7167 7168 7169 7170 7171 7172 7173 7174 7175 7176 7177 7178 7179 7180 7181 7182 7183 7184 7185 7186 7187 7188 7189 7190 7191 7192 7193 7194 7195 7196 7197 7198 7199 7200 7201 7202 7203 7204 7205 7206 7207 7208 7209 7210 7211 7212 7213 7214 7215 7216 7217 7218 7219 7220 7221 7222 7223 7224 7225 7226 7227 7228 7229 7230 7231 7232 7233 7234 7235 7236 7237 7238 7239 7240 7241 7242 7243 7244 7245 7246 7247 7248 7249 7250 7251 7252 7253 7254 7255 7256 7257 7258 7259 7260 7261 7262 7263 7264 7265 7266 7267 7268 7269 7270 7271 7272 7273 7274 7275 7276 7277 7278 7279 7280 7281 7282 7283 7284 7285 7286 7287 7288 7289 7290 7291 7292 7293 7294 7295 7296 7297 7298 7299 7300 7301 7302 7303 7304 7305 7306 7307 7308 7309 7310 7311 7312 7313 7314 7315 7316 7317 7318 7319 7320 7321 7322 7323 7324 7325 7326 7327 7328 7329 7330 7331 7332 7333 7334 7335 7336 7337 7338 7339 7340 7341 7342 7343 7344 7345 7346 7347 7348 7349 7350 7351 7352 7353 7354 7355 7356 7357 7358 7359 7360 7361 7362 7363 7364 7365 7366 7367 7368 7369 7370 7371 7372 7373 7374 7375 7376 7377 7378 7379 7380 7381 7382 7383 7384 7385 7386 7387 7388 7389 7390 7391 7392 7393 7394 7395 7396 7397 7398 7399 7400 7401 7402 7403 7404 7405 7406 7407 7408 7409 7410 7411 7412 7413 7414 7415 7416 7417 7418 7419 7420 7421 7422 7423 7424 7425 7426 7427 7428 7429 7430 7431 7432 7433 7434 7435 7436 7437 7438 7439 7440 7441 7442 7443 7444 7445 7446 7447 7448 7449 7450 7451 7452 7453 7454 7455 7456 7457 7458 7459 7460 7461 7462 7463 7464 7465 7466 7467 7468 7469 7470 7471 7472 7473 7474 7475 7476 7477 7478 7479 7480 7481 7482 7483 7484 7485 7486 7487 7488 7489 7490 7491 7492 7493 7494 7495 7496 7497 7498 7499 7500 7501 7502 7503 7504 7505 7506 7507 7508 7509 7510 7511 7512 7513 7514 7515 7516 7517 7518 7519 7520 7521 7522 7523 7524 7525 7526 7527 7528 7529 7530 7531 7532 7533 7534 7535 7536 7537 7538 7539 7540 7541 7542 7543 7544 7545 7546 7547 7548 7549 7550 7551 7552 7553 7554 7555 7556 7557 7558 7559 7560 7561 7562 7563 7564 7565 7566 7567 7568 7569 7570 7571 7572 7573 7574 7575 7576 7577 7578 7579 7580 7581 7582 7583 7584 7585 7586 7587 7588 7589 7590 7591 7592 7593 7594 7595 7596 7597 7598 7599 7600 7601 7602 7603 7604 7605 7606 7607 7608 7609 7610 7611 7612 7613 7614 7615 7616 7617 7618 7619 7620 7621 7622 7623 7624 7625 7626 7627 7628 7629 7630 7631 7632 7633 7634 7635 7636 7637 7638 7639 7640 7641 7642 7643 7644 7645 7646 7647 7648 7649 7650 7651 7652 7653 7654 7655 7656 7657 7658 7659 7660 7661 7662 7663 7664 7665 7666 7667 7668 7669 7670 7671 7672 7673 7674 7675 7676 7677 7678 7679 7680 7681 7682 7683 7684 7685 7686 7687 7688 7689 7690 7691 7692 7693 7694 7695 7696 7697 7698 7699 7700 7701 7702 7703 7704 7705 7706 7707 7708 7709 7710 7711 7712 7713 7714 7715 7716 7717 7718 7719 7720 7721 7722 7723 7724 7725 7726 7727 7728 7729 7730 7731 7732 7733 7734 7735 7736 7737 7738 7739 7740 7741 7742 7743 7744 7745 7746 7747 7748 7749 7750 7751 7752 7753 7754 7755 7756 7757 7758 7759 7760 7761 7762 7763 7764 7765 7766 7767 7768 7769 7770 7771 7772 7773 7774 7775 7776 7777 7778 7779 7780 7781 7782 7783 7784 7785 7786 7787 7788 7789 7790 7791 7792 7793 7794 7795 7796 7797 7798 7799 7800 7801 7802 7803 7804 7805 7806 7807 7808 7809 7810 7811 7812 7813 7814 7815 7816 7817 7818 7819 7820 7821 7822 7823 7824 7825 7826 7827 7828 7829 7830 7831 7832 7833 7834 7835 7836 7837 7838 7839 7840 7841 7842 7843 7844 7845 7846 7847 7848 7849 7850 7851 7852 7853 7854 7855 7856 7857 7858 7859 7860 7861 7862 7863 7864 7865 7866 7867 7868 7869 7870 7871 7872 7873 7874 7875 7876 7877 7878 7879 7880 7881 7882 7883 7884 7885 7886 7887 7888 7889 7890 7891 7892 7893 7894 7895 7896 7897 7898 7899 7900 7901 7902 7903 7904 7905 7906 7907 7908 7909 7910 7911 7912 7913 7914 7915 7916 7917 7918 7919 7920 7921 7922 7923 7924 7925 7926 7927 7928 7929 7930 7931 7932 7933 7934 7935 7936 7937 7938 7939 7940 7941 7942 7943 7944 7945 7946 7947 7948 7949 7950 7951 7952 7953 7954 7955 7956 7957 7958 7959 7960 7961 7962 7963 7964 7965 7966 7967 7968 7969 7970 7971 7972 7973 7974 7975 7976 7977 7978 7979 7980 7981 7982 7983 7984 7985 7986 7987 7988 7989 7990 7991 7992 7993 7994 7995 7996 7997 7998 7999 8000 8001 8002 8003 8004 8005 8006 8007 8008 8009 8010 8011 8012 8013 8014 8015 8016 8017 8018 8019 8020 8021 8022 8023 8024 8025 8026 8027 8028 8029 8030 8031 8032 8033 8034 8035 8036 8037 8038 8039 8040 8041 8042 8043 8044 8045 8046 8047 8048 8049 8050 8051 8052 8053 8054 8055 8056 8057 8058 8059 8060 8061 8062 8063 8064 8065 8066 8067 8068 8069 8070 8071 8072 8073 8074 8075 8076 8077 8078 8079 8080 8081 8082 8083 8084 8085 8086 8087 8088 8089 8090 8091 8092 8093 8094 8095 8096 8097 8098 8099 8100 8101 8102 8103 8104 8105 8106 8107 8108 8109 8110 8111 8112 8113 8114 8115 8116 8117 8118 8119 8120 8121 8122 8123 8124 8125 8126 8127 8128 8129 8130 8131 8132 8133 8134 8135 8136 8137 8138 8139 8140 8141 8142 8143 8144 8145 8146 8147 8148 8149 8150 8151 8152 8153 8154 8155 8156 8157 8158 8159 8160 8161 8162 8163 8164 8165 8166 8167 8168 8169 8170 8171 8172 8173 8174 8175 8176 8177 8178 8179 8180 8181 8182 8183 8184 8185 8186 8187 8188 8189 8190 8191 8192 8193 8194 8195 8196 8197 8198 8199 8200 8201 8202 8203 8204 8205 8206 8207 8208 8209 8210 8211 8212 8213 8214 8215 8216 8217 8218 8219 8220 8221 8222 8223 8224 8225 8226 8227 8228 8229 8230 8231 8232 8233 8234 8235 8236 8237 8238 8239 8240 8241 8242 8243 8244 8245 8246 8247 8248 8249 8250 8251 8252 8253 8254 8255 8256 8257 8258 8259 8260 8261 8262 8263 8264 8265 8266 8267 8268 8269 8270 8271 8272 8273 8274 8275 8276 8277 8278 8279 8280 8281 8282 8283 8284 8285 8286 8287 8288 8289 8290 8291 8292 8293 8294 8295 8296 8297 8298 8299 8300 8301 8302 8303 8304 8305 8306 8307 8308 8309 8310 8311 8312 8313 8314 8315 8316 8317 8318 8319 8320 8321 8322 8323 8324 8325 8326 8327 8328 8329 8330 8331 8332 8333 8334 8335 8336 8337 8338 8339 8340 8341 8342 8343 8344 8345 8346 8347 8348 8349 8350 8351 8352 8353 8354 8355 8356 8357 8358 8359 8360 8361 8362 8363 8364 8365 8366 8367 8368 8369 8370 8371 8372 8373 8374 8375 8376 8377 8378 8379 8380 8381 8382 8383 8384 8385 8386 8387 8388 8389 8390 8391 8392 8393 8394 8395 8396 8397 8398 8399 8400 8401 8402 8403 8404 8405 8406 8407 8408 8409 8410 8411 8412 8413 8414 8415 8416 8417 8418 8419 8420 8421 8422 8423 8424 8425 8426 8427 8428 8429 8430 8431 8432 8433 8434 8435 8436 8437 8438 8439 8440 8441 8442 8443 8444 8445 8446 8447 8448 8449 8450 8451 8452 8453 8454 8455 8456 8457 8458 8459 8460 8461 8462 8463 8464 8465 8466 8467 8468 8469 8470 8471 8472 8473 8474 8475 8476 8477 8478 8479 8480 8481 8482 8483 8484 8485 8486 8487 8488 8489 8490 8491 8492 8493 8494 8495 8496 8497 8498 8499 8500 8501 8502 8503 8504 8505 8506 8507 8508 8509 8510 8511 8512 8513 8514 8515 8516 8517 8518 8519 8520 8521 8522 8523 8524 8525 8526 8527 8528 8529 8530 8531 8532 8533 8534 8535 8536 8537 8538 8539 8540 8541 8542 8543 8544 8545 8546 8547 8548 8549 8550 8551 8552 8553 8554 8555 8556 8557 8558 8559 8560 8561 8562 8563 8564 8565 8566 8567 8568 8569 8570 8571 8572 8573 8574 8575 8576 8577 8578 8579 8580 8581 8582 8583 8584 8585 8586 8587 8588 8589 8590 8591 8592 8593 8594 8595 8596 8597 8598 8599 8600 8601 8602 8603 8604 8605 8606 8607 8608 8609 8610 8611 8612 8613 8614 8615 8616 8617 8618 8619 8620 8621 8622 8623 8624 8625 8626 8627 8628 8629 8630 8631 8632 8633 8634 8635 8636 8637 8638 8639 8640 8641 8642 8643 8644 8645 8646 8647 8648 8649 8650 8651 8652 8653 8654 8655 8656 8657 8658 8659 8660 8661 8662 8663 8664 8665 8666 8667 8668 8669 8670 8671 8672 8673 8674 8675 8676 8677 8678 8679 8680 8681 8682 8683 8684 8685 8686 8687 8688 8689 8690 8691 8692 8693 8694 8695 8696 8697 8698 8699 8700 8701 8702 8703 8704 8705 8706 8707 8708 8709 8710 8711 8712 8713 8714 8715 8716 8717 8718 8719 8720 8721 8722 8723 8724 8725 8726 8727 8728 8729 8730 8731 8732 8733 8734 8735 8736 8737 8738 8739 8740 8741 8742 8743 8744 8745 8746 8747 8748 8749 8750 8751 8752 8753 8754 8755 8756 8757 8758 8759 8760 8761 8762 8763 8764 8765 8766 8767 8768 8769 8770 8771 8772 8773 8774 8775 8776 8777 8778 8779 8780 8781 8782 8783 8784 8785 8786 8787 8788 8789 8790 8791 8792 8793 8794 8795 8796 8797 8798 8799 8800 8801 8802 8803 8804 8805 8806 8807 8808 8809 8810 8811 8812 8813 8814 8815 8816 8817 8818 8819 8820 8821 8822 8823 8824 8825 8826 8827 8828 8829 8830 8831 8832 8833 8834 8835 8836 8837 8838 8839 8840 8841 8842 8843 8844 8845 8846 8847 8848 8849 8850 8851 8852 8853 8854 8855 8856 8857 8858 8859 8860 8861 8862 8863 8864 8865 8866 8867 8868 8869 8870 8871 8872 8873 8874 8875 8876 8877 8878 8879 8880 8881 8882 8883 8884 8885 8886 8887 8888 8889 8890 8891 8892 8893 8894 8895 8896 8897 8898 8899 8900 8901 8902 8903 8904 8905 8906 8907 8908 8909 8910 8911 8912 8913 8914 8915 8916 8917 8918 8919 8920 8921 8922 8923 8924 8925 8926 8927 8928 8929 8930 8931 8932 8933 8934 8935 8936 8937 8938 8939 8940 8941 8942 8943 8944 8945 8946 8947 8948 8949 8950 8951 8952 8953 8954 8955 8956 8957 8958 8959 8960 8961 8962 8963 8964 8965 8966 8967 8968 8969 8970 8971 8972 8973 8974 8975 8976 8977 8978 8979 8980 8981 8982 8983 8984 8985 8986 8987 8988 8989 8990 8991 8992 8993 8994 8995 8996 8997 8998 8999 9000 9001 9002 9003 9004 9005 9006 9007 9008 9009 9010 9011 9012 9013 9014 9015 9016 9017 9018 9019 9020 9021 9022 9023 9024 9025 9026 9027 9028 9029 9030 9031 9032 9033 9034 9035 9036 9037 9038 9039 9040 9041 9042 9043 9044 9045 9046 9047 9048 9049 9050 9051 9052 9053 9054 9055 9056 9057 9058 9059 9060 9061 9062 9063 9064 9065 9066 9067 9068 9069 9070 9071 9072 9073 9074 9075 9076 9077 9078 9079 9080 9081 9082 9083 9084 9085 9086 9087 9088 9089 9090 9091 9092 9093 9094 9095 9096 9097 9098 9099 9100 9101 9102 9103 9104 9105 9106 9107 9108 9109 9110 9111 9112 9113 9114 9115 9116 9117 9118 9119 9120 9121 9122 9123 9124 9125 9126 9127 9128 9129 9130 9131 9132 9133 9134 9135 9136 9137 9138 9139 9140 9141 9142 9143 9144 9145 9146 9147 9148 9149 9150 9151 9152 9153 9154 9155 9156 9157 9158 9159 9160 9161 9162 9163 9164 9165 9166 9167 9168 9169 9170 9171 9172 9173 9174 9175 9176 9177 9178 9179 9180 9181 9182 9183 9184 9185 9186 9187 9188 9189 9190 9191 9192 9193 9194 9195 9196 9197 9198 9199 9200 9201 9202 9203 9204 9205 9206 9207 9208 9209 9210 9211 9212 9213 9214 9215 9216 9217 9218 9219 9220 9221 9222 9223 9224 9225 9226 9227 9228 9229 9230 9231 9232 9233 9234 9235 9236 9237 9238 9239 9240 9241 9242 9243 9244 9245 9246 9247 9248 9249 9250 9251 9252 9253 9254 9255 9256 9257 9258 9259 9260 9261 9262 9263 9264 9265 9266 9267 9268 9269 9270 9271 9272 9273 9274 9275 9276 9277 9278 9279 9280 9281 9282 9283 9284 9285 9286 9287 9288 9289 9290 9291 9292 9293 9294 9295 9296 9297 9298 9299 9300 9301 9302 9303 9304 9305 9306 9307 9308 9309 9310 9311 9312 9313 9314 9315 9316 9317 9318 9319 9320 9321 9322 9323 9324 9325 9326 9327 9328 9329 9330 9331 9332 9333 9334 9335 9336 9337 9338 9339 9340 9341 9342 9343 9344 9345 9346 9347 9348 9349 9350 9351 9352 9353 9354 9355 9356 9357 9358 9359 9360 9361 9362 9363 9364 9365 9366 9367 9368 9369 9370 9371 9372 9373 9374 9375 9376 9377 9378 9379 9380 9381 9382 9383 9384 9385 9386 9387 9388 9389 9390 9391 9392 9393 9394 9395 9396 9397 9398 9399 9400 9401 9402 9403 9404 9405 9406 9407 9408 9409 9410 9411 9412 9413 9414 9415 9416 9417 9418 9419 9420 9421 9422 9423 9424 9425 9426 9427 9428 9429 9430 9431 9432 9433 9434 9435 9436 9437 9438 9439 9440 9441 9442 9443 9444 9445 9446 9447 9448 9449 9450 9451 9452 9453 9454 9455 9456 9457 9458 9459 9460 9461 9462 9463 9464 9465 9466 9467 9468 9469 9470 9471 9472 9473 9474 9475 9476 9477 9478 9479 9480 9481 9482 9483 9484 9485 9486 9487 9488 9489 9490 9491 9492 9493 9494 9495 9496 9497 9498 9499 9500 9501 9502 9503 9504 9505 9506 9507 9508 9509 9510 9511 9512 9513 9514 9515 9516 9517 9518 9519 9520 9521 9522 9523 9524 9525 9526 9527 9528 9529 9530 9531 9532 9533 9534 9535 9536 9537 9538 9539 9540 9541 9542 9543 9544 9545 9546 9547 9548 9549 9550 9551 9552 9553 9554 9555 9556 9557 9558 9559 9560 9561 9562 9563 9564 9565 9566 9567 9568 9569 9570 9571 9572 9573 9574 9575 9576 9577 9578 9579 9580 9581 9582 9583 9584 9585 9586 9587 9588 9589 9590 9591 9592 9593 9594 9595 9596 9597 9598 9599 9600 9601 9602 9603 9604 9605 9606 9607 9608 9609 9610 9611 9612 9613 9614 9615 9616 9617 9618 9619 9620 9621 9622 9623 9624 9625 9626 9627 9628 9629 9630 9631 9632 9633 9634 9635 9636 9637 9638 9639 9640 9641 9642 9643 9644 9645 9646 9647 9648 9649 9650 9651 9652 9653 9654 9655 9656 9657 9658 9659 9660 9661 9662 9663 9664 9665 9666 9667 9668 9669 9670 9671 9672 9673 9674 9675 9676 9677 9678 9679 9680 9681 9682 9683 9684 9685 9686 9687 9688 9689 9690 9691 9692 9693 9694 9695 9696 9697 9698 9699 9700 9701 9702 9703 9704 9705 9706 9707 9708 9709 9710 9711 9712 9713 9714 9715 9716 9717 9718 9719 9720 9721 9722 9723 9724 9725 9726 9727 9728 9729 9730 9731 9732 9733 9734 9735 9736 9737 9738 9739 9740 9741 9742 9743 9744 9745 9746 9747 9748 9749 9750 9751 9752 9753 9754 9755 9756 9757 9758 9759 9760 9761 9762 9763 9764 9765 9766 9767 9768 9769 9770 9771 9772 9773 9774 9775 9776 9777 9778 9779 9780 9781 9782 9783 9784 9785 9786 9787 9788 9789 9790 9791 9792 9793 9794 9795 9796 9797 9798 9799 9800 9801 9802 9803 9804 9805 9806 9807 9808 9809 9810 9811 9812 9813 9814 9815 9816 9817 9818 9819 9820 9821 9822 9823 9824 9825 9826 9827 9828 9829 9830 9831 9832 9833 9834 9835 9836 9837 9838 9839 9840 9841 9842 9843 9844 9845 9846 9847 9848 9849 9850 9851 9852 9853 9854 9855 9856 9857 9858 9859 9860 9861 9862 9863 9864 9865 9866 9867 9868 9869 9870 9871 9872 9873 9874 9875 9876 9877 9878 9879 9880 9881 9882 9883 9884 9885 9886 9887 9888 9889 9890 9891 9892 9893 9894 9895 9896 9897 9898 9899 9900 9901 9902 9903 9904 9905 9906 9907 9908 9909 9910 9911 9912 9913 9914 9915 9916 9917 9918 9919 9920 9921 9922 9923 9924 9925 9926 9927 9928 9929 9930 9931 9932 9933 9934 9935 9936 9937 9938 9939 9940 9941 9942 9943 9944 9945 9946 9947 9948 9949 9950 9951 9952 9953 9954 9955 9956 9957 9958 9959 9960 9961 9962 9963 9964 9965 9966 9967 9968 9969 9970 9971 9972 9973 9974 9975 9976 9977 9978 9979 9980 9981 9982 9983 9984 9985 9986 9987 9988 9989 9990 9991 9992 9993 9994 9995 9996 9997 9998 9999 10000 10001 10002 10003 10004 10005 10006 10007 10008 10009 10010 10011 10012 10013 10014 10015 10016 10017 10018 10019 10020 10021 10022 10023 10024 10025 10026 10027 10028 10029 10030 10031 10032 10033 10034 10035 10036 10037 10038 10039 10040 10041 10042 10043 10044 10045 10046 10047 10048 10049 10050 10051 10052 10053 10054 10055 10056 10057 10058 10059 10060 10061 10062 10063 10064 10065 10066 10067 10068 10069 10070 10071 10072 10073 10074 10075 10076 10077 10078 10079 10080 10081 10082 10083 10084 10085 10086 10087 10088 10089 10090 10091 10092 10093 10094 10095 10096 10097 10098 10099 10100 10101 10102 10103 10104 10105 10106 10107 10108 10109 10110 10111 10112 10113 10114 10115 10116 10117 10118 10119 10120 10121 10122 10123 10124 10125 10126 10127 10128 10129 10130 10131 10132 10133 10134 10135 10136 10137 10138 10139 10140 10141 10142 10143 10144 10145 10146 10147 10148 10149 10150 10151 10152 10153 10154 10155 10156 10157 10158 10159 10160 10161 10162 10163 10164 10165 10166 10167 10168 10169 10170 10171 10172 10173 10174 10175 10176 10177 10178 10179 10180 10181 10182 10183 10184 10185 10186 10187 10188 10189 10190 10191 10192 10193 10194 10195 10196 10197 10198 10199 10200 10201 10202 10203 10204 10205 10206 10207 10208 10209 10210 10211 10212 10213 10214 10215 10216 10217 10218 10219 10220 10221 10222 10223 10224 10225 10226 10227 10228 10229 10230 10231 10232 10233 10234 10235 10236 10237 10238 10239 10240 10241 10242 10243 10244 10245 10246 10247 10248 10249 10250 10251 10252 10253 10254 10255 10256 10257 10258 10259 10260 10261 10262 10263 10264 10265 10266 10267 10268 10269 10270 10271 10272 10273 10274 10275 10276 10277 10278 10279 10280 10281 10282 10283 10284 10285 10286 10287 10288 10289 10290 10291 10292 10293 10294 10295 10296 10297 10298 10299 10300 10301 10302 10303 10304 10305 10306 10307 10308 10309 10310 10311 10312 10313 10314 10315 10316 10317 10318 10319 10320 10321 10322 10323 10324 10325 10326 10327 10328 10329 10330 10331 10332 10333 10334 10335 10336 10337 10338 10339 10340 10341 10342 10343 10344 10345 10346 10347 10348 10349 10350 10351 10352 10353 10354 10355 10356 10357 10358 10359 10360 10361 10362 10363 10364 10365 10366 10367 10368 10369 10370 10371 10372 10373 10374 10375 10376 10377 10378 10379 10380 10381 10382 10383 10384 10385 10386 10387 10388 10389 10390 10391 10392 10393 10394 10395 10396 10397 10398 10399 10400 10401 10402 10403 10404 10405 10406 10407 10408 10409 10410 10411 10412 10413 10414 10415 10416 10417 10418 10419 10420 10421 10422 10423 10424 10425 10426 10427 10428 10429 10430 10431 10432 10433 10434 10435 10436 10437 10438 10439 10440 10441 10442 10443 10444 10445 10446 10447 10448 10449 10450 10451 10452 10453 10454 10455 10456 10457 10458 10459 10460 10461 10462 10463 10464 10465 10466 10467 10468 10469 10470 10471 10472 10473 10474 10475 10476 10477 10478 10479 10480 10481 10482 10483 10484 10485 10486 10487 10488 10489 10490 10491 10492 10493 10494 10495 10496 10497 10498 10499 10500 10501 10502 10503 10504 10505 10506 10507 10508 10509 10510 10511 10512 10513 10514 10515 10516 10517 10518 10519 10520 10521 10522 10523 10524 10525 10526 10527 10528 10529 10530 10531 10532 10533 10534 10535 10536 10537 10538 10539 10540 10541 10542 10543 10544 10545 10546 10547 10548 10549 10550 10551 10552 10553 10554 10555 10556 10557 10558 10559 10560 10561 10562 10563 10564 10565 10566 10567 10568 10569 10570 10571 10572 10573 10574 10575 10576 10577 10578 10579 10580 10581 10582 10583 10584 10585 10586 10587 10588 10589 10590 10591 10592 10593 10594 10595 10596 10597 10598 10599 10600 10601 10602 10603 10604 10605 10606 10607 10608 10609 10610 10611 10612 10613 10614 10615 10616 10617 10618 10619 10620 10621 10622 10623 10624 10625 10626 10627 10628 10629 10630 10631 10632 10633 10634 10635 10636 10637 10638 10639 10640 10641 10642 10643 10644 10645 10646 10647 10648 10649 10650 10651 10652 10653 10654 10655 10656 10657 10658 10659 10660 10661 10662 10663 10664 10665 10666 10667 10668 10669 10670 10671 10672 10673 10674 10675 10676 10677 10678 10679 10680 10681 10682 10683 10684 10685 10686 10687 10688 10689 10690 10691 10692 10693 10694 10695 10696 10697 10698 10699 10700 10701 10702 10703 10704 10705 10706 10707 10708 10709 10710 10711 10712 10713 10714 10715 10716 10717 10718 10719 10720 10721 10722 10723 10724 10725 10726 10727 10728 10729 10730 10731 10732 10733 10734 10735 10736 10737 10738 10739 10740 10741 10742 10743 10744 10745 10746 10747 10748 10749 10750 10751 10752 10753 10754 10755 10756 10757 10758 10759 10760 10761 10762 10763 10764 10765 10766 10767 10768 10769 10770 10771 10772 10773 10774 10775 10776 10777 10778 10779 10780 10781 10782 10783 10784 10785 10786 10787 10788 10789 10790 10791 10792 10793 10794 10795 10796 10797 10798 10799 10800 10801 10802 10803 10804 10805 10806 10807 10808 10809 10810 10811 10812 10813 10814 10815 10816 10817 10818 10819 10820 10821 10822 10823 10824 10825 10826 10827 10828 10829 10830 10831 10832 10833 10834 10835 10836 10837 10838 10839 10840 10841 10842 10843 10844 10845 10846 10847 10848 10849 10850 10851 10852 10853 10854 10855 10856 10857 10858 10859 10860 10861 10862 10863 10864 10865 10866 10867 10868 10869 10870 10871 10872 10873 10874 10875 10876 10877 10878 10879 10880 10881 10882 10883 10884 10885 10886 10887 10888 10889 10890 10891 10892 10893 10894 10895 10896 10897 10898 10899 10900 10901 10902 10903 10904 10905 10906 10907 10908 10909 10910 10911 10912 10913 10914 10915 10916 10917 10918 10919 10920 10921 10922 10923 10924 10925 10926 10927 10928 10929 10930 10931 10932 10933 10934 10935 10936 10937 10938 10939 10940 10941 10942 10943 10944 10945 10946 10947 10948 10949 10950 10951 10952 10953 10954 10955 10956 10957 10958 10959 10960 10961 10962 10963 10964 10965 10966 10967 10968 10969 10970 10971 10972 10973 10974 10975 10976 10977 10978 10979 10980 10981 10982 10983 10984 10985 10986 10987 10988 10989 10990 10991 10992 10993 10994 10995 10996 10997 10998 10999 11000 11001 11002 11003 11004 11005 11006 11007 11008 11009 11010 11011 11012 11013 11014 11015 11016 11017 11018 11019 11020 11021 11022 11023 11024 11025 11026 11027 11028 11029 11030 11031 11032 11033 11034 11035 11036 11037 11038 11039 11040 11041 11042 11043 11044 11045 11046 11047 11048 11049 11050 11051 11052 11053 11054 11055 11056 11057 11058 11059 11060 11061 11062 11063 11064 11065 11066 11067 11068 11069 11070 11071 11072 11073 11074 11075 11076 11077 11078 11079 11080 11081 11082 11083 11084 11085 11086 11087 11088 11089 11090 11091 11092 11093 11094 11095 11096 11097 11098 11099 11100 11101 11102 11103 11104 11105 11106 11107 11108 11109 11110 11111 11112 11113 11114 11115 11116 11117 11118 11119 11120 11121 11122 11123 11124 11125 11126 11127 11128 11129 11130 11131 11132 11133 11134 11135 11136 11137 11138 11139 11140 11141 11142 11143 11144 11145 11146 11147 11148 11149 11150 11151 11152 11153 11154 11155 11156 11157 11158 11159 11160 11161 11162 11163 11164 11165 11166 11167 11168 11169 11170 11171 11172 11173 11174 11175 11176 11177 11178 11179 11180 11181 11182 11183 11184 11185 11186 11187 11188 11189 11190 11191 11192 11193 11194 11195 11196 11197 11198 11199 11200 11201 11202 11203 11204 11205 11206 11207 11208 11209 11210 11211 11212 11213 11214 11215 11216 11217 11218 11219 11220 11221 11222 11223 11224 11225 11226 11227 11228 11229 11230 11231 11232 11233 11234 11235 11236 11237 11238 11239 11240 11241 11242 11243 11244 11245 11246 11247 11248 11249 11250 11251 11252 11253 11254 11255 11256 11257 11258 11259 11260 11261 11262 11263 11264 11265 11266 11267 11268 11269 11270 11271 11272 11273 11274 11275 11276 11277 11278 11279 11280 11281 11282 11283 11284 11285 11286 11287 11288 11289 11290 11291 11292 11293 11294 11295 11296 11297 11298 11299 11300 11301 11302 11303 11304 11305 11306 11307 11308 11309 11310 11311 11312 11313 11314 11315 11316 11317 11318 11319 11320 11321 11322 11323 11324 11325 11326 11327 11328 11329 11330 11331 11332 11333 11334 11335 11336 11337 11338 11339 11340 11341 11342 11343 11344 11345 11346 11347 11348 11349 11350 11351 11352 11353 11354 11355 11356 11357 11358 11359 11360 11361 11362 11363 11364 11365 11366 11367 11368 11369 11370 11371 11372 11373 11374 11375 11376 11377 11378 11379 11380 11381 11382 11383 11384 11385 11386 11387 11388 11389 11390 11391 11392 11393 11394 11395 11396 11397 11398 11399 11400 11401 11402 11403 11404 11405 11406 11407 11408 11409 11410 11411 11412 11413 11414 11415 11416 11417 11418 11419 11420 11421 11422 11423 11424 11425 11426 11427 11428 11429 11430 11431 11432 11433 11434 11435 11436 11437 11438 11439 11440 11441 11442 11443 11444 11445 11446 11447 11448 11449 11450 11451 11452 11453 11454 11455 11456 11457 11458 11459 11460 11461 11462 11463 11464 11465 11466 11467 11468 11469 11470 11471 11472 11473 11474 11475 11476 11477 11478 11479 11480 11481 11482 11483 11484 11485 11486 11487 11488 11489 11490 11491 11492 11493 11494 11495 11496 11497 11498 11499 11500 11501 11502 11503 11504 11505 11506 11507 11508 11509 11510 11511 11512 11513 11514 11515 11516 11517 11518 11519 11520 11521 11522 11523 11524 11525 11526 11527 11528 11529 11530 11531 11532 11533 11534 11535 11536 11537 11538 11539 11540 11541 11542 11543 11544 11545 11546 11547 11548 11549 11550 11551 11552 11553 11554 11555 11556 11557 11558 11559 11560 11561 11562 11563 11564 11565 11566 11567 11568 11569 11570 11571 11572 11573 11574 11575 11576 11577 11578 11579 11580 11581 11582 11583 11584 11585 11586 11587 11588 11589 11590 11591 11592 11593 11594 11595 11596 11597 11598 11599 11600 11601 11602 11603 11604 11605 11606 11607 11608 11609 11610 11611 11612 11613 11614 11615 11616 11617 11618 11619 11620 11621 11622 11623 11624 11625 11626 11627 11628 11629 11630 11631 11632 11633 11634 11635 11636 11637 11638 11639 11640 11641 11642 11643 11644 11645 11646 11647 11648 11649 11650 11651 11652 11653 11654 11655 11656 11657 11658 11659 11660 11661 11662 11663 11664 11665 11666 11667 11668 11669 11670 11671 11672 11673 11674 11675 11676 11677 11678 11679 11680 11681 11682 11683 11684 11685 11686 11687 11688 11689 11690 11691 11692 11693 11694 11695 11696 11697 11698 11699 11700 11701 11702 11703 11704 11705 11706 11707 11708 11709 11710 11711 11712 11713 11714 11715 11716 11717 11718 11719 11720 11721 11722 11723 11724 11725 11726 11727 11728 11729 11730 11731 11732 11733 11734 11735 11736 11737 11738 11739 11740 11741 11742 11743 11744 11745 11746 11747 11748 11749 11750 11751 11752 11753 11754 11755 11756 11757 11758 11759 11760 11761 11762 11763 11764 11765 11766 11767 11768 11769 11770 11771 11772 11773 11774 11775 11776 11777 11778 11779 11780 11781 11782 11783 11784 11785 11786 11787 11788 11789 11790 11791 11792 11793 11794 11795 11796 11797 11798 11799 11800 11801 11802 11803 11804 11805 11806 11807 11808 11809 11810 11811 11812 11813 11814 11815 11816 11817 11818 11819 11820 11821 11822 11823 11824 11825 11826 11827 11828 11829 11830 11831 11832 11833 11834 11835 11836 11837 11838 11839 11840 11841 11842 11843 11844 11845 11846 11847 11848 11849 11850 11851 11852 11853 11854 11855 11856 11857 11858 11859 11860 11861 11862 11863 11864 11865 11866 11867 11868 11869 11870 11871 11872 11873 11874 11875 11876 11877 11878 11879 11880 11881 11882 11883 11884 11885 11886 11887 11888 11889 11890 11891 11892 11893 11894 11895 11896 11897 11898 11899 11900 11901 11902 11903 11904 11905 11906 11907 11908 11909 11910 11911 11912 11913 11914 11915 11916 11917 11918 11919 11920 11921 11922 11923 11924 11925 11926 11927 11928 11929 11930 11931 11932 11933 11934 11935 11936 11937 11938 11939 11940 11941 11942 11943 11944 11945 11946 11947 11948 11949 11950 11951 11952 11953 11954 11955 11956 11957 11958 11959 11960 11961 11962 11963 11964 11965 11966 11967 11968 11969 11970 11971 11972 11973 11974 11975 11976 11977 11978 11979 11980 11981 11982 11983 11984 11985 11986 11987 11988 11989 11990 11991 11992 11993 11994 11995 11996 11997 11998 11999 12000 12001 12002 12003 12004 12005 12006 12007 12008 12009 12010 12011 12012 12013 12014 12015 12016 12017 12018 12019 12020 12021 12022 12023 12024 12025 12026 12027 12028 12029 12030 12031 12032 12033 12034 12035 12036 12037 12038 12039 12040 12041 12042 12043 12044 12045 12046 12047 12048 12049 12050 12051 12052 12053 12054 12055 12056 12057 12058 12059 12060 12061 12062 12063 12064 12065 12066 12067 12068 12069 12070 12071 12072 12073 12074 12075 12076 12077 12078 12079 12080 12081 12082 12083 12084 12085 12086 12087 12088 12089 12090 12091 12092 12093 12094 12095 12096 12097 12098 12099 12100 12101 12102 12103 12104 12105 12106 12107 12108 12109 12110 12111 12112 12113 12114 12115 12116 12117 12118 12119 12120 12121 12122 12123 12124 12125 12126 12127 12128 12129 12130 12131 12132 12133 12134 12135 12136 12137 12138 12139 12140 12141 12142 12143 12144 12145 12146 12147 12148 12149 12150 12151 12152 12153 12154 12155 12156 12157 12158 12159 12160 12161 12162 12163 12164 12165 12166 12167 12168 12169 12170 12171 12172 12173 12174 12175 12176 12177 12178 12179 12180 12181 12182 12183 12184 12185 12186 12187 12188 12189 12190 12191
|
2005-09-18 Vincent Lefevre <Vincent.Lefevre@loria.fr>
* INSTALL:
Mentioned problems with the Tru64 make and other minor changes.
[2.2 branch]
2005-09-17 Vincent Lefevre <Vincent.Lefevre@loria.fr>
* configure.in: [2.2 branch]
Fixed the GMP linking test: replaced __gmp_version, which corresponds
to a variable, by __gmpz_init (suggested by the GMP documentation),
which corresponds to a function, as the auto tools assume the symbol
corresponds to a function. It was failing with the AIX linker.
2005-09-16 Vincent Lefevre <Vincent.Lefevre@loria.fr>
* zeta.c: Better initial precision. [2.2 branch]
* const_euler.c:
Fixed overflow problem for large precisions. [2.2 branch]
* tests/tcoth.c, coth.c:
Fixed stupid bug (coth was computing 1/tan instead of 1/tanh).
[2.2 branch]
* mpfr.texi: Propagated the changes from the trunk to the 2.2 branch:
- documented the mpfr_get_f and mpfr_pow_z functions;
- fixed typos found by Tomonori Kouya in mpfr_atan2 description;
- updated Contributors section.
2005-09-13 Vincent Lefevre <Vincent.Lefevre@loria.fr>
* exp.c, tests/texp.c:
Fixed bug in exp(-eps) for rounding toward zero (test was also wrong).
[2.2 branch]
* constant.c: Added missing MPFR_THREAD_ATTR. [2.2 branch]
* NEWS: Minor update. [2.2 branch]
2005-09-11 Vincent Lefevre <Vincent.Lefevre@loria.fr>
* mparam_h.in, mul.c, tuneup.c: Fixed tuneup. [2.2 branch]
* README.dev, mpfr-impl.h, tests/trint.c, tests/tstckintc.c:
[2.2 branch]
Fixed a #ifdef in mpfr-impl.h (when --enable-assert isn't used).
Fixed uninitialized variable in trint.c (with gcc -std=c99).
Added #include <string.h> for memmove in tstckintc.c (see ISO C99).
* README.dev, int_ceil_log2.c, mpfr-impl.h:
Minor patches from the trunk. [2.2 branch]
2005-09-09 Vincent Lefevre <Vincent.Lefevre@loria.fr>
* tests/tset_f.c, algorithms.tex, gamma.c, lngamma.c, mparam_h.in, mul.c, tests/tgamma.c, tests/tlngamma.c:
Ported patches from the trunk to the 2.2 branch.
2005-09-08 Vincent Lefevre <Vincent.Lefevre@loria.fr>
* README.dev, fixperm:
Added fixperm script to fix the file permissions broken by CVS.
[2.2 branch]
* fixperm:
file fixperm was added on branch mpfr-2-2-branch on 2005-09-08 09:05:58 +0000
* tests/tlngamma.c: Forgot to add tlngamma.c. [2.2 branch]
* mpfr.texi: Update (mpfr_lngamma). [2.2 branch]
* lngamma.c: Forgot to add lngamma.c. [2.2 branch]
* tests/Makefile.am: Fix: readded dependencies. [2.2 branch]
2005-09-06 Vincent Lefevre <Vincent.Lefevre@loria.fr>
* Makefile.am, NEWS, TODO, gamma.c, mpfr-impl.h, mpfr.h, tests/Makefile.am, tests/tgamma.c, tests/tversion.c:
Patches from the trunk: added mpfr_lngamma, fixed mpfr_gamma,
more detailed error message in tversion. [2.2 branch]
2005-09-06 Vincent Lefevre <Vincent.Lefevre@loria.fr>
* set_str_raw.c, tests/tsub.c:
Ported patches from the trunk to the 2.2 branch.
* mpfr-impl.h:
Replaced unsigned long bit-fields (GCC extension) by insigned int
bit-fields. [2.2 branch]
2005-09-05 Vincent Lefevre <Vincent.Lefevre@loria.fr>
* mpfr-gmp.h:
MPN_COPY now calls memcpy only if dst != src (otherwise this is an
undefined behavior), and if WANT_ASSERT is defined, it checks that
there is no overlap. [2.2 branch]
2005-09-02 Vincent Lefevre <Vincent.Lefevre@loria.fr>
* acinclude.m4, mpfr-impl.h:
Avoid MIPSpro / IRIX64 (incorrect) optimizations for DOUBLE_ISNAN.
[2.2 branch]
* add1sp.c, sub1sp.c:
Do not put expressions with side effects in MPFR_ASSERTN. [2.2 branch]
2005-09-01 Vincent Lefevre <Vincent.Lefevre@loria.fr>
* mpfr.texi: Updated month. [2.2 branch]
* log.c, tests/tlog.c: Ported fix to the 2.2 branch.
2005-08-31 Vincent Lefevre <Vincent.Lefevre@loria.fr>
* sum.c:
Fixed memory leak (missing MPFR_TMP_FREE in a particular case).
[2.2 branch, patch ported from the trunk]
* mul.c:
Fixed memory leak (missing MPFR_TMP_FREE in a particular case).
[2.2 branch]
2005-08-31 Vincent Lefevre <Vincent.Lefevre@loria.fr>
* configure.in:
Fix for the following problem: #error is not sufficient with cc
on IRIX64, and autoconf 2.59 doesn't cope with that. [2.2 branch]
2005-08-30 Vincent Lefevre <Vincent.Lefevre@loria.fr>
* mul.c:
Patch from Patrick to solve efficiency problem when one operand is
sparse (e.g. from ui_pow_ui) + other minor changes. [2.2 branch]
2005-08-24 Vincent Lefevre <Vincent.Lefevre@loria.fr>
* add1sp.c, mpfr-impl.h, mul.c, print_raw.c, sub1sp.c:
When WANT_ASSERT >= 2: the corresponding messages are now output
to stderr instead of stdout.
* set_uj.c:
Improved C compliance when mp_limb_t and uintmax_t have the same size
(concerning >> BITS_PER_MP_LIMB); some other small improvements.
* round_p.c, tests/tcan_round.c:
No longer assume that a mp_limb_t fits in an unsigned long (this
is not true under IRIX, where a mp_limb_t has 64 bits and a long
has 32 bits by default). In round_p.c, error messages are output
to stderr instead of stdout.
2005-08-23 Vincent Lefevre <Vincent.Lefevre@loria.fr>
* set_ld.c: This was wrong. Let's do it even more like the 2.1 branch.
* set_ld.c: Patch 1.25 didn't work under OSF1 with cc. Let's do it like
the 2.1 branch (it now does work under OSF1 with cc).
2005-08-21 Vincent Lefevre <Vincent.Lefevre@loria.fr>
* NEWS, mpfr-impl.h, mpfr.texi, out_str.c, strtofr.c:
Better locale support (for the decimal point in string conversions
and input/output).
2005-08-18 Vincent Lefevre <Vincent.Lefevre@loria.fr>
* mpfr.texi: Misc changes (spelling, typography...).
* agm.c, extract.c, fits_u.h, free_cache.c, generic.c, get_si.c, init2.c, mpfr-test.h, next.c, print_raw.c, set_f.c, tests/cmp_str.c, tests/tagm.c, tests/tcmp_ui.c, tests/tcosh.c, tests/tdim.c, tests/terf.c, tests/tfits.c, tests/tgamma.c, tests/tget_d.c, tests/tnext.c, tests/tstrtofr.c, tests/tsub_ui.c, tests/ttanh.c, tests/tversion.c:
Updated copyright line.
* set_ld.c, tests/tset_ld.c:
Support C implementations giving an incorrect value for the precision
of long double or where long doubles are implemented with FP expansions
(like under Mac OS X), as in the 2.1 branch.
* get_ld.c, mpfr-impl.h:
Updated mpfr_get_ld: removed useless and non-portable hacks, fixed
bugs, and slightly changed the behavior for the x87 extended format
(we shouldn't return long double's with more precision than really
supported, e.g. on FreeBSD and NetBSD).
* get_ld.c: Added an assertion.
2005-08-17 Vincent Lefevre <Vincent.Lefevre@loria.fr>
* set_ld.c: Reformatted (GNU style).
2005-08-17 Patrick Pelissier <Patrick.Pelissier@loria.fr>
* configure.in: Improve the warning message by adding the lines:
"we cannot run a program linked with GMP (if you cannot
see the version numbers above)."
2005-08-16 Paul Zimmermann <Paul.Zimmermann@loria.fr>
* algorithms.tex: added pointer for gamma
* gamma.c: fixed comments (code did not change)
* algorithms.bib, algorithms.tex, gamma.c:
added formula for gamma function
* tests/tgamma.c: fixed last test (expected result was wrong)
* gamma.c: fixed bug for tiny input
* tests/tgamma.c: added test case
2005-08-12 Patrick Pelissier <Patrick.Pelissier@loria.fr>
* Makefile.am: Reintroduce the computing of the dependencies.
2005-08-11 Vincent Lefevre <Vincent.Lefevre@loria.fr>
* mpfr-impl.h, tests/tget_d.c, tests/tset_d.c:
Added MPFR_DOUBLE_SPEC (not used yet, except for warning messages).
2005-08-10 Vincent Lefevre <Vincent.Lefevre@loria.fr>
* mpfr.texi:
Completed the documentation of mpfr_strtofr (concerning the exponent).
* mpfr.texi:
Removed double spaces in mpfr_strtofr description (this matters
for the info format).
* tests/tget_d.c: Added a temporary test for non-IEEE-754 double's.
2005-08-09 Patrick Pelissier <Patrick.Pelissier@loria.fr>
* mpfr.h, tests/tstckintc.c: Fix bug for pre-ansi compiler.
* NEWS: Remove redundant entries.
2005-08-08 Paul Zimmermann <Paul.Zimmermann@loria.fr>
* NEWS, TODO, sin.c, tests/tsin.c:
fixed bug in mpfr_sin (possible wrong inexact flag for rounding to
nearest) added items in NEWS and TODO
2005-08-05 Patrick Pelissier <Patrick.Pelissier@loria.fr>
* mpfr.texi: Update information
* mpfr.h, stack_interface.c, tests/tstckintc.c:
Rename mpfr_stack to mpfr_custom_
2005-08-03 Vincent Lefevre <Vincent.Lefevre@loria.fr>
* VERSION, mpfr.h, mpfr.texi, version.c:
Update for future version in 2.1 branch.
* mpfr.texi: Updated the date. [2.1 branch]
* ChangeLog: Update.
* FAQ.html, Makefile.am, NEWS, README: Added FAQ. [2.1 branch]
* FAQ.html, README: Added/updated copyright information.
* ChangeLog, NEWS: Update.
* NEWS: Update. [2.1 branch]
2005-08-02 Patrick Pelissier <Patrick.Pelissier@loria.fr>
* TODO: Remove "Stack Interface" from TODO.
2005-08-01 Patrick Pelissier <Patrick.Pelissier@loria.fr>
* tests/tsubnormal.c, subnormal.c, tests/Makefile.am:
Add test file for mpfr_subnormalize
* mpfr.texi: Add documentation for MPFR stack interface
* tests/tstckintc.c:
Add a new test to avoid potential problems if mp_limb_t != long.
2005-08-01 Vincent Lefevre <Vincent.Lefevre@loria.fr>
* set_ld.c:
Forgot to keep the old value of d when computations need to be redone.
[2.1 branch]
* tests/tset_ld.c: Fixed the tests. [2.1 branch]
* set_ld.c:
Support C implementations giving an incorrect value for the precision
of long double or where long doubles are implemented with FP expansions
(like under Mac OS X). Not tested yet... [2.1 branch]
2005-07-26 Patrick Pelissier <Patrick.Pelissier@loria.fr>
* Makefile.am, mpfr.h, mpfr.texi, stack_interface.c, tests/Makefile.am, tests/tstckintc.c:
Add first version of MPFR stack interface.
Need to check if everything is ok, specially the test.
* mpfr-impl.h: Fix and clean up logging for GCC 4.0.x
* mpfr-impl.h: Clean up code.
* README.dev, logging.c, mpfr-impl.h: Improve logging:
+ The file is not created if there is nothing to log.
+ Add new ENVIRONMENT variables: MPFR_LOG_ALL and MPFR_LOG_STAT.
* atan.c: Add experimental code (Disabled).
* strtofr.c: Fix comment
* tests/tsin.c: Add a new regression test (to fix).
2005-07-22 Patrick Pelissier <Patrick.Pelissier@loria.fr>
* erfc.c: Fix bug for high values of input (assertion failed)
because erf(x) ~ 1, so 1-erf(x) ~ 0, and we can't
get the EXP of tmp.
2005-07-18 Patrick Pelissier <Patrick.Pelissier@loria.fr>
* update-version: Fix bug (AC_INIT version wasn't updated).
Display a note about libtool version before quitting.
* acinclude.m4, configure.in: Clean up.
Add comment.
Add a new test: check if the charset has consecutive values.
2005-07-12 Vincent Lefevre <Vincent.Lefevre@loria.fr>
* mpfr.texi: Updated documentation of mpfr_strtofr.
2005-07-12 Patrick Pelissier <Patrick.Pelissier@loria.fr>
* exp3.c: Fix an overflow bug (use of int instead of unsigned long).
Optimize code (5% faster).
2005-07-11 Vincent Lefevre <Vincent.Lefevre@loria.fr>
* strtofr.c: Updated copyright line. [2.1 branch]
* strtofr.c: Fixed locale bug. [2.1 branch]
* BUGS, acinclude.m4, mpfr-impl.h, strcasecmp.c, strncasecmp.c, strtofr.c:
Fixed locale bug. Function strncasecmp is no longer used.
2005-07-09 Vincent Lefevre <Vincent.Lefevre@loria.fr>
* BUGS, acinclude.m4, tests/tests.c:
In the tests, set the locale to the current one. This allows to test
MPFR under various locales, showing a bug in the parse_string function
due to the use of the strncasecmp function ('i' and 'I' don't match
with LC_ALL="tr_TR.ISO8859-9").
2005-07-07 Patrick Pelissier <Patrick.Pelissier@loria.fr>
* configure.in: Improve displayed warning if GMP versions differ.
2005-07-06 Patrick Pelissier <Patrick.Pelissier@loria.fr>
* INSTALL: Add a solution for a problem.
2005-07-05 Vincent Lefevre <Vincent.Lefevre@loria.fr>
* tests/tatan.c: Added in-place tests for atan(+/-0).
* tests/tatan.c, atan.c: Fixed bug for atan(-0). [2.1 branch]
2005-07-05 Patrick Pelissier <Patrick.Pelissier@loria.fr>
* atan.c: Fix bug of signed 0.
Optimize code. (20% for 53 bits).
* tests/tatan.c: Improve test for signed 0.
2005-06-28 Patrick Pelissier <Patrick.Pelissier@loria.fr>
* atan.c: Simplify a condition which was always true.
(p is always negative).
* atan.c: Add assertion.
* atan.c: Simplify code for final step (when i== n0):
since we do n0-i=0 steps, atan(Ak/2^k) ~= Ak/2^k.
So we could speed up the final computation (9% faster).
* atan.c: Optimize: when computing arctan(p/2^r) simplify
p/2^r if p is even.
Clean up and remove tabi table. It was useless.
2005-06-22 Patrick Pelissier <Patrick.Pelissier@loria.fr>
* acinclude.m4, configure.in: Clean up configure and acinclude:
+ Remove useless test in MPFR_CONFIGS (Check for valid NAN).
Its result is not use by MPFR.
+ Remove useless macros (AC_CHECK_OS, AC_CHECK_MACH and AC_MY_HEADERS).
+ Move detection of math/rint,round,floor,ceil to MPFR_CONFIGS.
2005-06-20 Vincent Lefevre <Vincent.Lefevre@loria.fr>
* sum.c: GNU coding style.
2005-06-16 Paul Zimmermann <Paul.Zimmermann@loria.fr>
* get_str.c: improved m=0 case when b is a power of 2
2005-06-15 Patrick Pelissier <Patrick.Pelissier@loria.fr>
* cos.c: Replace mpfr_div_2ui call by SET_EXP/GET_EXP
since it can't overflow.
* cos.c: Speed up a few (from 10822 to 10600).
* BUGS: Update
2005-06-14 Patrick Pelissier <Patrick.Pelissier@loria.fr>
* powerof2.c:
Replace check for a power of 2 for the high limb by a check
for "high bit limb" for the high limb.
* mul_ui.c:
Fix bug in mul_ui (always alloc buffer instead of trying to reuse it).
* tests/tmul_ui.c: Add new test (failed).
* div_ui.c, mul_ui.c: Add Fast case for u==1
Add Fast case for u a power of 2 (Call mul/div_2si).
* cos.c: Fix bug (use of GCC specific attribute).
2005-06-13 Patrick Pelissier <Patrick.Pelissier@loria.fr>
* tests/troot.c, root.c: Rechnage the meaning of root for k=0.
* root.c, tests/troot.c: Fix bug with x<0 and k even
* root.c, tests/troot.c: Add special case for k==0
Add test for special case k==0
2005-06-13 Paul Zimmermann <Paul.Zimmermann@loria.fr>
* const_pi.c: added assertion
2005-06-13 Patrick Pelissier <Patrick.Pelissier@loria.fr>
* cache.c: Improve efficiency of initial call to mpfr_cache.
* tests/tsum.c: Add new check (+INF -INF --> NAN).
2005-06-10 Patrick Pelissier <Patrick.Pelissier@loria.fr>
* mpfr-impl.h, mpfr.h, mpfr.texi, sum.c, tests/tsum.c:
Fix bug of NAN and INF.
Fix bug in documentation (mpfr_sum wasn't exactly what is decribed).
Improve test.
Change internal names.
Clean up.
* eint.c: Fix bug: check if mpfr_log returns 0.
2005-06-08 Patrick Pelissier <Patrick.Pelissier@loria.fr>
* eint.c: Replace MPFR_EXP to MPFR_GET_EXP
Use GROUP function
Use MPFR_MPZ_SIZEINBASE2
Factorize the mpfr_mul_2exp chain.
* sin.c: Replace int to mp_prec_t for precision...
* acos.c, const_euler.c, mulders.c, zeta.c:
Fix warning due to comparison of unsigned and signed integers.
* atan.c, extract.c, strtofr.c:
Fix warnings due to comparaison between signed and unsigned.
Reinclude string.h for strtofr.
2005-06-08 Vincent Lefevre <Vincent.Lefevre@loria.fr>
* add1.c: [2.1 branch]
Fixed bug introduced with the new internal format on 2003-10-27.
* add1.c:
Fixed bug introduced with the new internal format on 2003-10-27.
* add1.c: Updated comments.
2005-06-08 Patrick Pelissier <Patrick.Pelissier@loria.fr>
* atan.c: Fix introduced bug due to missing NULL.
* clear.c: Fix introduced bug (NULL not defined).
* add1sp.c, atan.c, clear.c, div.c, gamma.c, get_f.c, get_str.c, mpfr-impl.h, mul.c, round_p.c, set_z.c, sin.c, strtofr.c, sub1sp.c, subnormal.c, zeta.c:
Clean up use of stdio.h:
it is now included by mpfr-impl iff DEBUG is defined or WANT_ASSERT is
defined.
* tests/tsum.c: Fix warnings.
* sub1sp.c: Clean up code.
* add1sp.c: Improve checking if WANT_ASSERT >= 2
2005-06-07 Patrick Pelissier <Patrick.Pelissier@loria.fr>
* sin.c: Fix wrong assertion.
* tests/tsum.c: Improve test by adding special cases.
* mpfr-impl.h:
MPFR_GET_EXP was wrongly defined and does nothing due to recursive
macro (mpfr_get_exp is also defined to be a fast macro). Fix this
by removing the macro call in MPFR_GET_EXP in case of ASSERT >= 1.
2 tests failed now!
* tests/tsum.c: Clean up and improve check.
* sum.c: Handle case n==0 and n==1 as special cases.
* const_catalan.c, tests/tconst_catalan.c:
Simplify test to use tgeneric.
Add note about Worst Case of const_catalan up to 100,000,000
* atan.c: Use GROUP functions.
* tests/tconst_pi.c: Improve coverage.
* mpfr-impl.h: Fix bug in MPFR_GROUP_REPREC_3.
2005-06-06 Patrick Pelissier <Patrick.Pelissier@loria.fr>
* tests/tset_si.c, tests/tui_pow.c, ui_pow_ui.c: Improve coverage
* tests/tcmp_ui.c: Improve coverage test
* Makefile.am, mpfr.h, tests/tdiv.c, tests/tget_str.c, tests/tzeta.c:
Remove mpfr_sub_one_ulp from MPFR library.
Keep the C file until we are sure it not needed anymore.
* tests/tnext.c: Improve coverage.
* tests/texp.c, tests/tget_str.c, tests/tsqrt.c, tests/tzeta.c, Makefile.am, div_ui.c, hypot.c, tests/tdiv.c:
Remove mpfr_add_one_ulp from MPFR library.
The function is still in the CVS.
* gamma.c: Add experimental code (disabled).
For 5000 bits, gamma(12.5) takes 4s instead of 18s.
But it changes the error analysis...
* gamma.c: Reduce use of intermediary variables.
* zeta.c: Improve comment of previous change.
* zeta.c: Use FastCompute if x is positive and big, ie it uses
Zeta(x)=1+1/2^X+O(1/3^x)
2005-06-03 Patrick Pelissier <Patrick.Pelissier@loria.fr>
* ui_pow_ui.c: Add new and faster trivial case for y <= 1 and n <= 1
2005-06-02 Patrick Pelissier <Patrick.Pelissier@loria.fr>
* COPYING, COPYING.LIB: Forget thoses two. Update from FSF site.
* BUGS, NEWS, README, TODO: Finish updating files.
* mul_ui.c, mulders.c, neg.c, next.c, out_str.c, pow.c, pow_si.c, pow_ui.c, pow_z.c, powerof2.c, print_raw.c, print_rnd_mode.c, random.c, random2.c, reldiff.c, rint.c, root.c, round_near_x.c, round_p.c, round_prec.c, round_raw_generic.c, sec.c, sech.c, set.c, set_d.c, set_dfl_prec.c, set_exp.c, set_f.c, set_inf.c, set_ld.c, set_nan.c, set_prc_raw.c, set_prec.c, set_q.c, set_rnd.c, set_si.c, set_si_2exp.c, set_sj.c, set_str.c, set_str_raw.c, set_ui.c, set_ui_2exp.c, set_uj.c, set_z.c, setmax.c, setmin.c, sgn.c, si_op.c, sin.c, sin_cos.c, sinh.c, sqr.c, sqrt.c, sqrt_ui.c, strcasecmp.c, strncasecmp.c, strtofr.c, sub.c, sub1.c, sub1sp.c, sub_one_ulp.c, sub_ui.c, subnormal.c, sum.c, swap.c, tan.c, tanh.c, tests/cmp_str.c, tests/memory.c, tests/mpf_compat.c, tests/mpfr_compat.c, tests/reuse.c, tests/rnd_mode.c, tests/tabs.c, tests/tacos.c, tests/tacosh.c, tests/tadd.c, tests/tadd1sp.c, tests/tadd_ui.c, tests/tagm.c, tests/tasin.c, tests/tasinh.c, tests/tatan.c, tests/tatanh.c, tests/tcan_round.c, tests/tcbrt.c, tests/tcheck.c, tests/tcmp.c, tests/tcmp2.c, tests/tcmp_d.c, tests/tcmp_ld.c, tests/tcmp_ui.c, tests/tcmpabs.c, tests/tcomparisons.c, tests/tconst_catalan.c, tests/tconst_euler.c, tests/tconst_log2.c, tests/tconst_pi.c, tests/tcopysign.c, tests/tcos.c, tests/tcosh.c, tests/tcot.c, tests/tcoth.c, tests/tcsc.c, tests/tcsch.c, tests/tdim.c, tests/tdiv.c, tests/tdiv_ui.c, tests/teint.c, tests/teq.c, tests/terf.c, tests/tests.c, tests/texceptions.c, tests/texp.c, tests/texp2.c, tests/texpm1.c, tests/tfactorial.c, tests/tfits.c, tests/tfma.c, tests/tfrac.c, tests/tgamma.c, tests/tgeneric.c, tests/tgeneric_ui.c, tests/tget_d.c, tests/tget_d_2exp.c, tests/tget_f.c, tests/tget_sj.c, tests/tget_str.c, tests/tget_z.c, tests/tgmpop.c, tests/thyperbolic.c, tests/thypot.c, tests/tinits.c, tests/tinp_str.c, tests/tisnan.c, tests/tlog.c, tests/tlog10.c, tests/tlog1p.c, tests/tlog2.c, tests/tminmax.c, tests/tmul.c, tests/tmul_2exp.c, tests/tmul_ui.c, tests/tnext.c, tests/tout_str.c, tests/toutimpl.c, tests/tpow.c, tests/tpow3.c, tests/tpow_z.c, tests/trandom.c, tests/trint.c, tests/troot.c, tests/tround_prec.c, tests/tsec.c, tests/tsech.c, tests/tset.c, tests/tset_d.c, tests/tset_exp.c, tests/tset_f.c, tests/tset_ld.c, tests/tset_q.c, tests/tset_si.c, tests/tset_sj.c, tests/tset_str.c, tests/tset_z.c, tests/tsgn.c, tests/tsi_op.c, tests/tsin.c, tests/tsin_cos.c, tests/tsinh.c, tests/tsqr.c, tests/tsqrt.c, tests/tsqrt_ui.c, tests/tstrtofr.c, tests/tsub.c, tests/tsub1sp.c, tests/tsub_ui.c, tests/tsum.c, tests/tswap.c, tests/ttan.c, tests/ttanh.c, tests/ttrunc.c, tests/tui_div.c, tests/tui_pow.c, tests/tui_sub.c, tests/tversion.c, tests/tzeta.c, tuneup.c, uceil_exp2.c, uceil_log2.c, ufloor_log2.c, ui_div.c, ui_pow.c, ui_pow_ui.c, ui_sub.c, urandomb.c, version.c, volatile.c, zeta.c, abort_prec_max.c, acos.c, acosh.c, add.c, add1.c, add1sp.c, add_one_ulp.c, add_ui.c, agm.c, asin.c, asinh.c, atan.c, atan2.c, atanh.c, cache.c, cbrt.c, check.c, clear.c, clears.c, cmp.c, cmp2.c, cmp_abs.c, cmp_d.c, cmp_ld.c, cmp_si.c, cmp_ui.c, comparisons.c, const_catalan.c, const_euler.c, const_log2.c, const_pi.c, constant.c, copysign.c, cos.c, cosh.c, cot.c, coth.c, csc.c, csch.c, dim.c, div.c, div_2exp.c, div_2si.c, div_2ui.c, div_ui.c, dump.c, eint.c, eq.c, erf.c, erfc.c, exceptions.c, exp.c, exp10.c, exp2.c, exp3.c, exp_2.c, expm1.c, extract.c, factorial.c, fits_intmax.c, fits_s.h, fits_sint.c, fits_slong.c, fits_sshort.c, fits_u.h, fits_uint.c, fits_uintmax.c, fits_ulong.c, fits_ushort.c, fma.c, frac.c, free_cache.c, gamma.c, gen_inverse.h, generic.c, get_d.c, get_exp.c, get_f.c, get_ld.c, get_si.c, get_sj.c, get_str.c, get_ui.c, get_uj.c, get_z.c, get_z_exp.c, gmp_op.c, hypot.c, init.c, init2.c, inits.c, inits2.c, inp_str.c, int_ceil_log2.c, isinf.c, isinteger.c, isnan.c, isnum.c, isqrt.c, iszero.c, log.c, log10.c, log1p.c, log2.c, logging.c, minmax.c, mp_clz_tab.c, mpf2mpfr.h, mpfr-gmp.c, mpfr-gmp.h, mpfr-impl.h, mpfr-longlong.h, mpfr-test.h, mpfr.h, mpn_exp.c, mul.c, mul_2exp.c, mul_2si.c, mul_2ui.c:
Change the address of the FSF.
* gamma.c:
Optimize it a few by avoiding calling fac_ui for each iteration
of the main loop.
* zeta.c: Reduce # of vars inside the main loop.
Use GROUP function.
Improve overflow problems (Use of int instead of mp_prec_t).
* gamma.c:
Improve efficiency by removing 2 variables (Loop uses only 4 vars).
Use GROUP.
* Makefile.am, abort_prec_max.c, cos.c, cosh.c, sinh.c, tan.c, tanh.c:
Add support for MPFR_GROUP functions.
* mpfr-impl.h:
Add attribute const and noreturn for function (via macros).
Add new macros GROUP_INIT_6 and GROUP_REPREC_6 for zeta and gamma.
2005-06-02 Paul Zimmermann <Paul.Zimmermann@loria.fr>
* TODO: added missing functions from gnumeric
2005-06-02 Patrick Pelissier <Patrick.Pelissier@loria.fr>
* TODO: Update stack-interface.
Remove round_near_x item.
Add new functions to implement.
Reformat file.
* tests/tconst_pi.c: Fix input precision of mp_prec_t.
May be outside 'int' range. So it uses 'long' instead and
a proper check.
2005-05-25 Vincent Lefevre <Vincent.Lefevre@loria.fr>
* README.dev: Added coding recommendations concerning C++ compilers.
2005-05-23 Patrick Pelissier <Patrick.Pelissier@loria.fr>
* mpfr-impl.h: Final version of MPFR_GROUP macros.
* strtofr.c, tests/tstrtofr.c: Improve coverage test.
2005-05-20 Patrick Pelissier <Patrick.Pelissier@loria.fr>
* exp_2.c: Remove variable t which wasn't used!
2005-05-18 Patrick Pelissier <Patrick.Pelissier@loria.fr>
* mul_ui.c, round_prec.c, set_f.c, sqr.c, sqrt.c, strtofr.c, sub1.c, sub1sp.c, sum.c, tests/tsum.c, tuneup.c, add1.c, add1sp.c, agm.c, cos.c, div-short.c, div.c, div_ui.c, exp_2.c, generic.c, get_str.c, init2.c, log.c, mpfr-impl.h, mpn_exp.c, mul.c:
Replace TMP_ALLOC by MPFR_TMP_ALLOC
Replace TMP_DECL by MPFR_TMP_DECL
Replace TMP_MARK by MPFR_TMP_MARK
Replace TMP_FREE by MPFR_TMP_FREE
Add support for GMP's TMP_SALLOC.
* pow.c: New way of handling exact value.
Fix bug of wrong rounding and wrong ternary value if the power
is exact, but at an upper precision than the working precision.
Now it computes the power exactly if it detects it is exact.
* mpfr.texi: Precise that 1 is not the only value.
2005-05-18 Vincent Lefevre <Vincent.Lefevre@loria.fr>
* mpfr.texi: an 1 -> a 1.
2005-05-18 Patrick Pelissier <Patrick.Pelissier@loria.fr>
* mpfr.texi: Add a note about special case 1
* pow.c: Add assertions
Remove useless function is_odd_even.
* pow.c:
Fix bug: returning 1 didn't take the rounding mode into account.
Simplify dependencies of mpfr_pow.
* expm1.c, tests/texpm1.c: Fix bug of overflow
Fix bug of wrong ternary value in case of overflow
Add test cases.
* cosh.c, tests/tcosh.c: Fix bug of overflow.
Fix bug of ternary value in case of overflow.
* tanh.c: Clean up previous patch.
* sinh.c, tests/tsinh.c: Fix bug of overflow.
Fix bug of ternary value in case of overflow.
Still some bugs...
2005-05-17 Patrick Pelissier <Patrick.Pelissier@loria.fr>
* tanh.c, tests/ttanh.c: Rewrite the way of handling overflow.
Fix bug due to overflow.
Fix bug due to wrong ternary value.
* mpfr-impl.h: Typo.
* sinh.c, tests/tsinh.c: Fix bug of overflow.
Still a problem if exp(x) is near the limit of EMAX_MAX.
* mpfr-impl.h: Add new macro MPFR_SAVE_DECL_UPDATE_FLAGS
* sinh.c, tests/tsinh.c:
Improve way of handling overflow (still not perfect but far better).
Improve coverage test.
* get_si.c, tests/tset_si.c: Improve coverage test.
2005-05-17 Vincent Lefevre <Vincent.Lefevre@loria.fr>
* hypot.c, mpfr.texi, tests/thypot.c:
hypot(oo, NaN) now returns +oo, as in ISO C99 (wasn't documented).
2005-05-17 Patrick Pelissier <Patrick.Pelissier@loria.fr>
* tests/tasin.c: Improve coverage test.
* asin.c: Remove useless test.
* tests/tpow.c: Improve coverage test.
* set_z.c, tests/tmul.c, tests/tset_z.c: Improve coverage
* tests/tcmpabs.c: Improve coverage test.
* coverage: Add CFLAGS -g.
* pow.c: Clean up
* tests/tfits.c: Improve coverage tests.
* tests/tgmpop.c: Improve coverage test.
* tanh.c: Special a condition by the simplified one.
* tests/tcmp_ui.c, tests/tconst_catalan.c, tests/tconst_euler.c, tests/tconst_log2.c, tests/tconst_pi.c, tests/tget_d.c:
Improve coverage test (Forget to test tiny functions).
* coverage: Typo
* README.dev, coverage: Add 'coverage' script.
* constant.c: Add 'static'
* cos.c: Reformating code.
Fix potential (?) overflow for very large precision.
Various tiny optimizations
Improve the initial estimation of the needed precision.
* Makefile.am, constant.c, log.c, mpfr-impl.h:
Extract constants (__gmpfr_one, two and four) from log.c to constant.c
Fix bug in MPFR_SET_ONE.
* sin.c: Remove a space.
2005-05-16 Vincent Lefevre <Vincent.Lefevre@loria.fr>
* NEWS: Typography + spelling.
* NEWS: Note that mpfr_out_str has slightly changed.
2005-05-16 Patrick Pelissier <Patrick.Pelissier@loria.fr>
* TODO: asin, atan, atanh are not slow anymore for small input.
Remove it in the TODO.
2005-05-14 Vincent Lefevre <Vincent.Lefevre@loria.fr>
* atanh.c: Fixed a bug due to a typo on a variable name. It produced a
segmentation fault in the tests on Linux/ppc (uninitialized data were
read), not always reproducible when stepping with gdb.
* mpfr.texi: Ported description of mpfr_hypot to the 2.1 branch.
2005-05-13 Patrick Pelissier <Patrick.Pelissier@loria.fr>
* expm1.c, log1p.c: Add support for MPFR_FAST_COMPUTE_IS_SMALL_INPUT
* asin.c, asinh.c, atan.c, atanh.c, sin.c, sinh.c, tan.c, tanh.c:
Add support for FAST_COMPUTE_IS_SMALL_INPUT.
* atan.c: Add round_near_x support for small arguments.
* Makefile.am, round_near_x.c:
Add new internal function mpfr_round_near_x.
2005-05-13 Paul Zimmermann <Paul.Zimmermann@loria.fr>
* mpfr.texi: added missing documentation for mpfr_hypot
2005-05-13 Patrick Pelissier <Patrick.Pelissier@loria.fr>
* tests/texceptions.c: Add a \n for all error strings.
* version.c: Fix copyright date.
* mpfr-impl.h, mpfr.h, tests/tconst_pi.c, tests/texp.c:
Fix some problems when you define mpfr_prec_t to be an unsigned short.
Now all tests passed when mpfr_prec_t is defined to be an unsigned short
on a 32 bit CPU!
2005-05-12 Vincent Lefevre <Vincent.Lefevre@loria.fr>
* hypot.c: Replaced -2 by -MPFR_EVEN_INEX. [2.1 branch]
* hypot.c: Added a comment about the bug fix. [2.1 branch]
* BUGS, hypot.c, tests/thypot.c:
Fixed bug in mpfr_hypot + testcase. [2.1 branch]
* exp_2.c: Detect/avoid potential integer overflows.
2005-05-12 Patrick Pelissier <Patrick.Pelissier@loria.fr>
* tests/texp.c: Fix typos.
2005-05-11 Patrick Pelissier <Patrick.Pelissier@loria.fr>
* tests/texp.c, exp3.c: Same patch for exp_3.
* exp.c, exp_2.c, tests/texp.c:
Fix bug when exp(x) is near the limit of an overflow or an
underflow (mpfr_exp_2 didn't allow an overflow/underflow in its
internal loop).
Add corresponding test case. exp_3 may need similar patchs.
2005-05-11 Vincent Lefevre <Vincent.Lefevre@loria.fr>
* ChangeLog:
Update (with reformatting so that the logs are readable on 80 columns).
2005-05-11 Patrick Pelissier <Patrick.Pelissier@loria.fr>
* mul.c, tests/tmul.c: Fix bug due to wrong assertion.
2005-05-10 Patrick Pelissier <Patrick.Pelissier@loria.fr>
* mpfr-impl.h, mpfr.h, round_prec.c, round_raw_generic.c:
1. Change the prototype of mpfr_can_round to use const.
2. Change the prototype of mpfr_round_raw_2 (remove first argument
since it is useless).
3. Change round_raw_generic to use preprocessor if rather than compiler
to detect if flag == 1 or 0
4. mpfr_round_raw_xxx use const attribute too.
5. Remove mpfr_round_raw_3 since it is unused by MPFR.
6. Add first prototype of MPFR_FAST_COMPUTE_IF_SMALL.
* NEWS: Update.
* mul.c, tests/tmul.c: Fix a bug in the product of 2limbs per 2 limbs.
Add new regression test.
* configure.in: Fix problem with mingw: if the configure detects
MS-Windows, it skips the tests which try to link against GMP
within the configure, hoping the Makefile works. The main problem
is that we need libtool inside the configure to link against GMP.
2005-05-09 Patrick Pelissier <Patrick.Pelissier@loria.fr>
* tests/tatan.c: Improve random tests.
2005-05-04 Patrick Pelissier <Patrick.Pelissier@loria.fr>
* cos.c: Replace initial estimation of K0 from sqrt (p/2)
to sqrt(p/16). It seems to be 30% faster for 5000 bits, and 5% faster
for 50 bits.
2005-05-04 Vincent Lefevre <Vincent.Lefevre@loria.fr>
* div_ui.c, tests/tdiv_ui.c:
Ported div_ui.c bug fix (1.45) with testcase to the 2.1 branch.
* div_ui.c: Reformatted the code.
2005-05-04 Paul Zimmermann <Paul.Zimmermann@loria.fr>
* tests/tdiv_ui.c: fixed dummy init2 followed by set_prec
2005-05-04 Vincent Lefevre <Vincent.Lefevre@loria.fr>
* TODO: Added LIA-2 functions to implement.
2005-05-04 Patrick Pelissier <Patrick.Pelissier@loria.fr>
* tests/tcot.c, tests/tcoth.c, tests/tcsch.c, tests/tsec.c, tests/tsech.c, Makefile.am, NEWS, TODO, coth.c, csch.c, mpfr.h, mpfr.texi, sech.c, tests/Makefile.am:
Add functions mpfr_sech, mpfr_coth and mpfr_csch.
* gen_inverse.h: init2 alloc what is needed, not 2 (more efficient).
2005-05-04 Paul Zimmermann <Paul.Zimmermann@loria.fr>
* acosh.c, algorithms.tex, asinh.c, const_euler.c, cosh.c, eint.c, exp2.c, expm1.c, hypot.c, log10.c, log2.c, pow.c, pow_si.c, tanh.c, tests/tpow.c, tests/tpow3.c:
improved const_euler and eint
removed dependency from input precision in several functions
fixed two bugs in pow (detection of exact cases)
2005-05-04 Patrick Pelissier <Patrick.Pelissier@loria.fr>
* NEWS: Update to reflect the current state.
2005-05-03 Patrick Pelissier <Patrick.Pelissier@loria.fr>
* atan.c:
Fix computing of `sup` to reflect what is decribed in algorithms.tex.
* atan.c: Tiny optimization of mpfr_atan.
On opteron with p=53, from 9231 / 18049.89 / 81758 to 9004 / 17522.76 /
78601.
2005-05-03 Vincent Lefevre <Vincent.Lefevre@loria.fr>
* tests/tset_ld.c:
Fixed a problem in test_small (already done in the 2.1 branch)
when long double = double.
2005-05-03 Patrick Pelissier <Patrick.Pelissier@loria.fr>
* configure.in: Improve detection again (use callback).
* configure.in: Improve previous change.
* configure.in, tests/trint.c: Add detection of function round,
rint, ceil, floor and nearbyint at configure time so that spe206
which defines itself as C99 compliant can build the trint test.
* BUGS: Update (Move bugs to potential).
2005-05-03 Vincent Lefevre <Vincent.Lefevre@loria.fr>
* BUGS, hypot.c, tests/thypot.c:
Fixed the mpfr_hypot bug, and re-enabled the test_large_small test.
2005-05-02 Vincent Lefevre <Vincent.Lefevre@loria.fr>
* ChangeLog: Update.
* BUGS, tests/thypot.c:
Added the test_large_small test for mpfr_hypot (disabled by default)
and mentioned this bug in BUGS. [2.1 branch]
* BUGS: Mention the mpfr_hypot bug.
* tests/thypot.c:
Added a test showing a bug, enabled when TEST_LARGE_SMALL is defined
(to avoid a freeze with make check).
2005-05-02 Patrick Pelissier <Patrick.Pelissier@loria.fr>
* mpfr.texi: Fix bug.
* tests/tpow.c: Remove useless function f.
* subnormal.c: Fix a bug: the test to detect EVEN_rounding was wrong.
* mpfr.texi: Update example of use of mpfr_subnormalize.
* mpfr-test.h, tests/cmp_str.c, tests/tcmp.c, tests/tcmpabs.c:
mpfr_cmp_str checks for NAN.
Add macro mpfr_cmp0 in mpfr-test.
* tests/tgeneric.c, tests/tgeneric_ui.c, tests/troot.c:
Undo previous change for tgeneric.
troot uses tgeneric_ui instead.
2005-05-01 Patrick Pelissier <Patrick.Pelissier@loria.fr>
* tests/reuse.c: Add new funcions in reuse test.
2005-04-30 Paul Zimmermann <Paul.Zimmermann@loria.fr>
* TODO: added efficiency item
* eint.c, mpfr.h, mpfr.texi, tests/Makefile.am, tests/teint.c, Makefile.am, TODO, algorithms.tex:
added mpfr_eint
2005-04-29 Patrick Pelissier <Patrick.Pelissier@loria.fr>
* TODO: Add something to do :)
2005-04-29 Paul Zimmermann <Paul.Zimmermann@loria.fr>
* TODO: added comment about efficiency of atan
2005-04-29 Vincent Lefevre <Vincent.Lefevre@loria.fr>
* README, README.dev, faq.xsl, update-faq, FAQ.html, Makefile.am:
The FAQ is now distributed with MPFR. Use update-faq to update it
from the MPFR web site.
2005-04-29 Paul Zimmermann <Paul.Zimmermann@loria.fr>
* algorithms.tex:
commented out argument reduction analysis for arctan (was wrong)
2005-04-28 Vincent Lefevre <Vincent.Lefevre@loria.fr>
* mpfr.texi: Updated mpfr_set* documentation. [2.1 branch]
2005-04-28 Paul Zimmermann <Paul.Zimmermann@loria.fr>
* sin.c: wrong commit, put revision 1.37 back
* cos.c: wrong commit, put back revision 1.47
* algorithms.tex, cos.c, sin.c:
added error analysis for Geoff's argument reduction for arctan
2005-04-27 Vincent Lefevre <Vincent.Lefevre@loria.fr>
* mpfr.texi: Added a note about mpfr_set_d and mpfr_set_ld.
* mpfr.h, update-version:
Define MPFR_VERSION_STRING using the update-version script
(works with any compiler).
2005-04-26 Paul Zimmermann <Paul.Zimmermann@loria.fr>
* TODO: added internal interface
* TODO: added suggestion from Geoff
* mpfr.h, mpfr.texi, tests/tversion.c: added MPFR_VERSION_STRING
2005-04-25 Paul Zimmermann <Paul.Zimmermann@loria.fr>
* TODO: added new item
* TODO, expm1.c, log1p.c: improved expm1/log1p for small argument
* expm1.c:
improved to taken account of case |x| small (reported by Keith Briggs)
2005-04-25 Vincent Lefevre <Vincent.Lefevre@loria.fr>
* mpfr.texi: Added a missing "-" and replaced a few "-" by @minus{}.
* mpfr.texi: Added a note for mpfr_cmp functions.
2005-04-25 Paul Zimmermann <Paul.Zimmermann@loria.fr>
* set_ld.c, tests/tset_ld.c: fixed bug with tiny number
2005-04-22 Paul Zimmermann <Paul.Zimmermann@loria.fr>
* TODO: removed done item
2005-04-22 Patrick Pelissier <Patrick.Pelissier@loria.fr>
* mpfr-impl.h: Add a macro for mpfr_const_catalan for internal use.
* mpfr.texi: Fix typos.
2005-04-22 Paul Zimmermann <Paul.Zimmermann@loria.fr>
* TODO: removed Root, updated eint*
* Makefile.am, TODO, cot.c, csc.c, gen_inverse.h, mpfr.h, mpfr.texi, sec.c, tests/Makefile.am, tests/tcot.c, tests/tcsc.c, tests/tsec.c:
added sec, csc, cot
* TODO: proposal for exponential integral definition
* Makefile.am, TODO, tests/Makefile.am:
added mpfr_root, removed from TODO
* cbrt.c, mpfr.h, mpfr.texi, root.c, tests/tgeneric.c, tests/troot.c:
added mpfr_root
2005-04-21 Vincent Lefevre <Vincent.Lefevre@loria.fr>
* ChangeLog: Update.
* ChangeLog: Update. (2.1 branch)
* BUGS, get_ld.c:
In mpfr_get_ld, the rounding direction can be wrong if |x| < LDBL_MIN.
(2.1 branch)
* set_ld.c: Correction of latest patch. (2.1 branch)
* set_ld.c:
Fix for long double = double precision (e.g. PowerPC) and rounding
toward +inf. (2.1 branch)
* tests/tset_ld.c:
Added the ability to change the control word when compiling tset_ld
with -DWITH_FPU_CONTROL=1 and executing tset_ld with an argument
(not used in the automatical tests yet).
* set_ld.c:
mpfr_set_ld should now work in any rounding mode. (2.1 branch)
* tests/tset_ld.c: Forgot a #if... (2.1 branch)
* tests/tset_ld.c:
Added the ability to change the control word when compiling tset_ld
with -DWITH_FPU_CONTROL=1 and executing tset_ld with an argument
(not used in the automatical tests yet). (2.1 branch)
* tests/tset_ld.c: Added test_small (the same as in the 2.1 branch).
* tests/tset_ld.c:
Fix for platforms where long double = double. (2.1 branch)
* cmp.c: Updated a comment and reformatted the code.
* set_ld.c: Fixed mpfr_set_ld for very small numbers. (2.1 branch)
* tests/tset_ld.c: More output in test_small. (2.1 branch)
2005-04-21 Paul Zimmermann <Paul.Zimmermann@loria.fr>
* mpfr.texi: added explanation
2005-04-20 Vincent Lefevre <Vincent.Lefevre@loria.fr>
* tests/tset_ld.c:
Fixed bug in test_small (but this still shows a bug). (2.1 branch)
* tests/tset_ld.c: Improved the test_small test. (2.1 branch)
2005-04-20 Paul Zimmermann <Paul.Zimmermann@loria.fr>
* Makefile.am, const_catalan.c, tests/Makefile.am:
adjusted initial guard digits for const_catalan to avoid failure for prec<=10^4
* const_catalan.c, mpfr.texi, tests/tconst_catalan.c:
updated documentation and improved tests for mpfr_const_catalan
* TODO: removed Catalan's constant (done)
* const_catalan.c, free_cache.c, mpfr-impl.h, mpfr.h, tests/tconst_catalan.c, algorithms.tex:
added Catalan's constant
* TODO: added efficiency items suggested by Geoff Bailey
* atan2.c:
fixed minor problem (wrong rounding mode for x=0, y<0), thanks Geoff Bailey
2005-04-19 Paul Zimmermann <Paul.Zimmermann@loria.fr>
* TODO: added one efficiency item
* algorithms.tex:
completely rewritten algorithm and error analysis for acosh
(did not match those in acosh.c)
* acosh.c:
algorithm and error bound did not match those of algorithm.tex!!!
* TODO: added missing functions for Magma
* get_str.c, mpfr.texi: changed semantics of mpfr_get_str for ndigits=0
2005-04-14 Paul Zimmermann <Paul.Zimmermann@loria.fr>
* TODO: added one item (efficiency)
2005-04-14 Patrick Pelissier <Patrick.Pelissier@loria.fr>
* atan2.c, mpfr.texi, tests/tatan.c: Fix atan2 to fit C99 semantic.
* mpfr.texi: Fix typos.
* atan2.c: Add TODO.
* mpfr.texi: Add documentation for mpfr_subnormalize.
* subnormal.c: Fix bugs.
2005-04-13 Patrick Pelissier <Patrick.Pelissier@loria.fr>
* div_ui.c, tests/tsi_op.c: Apply Guillaume's patch about mpfr_div_ui.
Fix a bug in tsi_op (forget to clean memory).
* Makefile.am, mpfr.h, subnormal.c:
Add function mpfr_subnormalize (To Test!!!!!)
* atan2.c: Add TODO.
* expm1.c: Fix wrong comment.
2005-04-07 Patrick Pelissier <Patrick.Pelissier@loria.fr>
* tests/terf.c: Reenable tests.
* mpfr.texi: Add documentation about mpfr_atan2.
* tests/tadd_ui.c, tests/tagm.c, tests/tcbrt.c, tests/tdim.c, tests/tdiv_ui.c, tests/tgeneric_ui.c, tests/tmul_ui.c, tests/tpow.c, tests/tsi_op.c, tests/tsub_ui.c:
Improve test suite by adding new random values.
* tests/tadd.c, tests/tdiv.c, tests/tmul.c, tests/tsub.c:
Add random tests (tgeneric + random2).
2005-04-05 Vincent Lefevre <Vincent.Lefevre@loria.fr>
* README.dev: Test with -ansi when making a release.
* README.dev: Typo.
2005-04-05 Paul Zimmermann <Paul.Zimmermann@loria.fr>
* div-short.c, tests/terf.c: replaced // comments by /* ... */
2005-04-04 Vincent Lefevre <Vincent.Lefevre@loria.fr>
* get_ld.c, tests/tset_ld.c: Avoid an infinite loop. [2.1 branch]
2005-04-04 Patrick Pelissier <Patrick.Pelissier@loria.fr>
* TODO: Add note about mpfr_neg
* Makefile.am, NEWS, TODO, atan2.c, mpfr.h, tests/tatan.c:
Add function mpfr_atan2
2005-03-31 Patrick Pelissier <Patrick.Pelissier@loria.fr>
* mparam_h.in, mpfr-gmp.h, mulders.c:
Change to add future function mpfr_sqrhigh_n.
* mpfr.texi: Add documentation for mpfr_erfc.
* NEWS: Add items.
* Makefile.am, TODO, erfc.c, mpfr.h, tests/terf.c, tests/tgeneric.c:
Add function mpfr_erfc.
Add a note about auto-checking correctness of MPFR.
2005-03-30 Vincent Lefevre <Vincent.Lefevre@loria.fr>
* tests/tpow.c: Added a testcase (the one added to the 2.1 branch).
* pow_ui.c, tests/tpow.c:
[2.1 branch] Ported two mpfr_pow_ui bug fixes from the trunk;
added a testcase found with random tests written for that.
2005-03-30 Patrick Pelissier <Patrick.Pelissier@loria.fr>
* tests/tpow.c: Use random2 instead of random.
2005-03-30 Vincent Lefevre <Vincent.Lefevre@loria.fr>
* round_p.c: Weaker conditions for return 0 in mpfr_round_p.
2005-03-30 Patrick Pelissier <Patrick.Pelissier@loria.fr>
* tests/tgeneric.c, tests/tgeneric_ui.c, tests/tpow.c, tests/Makefile.am:
Add generic test for functions which looks
inexact = MPFR_TOTO (rop, op, INTEGER, RND);
* pow_ui.c, pow_z.c:
Add ceil(log2(size)) bits to initial precision to avoid
commiting in error for huge operands.
2005-03-30 Vincent Lefevre <Vincent.Lefevre@loria.fr>
* tests/tpow.c:
Added a test (corresp. to the one added on 2005-03-25 in tpow_z.c).
2005-03-29 Vincent Lefevre <Vincent.Lefevre@loria.fr>
* pow_ui.c, pow_z.c: Reformatted code (GNU style, untabify...).
2005-03-29 Patrick Pelissier <Patrick.Pelissier@loria.fr>
* mpfr-impl.h: Tiny update.
Add group functions macros.
* pow_ui.c, pow_z.c, tests/tpow_z.c:
Replace test ('p <= i') by assertion ('p > i).
2005-03-25 Paul Zimmermann <Paul.Zimmermann@loria.fr>
* gamma.c, mpfr.texi, pow_ui.c, pow_z.c, tests/tgamma.c, tests/tpow_z.c:
fixed bug in pow_ui (and pow_z): missing factor 2 in error bound
fixed bug in gamma of negative integer
2005-03-25 Patrick Pelissier <Patrick.Pelissier@loria.fr>
* div-short.c: Add info.
* mpfr-impl.h, print_raw.c:
Add new internal function for debugging reasons.
* tests/tpow_z.c: Forget to free x and y
* tests/tpow_z.c: Add failed regression test.
* div-short.c: Improved version.
* mul.c, tests/tmul.c: Undo previous change (I was wrong).
Add new regression test.
2005-03-24 Patrick Pelissier <Patrick.Pelissier@loria.fr>
* mul.c: Fix wrong extimated precision.
It is log2(n+2) ulps so that log2(log2(n+2)) bits!
* div-short.c: Add checking.
2005-03-23 Paul Zimmermann <Paul.Zimmermann@loria.fr>
* tests/tdiv.c: added new test
2005-03-23 Patrick Pelissier <Patrick.Pelissier@loria.fr>
* tests/tget_f.c:
Remove an signed integer trap overflow (GCC 4 + '-ftrapv').
* mul.c: Don't use Mulder at n+1 for MPFR_MUL_THRESHOLD+1
* mparam_h.in: Reduce the threshold for AMD64.
2005-03-22 Patrick Pelissier <Patrick.Pelissier@loria.fr>
* div-short.c: Initial version of Short Division.
* mul.c: Fix bug on HP-UX.
longlong's umul_ppmm seems to be buggy on such a system.
Don't use it under HP-UX.
2005-03-21 Vincent Lefevre <Vincent.Lefevre@loria.fr>
* mpfr.h, mpfr.texi, version.c, VERSION:
Update for future version in 2.1 branch.
2005-03-21 Patrick Pelissier <Patrick.Pelissier@loria.fr>
* mul.c, tests/tmul.c, tuneup.c:
Add case where bn == 1 and bn == 2 by using longlong.h.
Modify tuneup to start with prec=2*BITS_PER_MP_LIMB+1
Fix bug in computing the estimated precision when you switch from N limbs to N+1 limbs.
Add regression tests.
2005-03-19 Vincent Lefevre <Vincent.Lefevre@loria.fr>
* isqrt.c: Typo.
2005-03-18 Paul Zimmermann <Paul.Zimmermann@loria.fr>
* TODO: added one efficiency item
2005-03-17 Paul Zimmermann <Paul.Zimmermann@loria.fr>
* tests/tsqrt.c: added two property-tests
2005-03-17 Vincent Lefevre <Vincent.Lefevre@loria.fr>
* atanh.c, tests/tatanh.c:
Fixed a bug for mpfr_atanh(x) with 1 < |x| < 2 (found by Matt Reddick).
[2.1 branch]
* atanh.c, tests/tatanh.c:
Fixed a bug for mpfr_atanh(x) with 1 < |x| < 2 (found by Matt Reddick).
2005-03-14 Patrick Pelissier <Patrick.Pelissier@loria.fr>
* README.dev: Update
* tests/tcan_round.c:
Improve test: compare between mpfr_round_p and mpfr_can_round.
* asin.c, asinh.c, atan.c, atanh.c, const_euler.c, const_pi.c, cos.c, cosh.c, erf.c, exp2.c, exp_2.c, expm1.c, gmp_op.c, hypot.c, log.c, log10.c, log1p.c, log2.c, mul.c, pow.c, pow_si.c, pow_ui.c, pow_z.c, sinh.c, tan.c, tanh.c, ui_pow_ui.c, zeta.c, acos.c, acosh.c, agm.c:
Replace mpfr_can_round (..., GMP_RNDN, GMP_RNDZ, ...) to fast replacement
mpfr_round_p.
* round_prec.c: Remove a FIXME.
* Makefile.am, mpfr-impl.h, round_p.c:
Add new internal function mpfr_round_p which is a fast replacement
to mpfr_can_round (x, y, GMP_RNDN, GMP_RNDZ, ...)
* tests/texp.c: Improve an error message.
2005-03-10 Patrick Pelissier <Patrick.Pelissier@loria.fr>
* mul.c: Fix bug: tmp may have changed in mulhigh code.
Restore it before calling mpn_mul.
2005-03-09 Patrick Pelissier <Patrick.Pelissier@loria.fr>
* mparam_h.in: Better defaults threshold.
2005-03-09 Vincent Lefevre <Vincent.Lefevre@loria.fr>
* add1sp.c, tests/tadd1sp.c:
Ported bug fix in case of reuse of variable (a,b,a) with
Exp(b) = Exp(a) + Prec(b) to the 2.1 branch.
2005-03-09 Patrick Pelissier <Patrick.Pelissier@loria.fr>
* mul.c: Handle case where Prec(a) ~ estimated prec of mulhigh.
Add one extra limb, and still uses mulhigh.
* tuneup.c:
Fix bug: compute Mulder Threshold from n/2+1 instead of (n+1)/2
* configure.in: Forget ';;' in switch.
* Makefile.am: Add '-v' for tuneup.
* mul.c, mulders.c: Add assertion.
* mul.c, tests/tmul.c: Improve checking
Add test. Short Mulder product failed for this.
* configure.in, mul.c, sub1sp.c:
Improve full assertion mode (Check mpfr_mul).
2005-03-09 Vincent Lefevre <Vincent.Lefevre@loria.fr>
* exp_2.c, tests/texp.c:
Bug due to wrong approximation to x / log(2). [2.1 branch]
2005-03-08 Patrick Pelissier <Patrick.Pelissier@loria.fr>
* logging.c, mpfr-impl.h:
Move GLIBC detection from mpfr-impl to logging.c
* mul.c: Add log info.
* mparam_h.in: Improve default threshold.
* algorithms.tex, mul.c, tuneup.c:
Add Mulder Short product for mpfr_mul.
Update algorithm.tex to describe the estimated error.
* mulders.c: Add an assert.
Cosmetic change.
* mparam_h.in: Update default values.
* mpfr-impl.h: Clean up macro namespace.
* tests/tgmpop.c, tests/tsqrt.c: Cosmetics change.
2005-03-08 Paul Zimmermann <Paul.Zimmermann@loria.fr>
* Makefile.am, get_f.c, mpfr.h, tests/Makefile.am, tests/tget_f.c:
new function mpfr_get_f
2005-03-08 Patrick Pelissier <Patrick.Pelissier@loria.fr>
* add1sp.c, tests/tadd1sp.c:
Fix bug in case of reuse of variable (a,b,a) with Exp(b)=Exp(a)+Prec(b).
Move copy of mantissa after test.
2005-03-07 Patrick Pelissier <Patrick.Pelissier@loria.fr>
* Makefile.am, configure.in, mpfr-gmp.h, mpfr-impl.h, mulders.c, tuneup.c:
Add tune for mpfr_mulhigh
Add --with-mulhigh-size option at configure time.
2005-03-04 Patrick Pelissier <Patrick.Pelissier@loria.fr>
* exp_2.c, tests/texp.c:
Fix bug due to wrong estimation of (get_d (x) / LOG2).
TODO: Rexamine the algorithm of mpfr_exp_2!
* exp_2.c: Transform DEBUG message to LOG message.
* mulders.c: Improve it.
* exp_2.c, mparam_h.in, tuneup.c: Tune mpfr_exp_2 now!
2005-03-03 Patrick Pelissier <Patrick.Pelissier@loria.fr>
* mulders.c: Fix bugs.
* mulders.c: Update it.
New code for mpfr_mul.
2005-03-02 Patrick Pelissier <Patrick.Pelissier@loria.fr>
* mparam_h.in: Add new default threshold for different CPU.
* README.dev: Update for tune.
* atan.c, tests/tatan.c:
Fix bug in estimated error (See previous ChangeLog).
2005-02-24 Patrick Pelissier <Patrick.Pelissier@loria.fr>
* Makefile.am, configure.in, mparam_h.in, mpfr-impl.h, tests/Makefile.am, tuneup.c:
Add tune program for MPFR.
Do make tune instead of make.
BUT you need to have configure MPFR with --with-gmp-build=...
(It uses internal libspeed.la of GMP).
Tuning is slow...
* mulders.c: Add note.
2005-02-23 Vincent Lefevre <Vincent.Lefevre@loria.fr>
* ChangeLog, NEWS, VERSION, mpfr.h, mpfr.texi, version.c:
Update for MPFR 2.1.1.
2005-02-22 Patrick Pelissier <Patrick.Pelissier@loria.fr>
* fits_u.h, fits_s.h: Tiny optimization
* TODO: Update
* const_log2.c, const_pi.c: Add logging.
* div_ui.c, mul_ui.c, si_op.c, ui_div.c:
Reduce InterObject dependency by moving mul_si, div_si and si_div
to the unique function they used.
Improve mul_ui by inlining the rounding.
2005-02-21 Patrick Pelissier <Patrick.Pelissier@loria.fr>
* log.c: Improve test to 1.
2005-02-21 Vincent Lefevre <Vincent.Lefevre@loria.fr>
* sqrt.c, tests/tcos.c, tests/texpm1.c, tests/tlog10.c, tests/tlog1p.c, tests/tsin.c:
Updated copyright lines.
* ui_sub.c: Ported mpfr_ui_sub patch to 2.1 branch:
Fixed a bug for u == 0 and x == +0 introduced in ui_sub.c 1.23,
when 0 was taken into account as a special case: the sign of the
result 0 was incorrect. -> Consider the case u == 0 first.
* sub_ui.c: Code reindented / reformatted.
* tests/tui_sub.c, ui_sub.c:
Fixed a bug for u == 0 and x == +0 introduced in ui_sub.c 1.23,
when 0 was taken into account as a special case: the sign of the
result 0 was incorrect. -> Consider the case u == 0 first.
2005-02-19 Paul Zimmermann <Paul.Zimmermann@loria.fr>
* tests/RRTest.c, tests/tcos.c, tests/texp.c, tests/texpm1.c, tests/tgeneric.c, tests/tlog.c, tests/tlog10.c, tests/tlog1p.c, tests/tpow.c, tests/tsin.c:
added generic tests in tpow
2005-02-18 Paul Zimmermann <Paul.Zimmermann@loria.fr>
* sqrt.c, tests/tsqrt.c:
fixed bug (variable used twice for different things)
* algorithms.bib, algorithms.tex, mpfr-test.h, tests/RRTest.c, tests/tadd.c, tests/tconst_log2.c, tests/tdiv.c, tests/tmul.c, tests/tsqrt.c, tests/tsub.c:
more changes for interface with NTL
2005-02-18 Patrick Pelissier <Patrick.Pelissier@loria.fr>
* round_prec.c: Likely a test.
* mulders.c: Update
2005-02-18 Paul Zimmermann <Paul.Zimmermann@loria.fr>
* tests/RRTest.c, tests/tadd.c: added interface for NTL
2005-02-16 Vincent Lefevre <Vincent.Lefevre@loria.fr>
* ChangeLog: Update.
* README.dev: Suppress some spaces.
2005-02-16 Patrick Pelissier <Patrick.Pelissier@loria.fr>
* tests/tpow.c: Reenable underflow tests.
* README.dev: Update
2005-02-16 Vincent Lefevre <Vincent.Lefevre@loria.fr>
* texinfo.tex:
Removed texinfo.tex, as it can be installed by autoreconf -i.
2005-02-16 Patrick Pelissier <Patrick.Pelissier@loria.fr>
* tests/Makefile.am:
Fix LOADLIBES so that it works (it doesn't due to libtool change). But it
still needs to have s static version of MPFR.
2005-02-16 Vincent Lefevre <Vincent.Lefevre@loria.fr>
* README.dev: autoreconf -> autoreconf -i
2005-02-16 Patrick Pelissier <Patrick.Pelissier@loria.fr>
* sin_cos.c, tan.c, asinh.c, exp3.c, mpfr-impl.h:
Fix wrong integer types.
2005-02-16 Vincent Lefevre <Vincent.Lefevre@loria.fr>
* ChangeLog: Update. (2.1 branch)
* set.c: Added a comment.
* ChangeLog, mul.c, sub1.c, sub1sp.c:
Spelling mistakes & reformatted code.
* sub1.c:
Ported another fix to the 2.1 branch (bug introduced in 1.31.2.1).
* README.dev: Suppress some spaces.
2005-02-16 Patrick Pelissier <Patrick.Pelissier@loria.fr>
* tests/tpow.c: Reenable underflow tests.
* README.dev: Update
2005-02-16 Vincent Lefevre <Vincent.Lefevre@loria.fr>
* texinfo.tex:
Removed texinfo.tex, as it can be installed by autoreconf -i.
2005-02-16 Patrick Pelissier <Patrick.Pelissier@loria.fr>
* tests/Makefile.am:
Fix LOADLIBES so that it works (it doesn't due to libtool change). But it
still needs to have s static version of MPFR.
2005-02-16 Vincent Lefevre <Vincent.Lefevre@loria.fr>
* README.dev: autoreconf -> autoreconf -i
2005-02-16 Patrick Pelissier <Patrick.Pelissier@loria.fr>
* sin_cos.c, tan.c, asinh.c, exp3.c, mpfr-impl.h:
Fix wrong integer types.
2005-02-16 Vincent Lefevre <Vincent.Lefevre@loria.fr>
* ChangeLog: Update. (2.1 branch)
* set.c: Added a comment. (2.1 branch)
* mul.c, sub1.c, sub1sp.c, ChangeLog:
Spelling mistakes & reformatted code.
* sub1.c:
Ported another fix to the 2.1 branch (bug introduced in 1.31.2.1).
2005-02-15 Vincent Lefevre <Vincent.Lefevre@loria.fr>
* sub1.c: Reformatted code.
2005-02-15 Patrick Pelissier <Patrick.Pelissier@loria.fr>
* tanh.c: Improve initial prec.
2005-02-15 Vincent Lefevre <Vincent.Lefevre@loria.fr>
* tan.c: Ported tan fix to 2.1 branch.
2005-02-15 Patrick Pelissier <Patrick.Pelissier@loria.fr>
* tanh.c: Remove code.
Add special case if t=1.
* sub1.c: mpfr_set doesn't produce an EVEN inexact flag.
Fix this.
* cos.c: USe of mpfr_nexttozero.
* atanh.c: Fix bug: use x instead of xf in LOG.
* zeta.c, exp.c, gamma.c, log.c, pow.c, sinh.c, tanh.c, erf.c, cosh.c, atan.c, atanh.c, asinh.c, acos.c, acosh.c, agm.c, asin.c:
Log input and ouput of functions.
* tan.c: Fix bug of overflow in tan.
* sin.c, sin_cos.c, tan.c: Use of MPFR_LOG_FUNC.
* mpfr-impl.h: Do not print final log message if there was no call.
* sin.c: Add ZivLoop for sign
2005-02-14 Patrick Pelissier <Patrick.Pelissier@loria.fr>
* logging.c:
Fix bug: during the display of a logged var, logging is turn off.
* cos.c, mpfr-impl.h: Add MPFR_LOG_FUNC
Use mpfr_cos as testing example.
* const_euler.c, const_log2.c, const_pi.c, cache.c:
Add ZivLoop controller for constantes.
Augment exponent range in the cache.
Remove it in const_pi.
* get_str.c: Add generic ZivLoop controller.
2005-02-14 Laurent Fousse <fousse@dixsept.loria.fr>
* mpfr.texi: Document mpfr_sum returned int value.
2005-02-14 Patrick Pelissier <Patrick.Pelissier@loria.fr>
* pow_si.c, pow_ui.c, pow_z.c, strtofr.c, sum.c, ui_pow_ui.c, zeta.c, log10.c, log1p.c, log2.c, pow.c, gmp_op.c:
Clean up code.
Add generic ZivLoop controller.
2005-02-14 Vincent Lefevre <Vincent.Lefevre@loria.fr>
* sum.c: Ported latest bug fix to 2.1 branch.
2005-02-14 Laurent Fousse <fousse@dixsept.loria.fr>
* sum.c: Consider return value's precision for rounding in mpfr_sum.
2005-02-14 Paul Zimmermann <Paul.Zimmermann@loria.fr>
* const_pi.c: removed garbage
2005-02-14 Patrick Pelissier <Patrick.Pelissier@loria.fr>
* expm1.c, factorial.c, gamma.c, hypot.c, exp2.c: Clean up
Add ZivLoop
* const_log2.c: Remove malloc/free.
Use of MPFR_INT_CEIL_LOG2
Add ZivLoop controller.
* erf.c: Clean up code.
Fix bug with Exponent range.
Add ZivLoop controller.
* cbrt.c: Cleanup code.
2005-02-14 Paul Zimmermann <Paul.Zimmermann@loria.fr>
* const_log2.c:
further efficiency improvement (avoid mpz_init/mpz_clear)
2005-02-14 Patrick Pelissier <Patrick.Pelissier@loria.fr>
* acosh.c, asinh.c, atanh.c: Add ZivLoop controller.
Clean up code.
Optimize it by removing the # of used vars.
* acos.c, asin.c, atan.c: Add ZivLoop controler.
2005-02-12 Paul Zimmermann <Paul.Zimmermann@loria.fr>
* algorithms.tex, const_log2.c, mpfr-impl.h:
new faster algorithm for log(2)
2005-02-11 Patrick Pelissier <Patrick.Pelissier@loria.fr>
* configure.in: Remove detection of C++ and Fortran due to libtool.
* configure.in, tests/Makefile.am, Makefile.am:
Clean up configure (more simplier).
Still a bug with CXXCPP to solve.
* mpfr-impl.h, const_log2.c: Clean up const_log2 code.
2005-02-10 Patrick Pelissier <Patrick.Pelissier@loria.fr>
* sin_cos.c, sinh.c, tan.c, tanh.c, cosh.c, exp.c, exp3.c, exp_2.c, log.c:
Add log for other functions.
Add ZivLoop too.
Cleanup exp3.
2005-02-09 Patrick Pelissier <Patrick.Pelissier@loria.fr>
* configure.in: Update for ICC (disable shared since it doesn't work).
* configure.in:
The previous fixs don't work. New one which works but is VERY ugly.
* configure.in: Fix again to avoid fail on laurent5...
* configure.in:
Set CXXCPP to "g++ -E" to avoid detection (which may fail on some systems).
* configure.in:
Reduce the tested compiler for C++ and Fortran to the minimum.
* configure.in:
Update GMP detection to be much more libtool compatible.
As a consequence some tests using AC_RUN_IFELSE may fail due to ugly things
like LD_LIBRARY_PATH no set or wrong selection of libgmp.
So they just produce a warning, not a fatal error.
TODO: Check if we can avoid thoses problems...
2005-02-08 Patrick Pelissier <Patrick.Pelissier@loria.fr>
* install-sh, missing, mkinstalldirs, prepare, config.guess, config.sub, depcomp, ansi2knr.1, ansi2knr.c:
Remove automake and libtool files.
Use `automake --add-missing --copy -i` to generate them.
* ansi2knr.1, ansi2knr.c: Add support for ansi2knr
* mpfr-test.h, mpfr.h, prepare, tests/Makefile.am, tests/tests.c, update-version, Makefile.am, README.dev, acinclude.m4, configure.in, mpfr-gmp.h, mpfr-impl.h:
Add support for Shared Library in MPFR (both Unix and Windows) by using libtool.
Improve configure (remove unused macros, make dist produce .zip and .bz2)
Update update-version to modify configure.in too.
* NEWS: Update NEWS.
2005-02-04 Patrick Pelissier <Patrick.Pelissier@loria.fr>
* tests/reuse.c: Add forgotten functions to reuse test.
* tests/reuse.c:
Improve reuse tests (Include 1, -1, 1/2, 2, PI and PI/2 now).
* tests/tatan.c, atan.c: Fix bug of atan(-1) (wrong sign).
2005-02-03 Patrick Pelissier <Patrick.Pelissier@loria.fr>
* configure.in: Remove unused option --disable-cache.
* configure.in, exceptions.c, mpfr-impl.h, set_dfl_prec.c, set_rnd.c:
Add option "thread-safe" to configure.
Limited to use with GCC and ICC (using extension __thread).
* mpfr.texi: Add description of added functions.
* mpf2mpfr.h, mpfr-impl.h, mpfr.h:
mpfr.h doesn't export anymore any globals.
It doesn't define MPFR_FLAGS too.
* cache.c, const_euler.c, const_log2.c, const_pi.c, mpfr-impl.h, mpfr.h:
Change user interface for mpfr_const_pi, mpfr_const_log2 and
mpfr_const_euler. No more access to the cache itself.
Create dummy functions which call the cache, and rename old
functions to "_internal".
Internally, it doesn't change at all (You still call directly
the cache instead of the dummy function which calls the cache).
* exceptions.c, mpfr.h, tests/texceptions.c:
Add functions mpfr_set_overflow, mpfr_set_underflow, mpfr_set_erangeflag,
mpfr_set_inexflag, mpfr_set_nanflag
* tests/texceptions.c, set_uj.c, set_z.c, sqr.c, strtofr.c, sub1.c, sub1sp.c, sub_one_ulp.c, set.c, set_q.c, set_si.c, set_sj.c, set_ui.c, mul_2ui.c, mul_ui.c, pow.c, pow_ui.c, pow_z.c, rint.c, round_prec.c, mpfr-impl.h, mul.c, mul_2si.c, div_2ui.c, exceptions.c, exp.c, exp2.c, div_2si.c, add_one_ulp.c, cache.c, div.c, add1.c, add1sp.c:
Rename internal functions mpfr_set_overflow in mpfr_overflow and
mpfr_set_underflow in mpfr_underflow so that we can add new functions
mpfr_set_underflow and mpfr_set_overflow (which set the global flags).
* sin.c: Add support for logging.
Add support for ZivLoop.
Improve efficiency if prec(op) >> prec(rop), and rop ~= 0
* cos.c: Fix wrong place for MPFR_LOG_BEGIN.
* README.dev, logging.c: Rename MPFR_LOG_BADCASE in MPFR_LOG_ZIV
* mpfr-impl.h: Reduce the size of some lines (more than 80 chars).
2005-02-02 Patrick Pelissier <Patrick.Pelissier@loria.fr>
* tests/mpf_compat.h: Fix again. My previous fix was incorrect.
2005-02-02 Vincent Lefevre <Vincent.Lefevre@loria.fr>
* tests/tui_sub.c, sub1.c: Ported 1.36 patch to the 2.1 branch:
Fix bug of sub1 if dest=src2 and src1 >> src2
2005-02-02 Patrick Pelissier <Patrick.Pelissier@loria.fr>
* logging.c: Fix wrong order of include system files.
(printf.h is not available everywhere).
2005-02-02 Paul Zimmermann <Paul.Zimmermann@loria.fr>
* sin.c: inexact flag was inexact :-)
2005-02-02 Patrick Pelissier <Patrick.Pelissier@loria.fr>
* sin.c, sub1.c, mpfr-impl.h, next.c:
Move mpfr_nexttozero and mpfr_nexttoinf from static to mpfr-impl.
Use them in sub1 and sin.
* README.dev, logging.c: Add forgotten logging file.
Add description of new macros in README.dev
* cos.c, tests/tcos.c: Add support for ZivLoop controler and logging.
* Makefile.am, configure.in, mpfr-impl.h:
Add experimental logging feature.
Add ZivLoop controler.
* tests/mpf_compat.h: Forget that mpf doesn't have mpf_free_str.
Fix this.
* tests/tsin.c, sub1.c: Fix bug of sub1 if dest=src2 and src1 >> src2
=> Fix problem of mpfr_sin
2005-02-02 Paul Zimmermann <Paul.Zimmermann@loria.fr>
* tests/tui_sub.c, tests/tsin.c: added two tests
2005-02-01 Patrick Pelissier <Patrick.Pelissier@loria.fr>
* INSTALL, acinclude.m4, configure.in:
Now MPFR tries to get GMP's CC and CFLAGS from its build directory.
* configure.in: Add AC_COPYRIGHT
Clean up AC_ARG_ENABLE handling
Add `--enable-logging` option.
2005-01-31 Paul Zimmermann <Paul.Zimmermann@loria.fr>
* TODO: added item
2005-01-31 Patrick Pelissier <Patrick.Pelissier@loria.fr>
* set_ld.c: Fix a wrong assertion when double == long double.
* sin.c: Add loop counter
Check if the result is 0 (Due to new algorithm, it may be 0)
and in that case, increase a lot the precision.
2005-01-29 Paul Zimmermann <Paul.Zimmermann@loria.fr>
* algorithms.tex, sin.c:
changed algorithm for mpfr_sin (to get inexact flag)
2005-01-29 Vincent Lefevre <Vincent.Lefevre@loria.fr>
* exp.c, tests/texp.c:
Fixed a sign bug in mpfr_exp (found by Mark J Watkins).
2005-01-28 Paul Zimmermann <Paul.Zimmermann@loria.fr>
* sin.c: solved efficiency problem in mpfr_sin_sign for x near Pi
2005-01-28 Vincent Lefevre <Vincent.Lefevre@loria.fr>
* ChangeLog: Update (2.1 branch).
* tests/tdump.c:
Removed tests/tdump.c (was no longer used and mpfr_dump is already
tested in toutimpl.c).
* sin.c: Updated copyright line.
* rint.c, tests/trint.c:
Ported the mpfr_rint fix and test to the 2.1 branch.
2005-01-28 Patrick Pelissier <Patrick.Pelissier@loria.fr>
* cos.c: Clean up code (due to mix with Paul changes).
* sin_cos.c:
Improve inexact code since sin & cos can't be exact if x != 0
2005-01-28 Vincent Lefevre <Vincent.Lefevre@loria.fr>
* mpfr-impl.h:
Removed a useless test in macro MPFR_UNSIGNED_MINUS_MODULO.
2005-01-28 Patrick Pelissier <Patrick.Pelissier@loria.fr>
* cos.c, sin.c, sin_cos.c:
Much faster worst case (ie result near 0 or 1).
2005-01-28 Paul Zimmermann <Paul.Zimmermann@loria.fr>
* cos.c: speed-up special case where approximation is 1 or -1
2005-01-28 Vincent Lefevre <Vincent.Lefevre@loria.fr>
* rint.c: Updated comments about the rounding modes.
2005-01-28 Patrick Pelissier <Patrick.Pelissier@loria.fr>
* reldiff.c: Fix bug and optimize code.
* get_str.c:
FIx a warning (Wrong proto between declaration and implementation :
forget some const).
2005-01-28 Vincent Lefevre <Vincent.Lefevre@loria.fr>
* cos.c: Updated copyright line.
* tests/tgeneric.c, tests/tget_d_2exp.c, tests/tget_sj.c, tests/tget_str.c, tests/tgmpop.c, tests/thypot.c, tests/tlog.c, tests/tmul.c, tests/tmul_ui.c, tests/tout_str.c, tests/toutimpl.c, tests/tpow.c, tests/tpow3.c, tests/trint.c, tests/tset.c, tests/tset_d.c, tests/tset_f.c, tests/tset_ld.c, tests/tset_q.c, tests/tset_si.c, tests/tset_str.c, tests/tset_z.c, tests/tsqr.c, tests/tsqrt.c, tests/tsub.c, tests/tsub1sp.c, tests/tsum.c, tests/tui_div.c, tests/tui_pow.c, tests/tzeta.c, tests/mpf_compat.h, tests/mpfr_compat.c, tests/tabs.c, tests/tacos.c, tests/tadd.c, tests/tadd1sp.c, tests/tadd_ui.c, tests/tasin.c, tests/tcan_round.c, tests/tcbrt.c, tests/tcmp.c, tests/tcmpabs.c, tests/tconst_euler.c, tests/tconst_log2.c, tests/tconst_pi.c, tests/tdiv.c, tests/tdiv_ui.c, tests/teq.c, tests/tests.c, tests/texceptions.c, tests/texp.c, tests/tfactorial.c, tests/tfma.c, tests/tfrac.c, erf.c, exp_2.c, get_d.c, get_ld.c, get_str.c, get_z_exp.c, mpfr.h, mpn_exp.c, pow.c, pow_si.c, pow_ui.c, rint.c, set_str.c, sin_cos.c, sinh.c, tests/mpf_compat.c, cmp_si.c, const_euler.c, const_log2.c, div.c:
Updated copyright lines.
2005-01-28 Paul Zimmermann <Paul.Zimmermann@loria.fr>
* cos.c: fixed efficiency problem in case of cos(Pi)
2005-01-28 Patrick Pelissier <Patrick.Pelissier@loria.fr>
* rint.c, tests/trint.c: Fix bug if dest==src.
Transform some MPFR_ASSERTN to MPFR_ASSERTD.
2005-01-27 Vincent Lefevre <Vincent.Lefevre@loria.fr>
* tests/tset.c, tests/tset_d.c, tests/tset_f.c, tests/tset_ld.c, tests/tset_q.c, tests/tset_si.c, tests/tset_str.c, tests/tset_z.c, tests/tsqr.c, tests/tsqrt.c, tests/tsub.c, tests/tsub1sp.c, tests/tsum.c, tests/tui_div.c, tests/tui_pow.c, tests/tzeta.c, tests/tatan.c, tests/tcan_round.c, tests/tcbrt.c, tests/tcmp.c, tests/tcmpabs.c, tests/tconst_euler.c, tests/tconst_log2.c, tests/tconst_pi.c, tests/tdiv.c, tests/tdiv_ui.c, tests/teq.c, tests/tests.c, tests/texceptions.c, tests/texp.c, tests/tfactorial.c, tests/tfma.c, tests/tfrac.c, tests/tgeneric.c, tests/tget_d_2exp.c, tests/tget_sj.c, tests/tget_str.c, tests/tgmpop.c, tests/thypot.c, tests/tlog.c, tests/tmul.c, tests/tmul_ui.c, tests/tout_str.c, tests/toutimpl.c, tests/tpow.c, tests/tpow3.c, tests/trint.c, tests/tabs.c, tests/tacos.c, tests/tadd.c, tests/tadd1sp.c, tests/tadd_ui.c, tests/tasin.c:
Added missing casts for g++ (2.1 branch).
2005-01-27 Patrick Pelissier <Patrick.Pelissier@loria.fr>
* tests/tests.c: Fix a buffer overflow.
* get_ld.c, mpfr-impl.h, set_ld.c, tests/tset_ld.c:
New version of mpfr_set_ld and mpfr_get_ld for IEEE Extended Little Endian.
(Due to problem on x86 with extended precision).
2005-01-27 Paul Zimmermann <Paul.Zimmermann@loria.fr>
* tests/mpf_compat.c, tests/mpf_compat.h, tests/mpfr_compat.c:
partially fixed memory leak
* sin_cos.c: test for huge cancellation was misplaced
* tests/tsum.c: fixed memory leak
* sin_cos.c: fixed inefficiency problem for x near from Pi
* tests/tui_div.c, tests/tui_pow.c, tests/tzeta.c, tests/tset_q.c, tests/tset_si.c, tests/tset_str.c, tests/tset_z.c, tests/tsqr.c, tests/tsqrt.c, tests/tsub.c, tests/tsub1sp.c, tests/tsum.c, tests/trint.c, tests/tset.c, tests/tset_d.c, tests/tset_f.c, tests/tset_ld.c, tests/tlog.c, tests/tmul.c, tests/tmul_ui.c, tests/tout_str.c, tests/toutimpl.c, tests/tpow.c, tests/tpow3.c, tests/tpow_z.c, tests/tfrac.c, tests/tgeneric.c, tests/tget_d_2exp.c, tests/tget_sj.c, tests/tget_str.c, tests/tgmpop.c, tests/thypot.c, tests/tfma.c, tests/tfactorial.c, tests/texceptions.c, tests/texp.c, tests/tcbrt.c, tests/tcmp.c, tests/tcmpabs.c, tests/tconst_euler.c, tests/tconst_log2.c, tests/tconst_pi.c, tests/tdiv.c, tests/tdiv_ui.c, tests/teq.c, tests/tacos.c, tests/tadd.c, tests/tadd1sp.c, tests/tadd_ui.c, tests/tasin.c, tests/tatan.c, tests/tcan_round.c, tests/tabs.c:
casts to allow compilation with g++
* tests/tests.c: added missing cast
* div.c: added missing casts
2005-01-25 Paul Zimmermann <Paul.Zimmermann@loria.fr>
* div.c: fixed bug (overlap in mpn_divrem)
2005-01-24 Vincent Lefevre <Vincent.Lefevre@loria.fr>
* tests/Makefile.in: Removed tests/Makefile.in from CVS.
2005-01-24 Patrick Pelissier <Patrick.Pelissier@loria.fr>
* pow.c: Fix bug reported by Eric Buchlin by using new function
mpfr_pow_z.
* Makefile.am, mpfr.h, pow_z.c, tests/Makefile.am, tests/tpow_z.c:
Add new function mpfr_pow_z and its test file.
* pow_si.c, pow_ui.c, tests/tpow.c: Fix overflows problems.
Clean up overflow handling.
Maybe some bugs remain...
* tests/tests.c: Add an explicit reference to mpfr_dump so that
you can use this function inside the tests with GDB, even if
you don't use it in the tests.
2005-01-24 Paul Zimmermann <Paul.Zimmermann@loria.fr>
* pow.c: added check before mpz_get_si() call
2005-01-24 Vincent Lefevre <Vincent.Lefevre@loria.fr>
* BUGS: Update.
* INSTALL: Corrections on the typography.
* README.dev: Corrected English usage.
* NEWS: Typos.
2005-01-21 Paul Zimmermann <Paul.Zimmermann@loria.fr>
* tests/Makefile.am: added LOADLIBES=...
2005-01-21 Vincent Lefevre <Vincent.Lefevre@loria.fr>
* ChangeLog: Update (2.1 branch).
* strtofr.c, sum.c:
Fixed bug with TMP_MARK (doesn't occur with alloca) (2.1 branch).
[strtofr.c:1.10, sum.c:1.5]
* tests/tests.c, tests/trint.c:
Forgot to include some headers conditionally in tests (2.1 branch).
[tests/tests.c:1.36, tests/trint.c:1.21]
* sum.c: Fixed bug in cases n <= 1 (2.1 branch). [sum.c:1.8-1.9]
* sum.c: Updated Copyright line.
* sub1.c:
Fixed a huge performance problem in corner cases (2.1 branch).
[sub1.c:1.33-1.35]
* mpfr.h: Fixed a clash with ncurses preventing from compiling programs
including term.h then mpfr.h (2.1 branch).
* mpfr-longlong.h:
Updated longlong.h from GMP 4.1.4 (problem with opteron) (2.1 branch).
[mpfr-longlong.h:1.2]
* get_str.c, mpn_exp.c:
Bugs fixed in get_str, in particular for huge exponents (2.1 branch).
[get_str.c:1.83, mpn_exp.c:1.6]
* configure.in: Better way to detect the GMP library (2.1 branch).
2005-01-20 Patrick Pelissier <Patrick.Pelissier@loria.fr>
* sub1.c: Fix again this previous patch!
2005-01-20 Paul Zimmermann <Paul.Zimmermann@loria.fr>
* get_str.c, mpn_exp.c: fixed problems in get_str for huge exponent
2005-01-20 Patrick Pelissier <Patrick.Pelissier@loria.fr>
* mpfr-longlong.h:
Update longlong from GMP 4.1.4 (problem with opteron).
2005-01-18 Patrick Pelissier <Patrick.Pelissier@loria.fr>
* sum.c:
Fix bug in case n==0 or n==1 (Reported and fixed by Laurent Fousse).
2005-01-14 Patrick Pelissier <Patrick.Pelissier@loria.fr>
* sub1.c: Add comments
Fix bug in my patch (Need tests).
* atan.c:
Optimize mpfr_atan_aux by removing all power of 2 in the sum to
reduce the size of the multiplication, normalize the input to extract
as many zeros as possible and add a special case if the input is 1
(after normalisation). But it doesn't optimize too much...
I need to invertigate a few more too understand what is still costly.
It seems that mpz_mul is the most called function.
* tanh.c: Improve and fix tanh for big floats.
* sub1.c:
Fix bug in some corner case (Just hope it doesn't add new bugs).
It should be much faster in these cases too.
* const_pi.c: Remove warning
* TODO: Tiny update
* acos.c: Fix bug (Forget a debug line).
2005-01-13 Patrick Pelissier <Patrick.Pelissier@loria.fr>
* sinh.c: Fix overflow bug
Optimize code
* configure.in:
Fix bug in mpn_sub_nc in case the compiler optimize too much.
2005-01-12 Patrick Pelissier <Patrick.Pelissier@loria.fr>
* mpfr-gmp.c, mpfr-gmp.h, mpfr-impl.h:
Add forgotten 2005 copyright line.
* configure.in, mpfr-gmp.c, mpfr-gmp.h, mpfr-impl.h:
Fix problem of `mpn_sub_nc' which may or may not be defined in libgmp.a
(Add a test in the configure and a new macro MPFR_HAVE_MPN_SUB_NC)
Add MPFR_LOG2_BIT_PER_MP_LIMB macro
* acos.c, atan.c:
Massive optimization of mpfr_atan (20x faster than 2.1.0 at 53 bits!)
Minor optimization of mpfr_acos
2005-01-11 Patrick Pelissier <Patrick.Pelissier@loria.fr>
* mulders.c: Fix typo
* gmp_op.c: Reduce size of code
Optimize a few too.
* acinclude.m4: Forget 2005 !
* acinclude.m4: Improve and fix detection of NAN and GCC bug.
2005-01-04 Patrick Pelissier <Patrick.Pelissier@loria.fr>
* const_pi.c: new version (completely rewritten) by Paul Zimmermann.
* atan.c, tests/tatan.c: Fix forgotten '2005' Line.
* tests/tatan.c, atan.c: Fix wrong inexact value (regression).
FIXME: It seems that adding MPFR_GET_EXP (xp) bits is too much
(since previously it always add 0, but the results were quite
always exact - this bug was only discovered under rare case).
2005-01-04 Paul Zimmermann <Paul.Zimmermann@loria.fr>
* TODO: added item (mpfr_printf)
2005-01-04 Patrick Pelissier <Patrick.Pelissier@loria.fr>
* exp_2.c, mpfr-impl.h:
Optimize mpfr_exp2 by inlining some code, and by avoiding using
mpz_sizeinbase.
* erf.c: Remove unused code.
Remove _MPFR_PROTO for static functions.
Other cosmetic change.
* const_euler.c, const_log2.c, const_pi.c, get_str.c:
Remove _MPFR_PROTO for static functions.
* set_str.c: Remove unused code.
* get_d.c: Optimize mpfr_get_d.
* README.dev: Add a new configuration to check before releasing MPFR.
* sum.c, mpfr.h: Fix problem of tab with ncurses.
* cmp_si.c, get_z_exp.c: Likely some tests
* div.c, mpfr-gmp.c, mpfr-gmp.h:
Fix bug if not gmp-impl.h (mpn_sub_nc is internal).
Move MPFR_SET_EXP after checking the exponent range.
Minor change in the way to return the ternary value.
2005-01-01 Paul Zimmermann <Paul.Zimmermann@loria.fr>
* mpfr.h, sum.c: changed tab[] into *tab (and removed 'tab' in mpfr.h)
2004-12-24 Paul Zimmermann <Paul.Zimmermann@loria.fr>
* div.c: new version (completely rewritten)
* tests/tsqrt.c, sqrt.c: improved coverage (and fixed bug)
2004-12-21 Patrick Pelissier <Patrick.Pelissier@loria.fr>
* tests/tests.c, tests/trint.c:
Fixed errors reported by Nelson H. F. Beebe
(forget to include sys/fpu.h if defined and math.h if std=c99).
2004-12-20 Patrick Pelissier <Patrick.Pelissier@loria.fr>
* exp.c: Fix wrong integer type and a test.
* cos.c: Add some assertion.
* div_ui.c: Unlikely one test.
Fix wrong integer type
* sub.c, sub1.c: Reindent the code.
2004-12-17 Patrick Pelissier <Patrick.Pelissier@loria.fr>
* tan.c, sin_cos.c: Optimize mpfr_tan
* sin.c, sin_cos.c:
Optimize the computing of the sign of sinus if GET_EXP(x) < 0
* cos.c: Optimize mpfr_cos.
From 3363 / 21663.99 / 79727 to 3139 / 18920.58 / 69624 (opteron).
* tests/tset_ld.c: Fix precision used to test long double.
Now it is sizeof(long_double)*CHAR_BIT instead of fixed 113.
* extract.c: FIx wrong integer types
Add an assertion.
* div_ui.c: Likely / Unlikely some code.
* configure.in, get_ld.c, set_d.c, set_ld.c, tests/tset_ld.c:
Fix problem with long double with ICC (Wrong x86 processor flag).
2004-12-16 Patrick Pelissier <Patrick.Pelissier@loria.fr>
* const_pi.c: Fix wrong integer types.
* gamma.c: Fix bug.
* acos.c: Optimize mpfr_acos by choosing a better initial precision.
* asin.c:
Optimize mpfr_asin by improving the choice of the initial precision.
* atan.c: Optimize mpfr_atan.
2004-12-15 Patrick Pelissier <Patrick.Pelissier@loria.fr>
* tests/tinp_str.c, inp_str.c: Fix problem with GCC 4.0 20041212.
* mpfr.h: Remove thread attribut until I found a good way to use it.
* cos.c: Test
* get_str.c, strtofr.c: Add 'const' attribute to table.
* save_expo.c: Remove unused file.
* configure.in:
New way of detecting GMP libraray, which should be more portable.
2004-12-14 Patrick Pelissier <Patrick.Pelissier@loria.fr>
* tests/amd64.asm, tests/x86.asm, tests/tests.c, tests/tset_ld.c, acinclude.m4, mpfr-test.h, tests/Makefile.am:
Remove useless assembly code.
* cmp.c, mpf2mpfr.h, mpfr-impl.h, mpfr.h, set.c:
Add "MPFR_USE_NO_MACRO" user macro: it allows the user to link
directly with MPFR functions rather than using Macros to access
them. It doesn't define MPFR variable inside mpfr.h too.
Fix set.c and cmp.c in consequences.
Fix mpf2mpfr.h to use mpfr_get_default_rounding_mode () if needed.
2004-12-13 Patrick Pelissier <Patrick.Pelissier@loria.fr>
* mulders.c: Improved prototype.
* set_q.c: Fix bug of overflow (I hope).
* set_q.c, TODO, mpfr.texi: Update mpfr_set_q overflow problem.
* generic.c: Fix wrong integer types.
2004-12-10 Patrick Pelissier <Patrick.Pelissier@loria.fr>
* atan.c:
Optimize by increasing with BITS_PER_MP_LIMB instead of log2(prec)
* atan.c: Clean up code (Fix integer types + rewrite some code).
Optimize the code by reducing the number of used variables inside the loop.
* asin.c: Replace mpfr_neg to MPFR_CHANGE_SIGN.
* add1sp.c: Cosmetic changes.
* acos.c: Clean the code.
Avoid mixing integer types.
Fix bug of overflow if Pi is in the range but not Pi/2.
* asin.c:
Clean up the code (Removing useless variables and avoid mixing wrong integer types).
Optimize the code by improving memory allocation scheme and by incrementating by
BITS_PER_MP_LIMB in case of an error instead of MPFR_INT_CEIL_LOG2 (prec).
Fix an overflow bug for X=+/-1 (If PI is inside the exponent range, but not PI/2).
2004-12-09 Patrick Pelissier <Patrick.Pelissier@loria.fr>
* mpfr.h: Simplify MPFR_SIGN by removing unnecessary ( ).
* mpfr.h: Add support for new attribut sentinel in incoming GCC 4.0
* sin_cos.c, sin.c: Optimize initial precision in case of EXP(x) < 0.
* cache.c, mpfr-impl.h, set.c, tests/tset.c, tests/tset_sj.c:
Optimize mpfr_set4.
Inline rounding in mpfr_set4 and mpfr_cache
mpfr_set4 dosn't return MPFR_EVEN_INEX (It was undocumented before).
Fix problems with tests (Avoid mixing MPFR_EVEN_INEX and 1).
Add MPFR_RNDRAW_EVEN for rounding with MPFR_EVEN_INEX inexact support
2004-12-08 Patrick Pelissier <Patrick.Pelissier@loria.fr>
* mpfr-impl.h, mul.c, tests/tsqr.c:
Optimize mpfr_mul by inlining and rewriting the rounding.
It seems that GCC option `-frename-registers` for mpfr_mul / Athlon XP
improves its performance (But it decreases it on Pentium4)...
2004-12-01 Paul Zimmermann <Paul.Zimmermann@loria.fr>
* mulders.c: first try to implement Mulders' algorithm
2004-11-29 Patrick Pelissier <Patrick.Pelissier@loria.fr>
* TODO: Update TODO.
2004-11-29 Paul Zimmermann <Paul.Zimmermann@loria.fr>
* tests/tdiv.c: added new tests for corner cases
* algorithms.bib, algorithms.tex: added algo for pi
2004-11-25 Patrick Pelissier <Patrick.Pelissier@loria.fr>
* tan.c: Change initial term if exp(a)<0.
* sin_cos.c: Simplify the inner loop.
* sin_cos.c: Change initial precision if EXP(op) < 0.
2004-11-23 Patrick Pelissier <Patrick.Pelissier@loria.fr>
* set_z.c: Optimize code and rewrite the rounding part.
FIXME: It seems that the previous rounding code was buggy. Still I am not sure.
* tests/tconst_log2.c, tests/tgmpop.c: Improve tests.
2004-11-19 Patrick Pelissier <Patrick.Pelissier@loria.fr>
* log.c:
Improve the initial value of prec: 10% improvement (?) on average.
* tests/trandom.c: Improve coverage test.
* tests/tui_pow.c, ui_pow_ui.c:
Fix bug for mpfr_ui_pow_ui (Wrong inexact flag).
* tests/tcmp.c, tests/tcmp_ui.c, tests/texceptions.c, tests/tget_z.c, tests/tpow.c, tests/tset.c, tests/tset_sj.c, tests/tsgn.c, tests/tsqr.c, get_z.c, tests/tabs.c, ufloor_log2.c:
Improve coverage tests.
* INSTALL, README.dev, mpfr-impl.h: Fix typos in INSTALL.
Sort README.dev, and add a new section about How to write a MPFR function.
Add a link to README.dev in mpfr-impl.h.
* cos.c: Fix a bug on some compilators:
First MPFR_SAVE_EXPO_DECL, then TMP_DECL.
2004-11-18 Patrick Pelissier <Patrick.Pelissier@loria.fr>
* pow_si.c, tests/tpow.c: Fix an overflow bug.
* set_si_2exp.c, set_ui_2exp.c, tests/tset_si.c:
Fix bug with inexact flag.
FIXME: Maybe still a bug with inexact flag if overflow in mpfr_mul_2exp ?
* Makefile.am, mpfr-impl.h, pow_ui.c:
Remove mpfr_save_emin_emax and mpfr_restore_emin_emax
from MPFR library since they are useless.
* set.c: Forget to remove rndraw.c test.
* acosh.c, add_ui.c, asin.c, asinh.c, atan.c, const_log2.c, const_pi.c, cos.c, cosh.c, exp.c, exp2.c, gamma.c, hypot.c, mpfr-impl.h, pow_si.c, pow_ui.c, rint.c, set.c, set_d.c, set_ld.c, set_q.c, set_si_2exp.c, set_ui_2exp.c, sqrt_ui.c, sub_ui.c, tanh.c, ui_pow.c, ui_pow_ui.c, acos.c:
Replace use of mpfr_save_emin_emax () / mpfr_restore_emin_emax()
by MPFR_SAVE_EXPO macros (DECL, MARK and FREE) which are faster
and thread safe.
2004-11-18 Vincent Lefevre <Vincent.Lefevre@loria.fr>
* mpfr.texi:
Fix (2.1 branch): GMP -> MPFR Copying Conditions (noted by Patrick).
2004-11-18 Patrick Pelissier <Patrick.Pelissier@loria.fr>
* agm.c: Enable fast computing.
2004-11-18 Vincent Lefevre <Vincent.Lefevre@loria.fr>
* mpfr.texi: Fix: GMP -> MPFR Copying Conditions (noted by Patrick).
2004-11-18 Patrick Pelissier <Patrick.Pelissier@loria.fr>
* mpfr-impl.h:
Reorder the file and put sections to make it cleaner and more readable.
* log.c: Reduce number of used variables.
Optimize code and clean it.
2004-11-18 Vincent Lefevre <Vincent.Lefevre@loria.fr>
* mpfr.texi:
In HTML, suppress the non-existing link to GMP (2.1 branch).
* mpfr.texi: In HTML, suppress the non-existing link to GMP.
2004-11-18 Patrick Pelissier <Patrick.Pelissier@loria.fr>
* init2.c, mpfr-impl.h:
Add a prototype of own TMP_ALLOC. Don't know if it is a good idea.
To enable it, just build MPFR with MPFR_USE_OWN_TMP_ALLOC.
2004-11-17 Patrick Pelissier <Patrick.Pelissier@loria.fr>
* strtofr.c, sum.c, sqrt.c: Fix bug with TMP_MARK.
2004-11-16 Patrick Pelissier <Patrick.Pelissier@loria.fr>
* pow_ui.c: Optimize the code:
+ Special case for n == 2
+ The first squaring is done using the original input.
* init2.c: Add new assertion to check.
* cmp2.c: Likely / Unlikely some tests.
2004-11-15 Patrick Pelissier <Patrick.Pelissier@loria.fr>
* agm.c: Add unused code (Still needs a proof).
* set_prec.c, set_rnd.c, set_ui.c, get_exp.c, mpfr.h, set_dfl_prec.c:
Add macro version for small functions:
mpfr_get_prec, mpfr_get_exp, mpfr_get_default_rounding_mode,
mpfr_get_default_prec and mpfr_set_ui
* atan.c: Refix another bug (The same).
* atan.c:
Fix a bug (Use __gmpfr_ceil_log2 instead of MPFR_INT_CEIL_LOG2).
2004-11-12 Paul Zimmermann <Paul.Zimmermann@loria.fr>
* algorithms.tex: added algorithm for mpfr_sqrt
improved algorithm for mpfr_div
* sqrt.c: use MPFR_SET_EXP/MPFR_GET_EXP instead of MPFR_EXP(r)++
2004-11-12 Vincent Lefevre <Vincent.Lefevre@loria.fr>
* sqrt.c:
Bug fix: delayed all the initializations after the singular test.
2004-11-11 Vincent Lefevre <Vincent.Lefevre@loria.fr>
* sqrt.c: Untabified the source.
* sqrt.c:
The test MPFR_GET_EXP(u) != MPFR_EMAX_MAX is no longer necessary
since we decided to lower MPFR_EMAX_MAX to avoid such tests.
2004-11-10 Patrick Pelissier <Patrick.Pelissier@loria.fr>
* mpfr-impl.h, sqrt.c:
Remove use of CNST_LIMB and TMP_ALLOC_LIMB which are GMP internal.
Add MPFR_LIMB_ZERO.
2004-11-10 Paul Zimmermann <Paul.Zimmermann@loria.fr>
* sqrt.c, tests/tsqrt.c: new simpler and faster code
2004-11-10 Patrick Pelissier <Patrick.Pelissier@loria.fr>
* pow.c, pow_si.c, sin.c, sin_cos.c, sinh.c, sum.c, tan.c, tanh.c, acos.c, acosh.c, asin.c, asinh.c, atan.c, atanh.c, const_euler.c, const_log2.c, const_pi.c, cosh.c, erf.c, exp2.c, exp3.c, expm1.c, factorial.c, gamma.c, get_str.c, hypot.c, log10.c, log1p.c, log2.c:
Replace __gmpfr_ceil_log2 by MPFR_INT_CEIL_LOG2 when possible.
* mpfr-impl.h: Add __extension__ to avoid warning useless in GCC.
2004-11-03 Vincent Lefevre <Vincent.Lefevre@loria.fr>
* README: Update.
* ChangeLog: Update (2.1 branch).
* mpfr.texi: Updated month: October -> November (2.1 branch).
* configure.in:
[2.1 branch] Modified an error message, since the code checking for
GMP library hadn't been modified in the branch.
2004-11-03 Patrick Pelissier <Patrick.Pelissier@loria.fr>
* mpfr-impl.h: Fix wrong Visual C++ code.
2004-11-02 Vincent Lefevre <Vincent.Lefevre@loria.fr>
* acinclude.m4, configure.in:
Code checking for GMP library wasn't working (always returning "yes"?).
2004-10-27 Vincent Lefevre <Vincent.Lefevre@loria.fr>
* acinclude.m4: Updated copyright line (2.1 branch).
* acinclude.m4: Updated copyright line.
* BUGS: Added a bug and updated copyright line (2.1 branch).
* BUGS: Added a bug and updated copyright line.
* tests/tsub1sp.c, tests/ttanh.c, tests/texp.c, tests/texp2.c, tests/tgamma.c, tests/tlog.c, tests/tmul.c, tests/tmul_ui.c, tests/trandom.c, tests/trint.c, tests/tround_prec.c, tests/tset.c, tests/tset_exp.c, tests/tset_ld.c, tests/tset_si.c, tests/tset_str.c, tests/tset_z.c, tests/tatan.c, tests/tcos.c, tests/tcosh.c, tests/tdiv.c, tests/tests.c, tests/texceptions.c, set_d.c, tests/mpf_compat.h, tests/tacos.c, tests/tadd1sp.c, tests/tasin.c, acinclude.m4, mpfr-impl.h, mpfr-test.h, ChangeLog:
Ported the latest modifications to the 2.1 branch.
* ChangeLog: Update.
* mpfr-impl.h, set_d.c:
Removed the definitions of DBL_POS_INF/DBL_NEG_INF/DBL_NAN for
Visual C++ as they were incorrect. Modified DOUBLE_ISINF(x) so
that infinities are no longer used (this should fix a part of
the problem for Visual C++). If IEEE 754 is not supported, one
should probably use the standard INFINITY macro instead of
(1.0/0.0), since (1.0/0.0) is specific to IEEE 754.
* acinclude.m4, tests/tests.c:
Applied patch by Steve M. Robbins for non-IRIX MIPS systems
(originally for MPFR 2.0.3).
2004-10-26 Vincent Lefevre <Vincent.Lefevre@loria.fr>
* tests/tadd1sp.c, tests/tsub1sp.c: Reformatted the code.
* tests/tsub1sp.c, tests/ttanh.c, tests/tset_ld.c, tests/tset_si.c, tests/tset_str.c, tests/tset_z.c, tests/tround_prec.c, tests/tset.c, tests/tset_exp.c, tests/trint.c, tests/trandom.c, tests/tlog.c, tests/tmul.c, tests/tmul_ui.c, tests/texp2.c, tests/tgamma.c, tests/tcosh.c, tests/tdiv.c, tests/tests.c, tests/texceptions.c, tests/texp.c, tests/tcos.c, tests/tacos.c, tests/tadd1sp.c, tests/tasin.c, tests/tatan.c, mpfr-test.h:
Replaced mpfr_set_emin/emax by set_emin/emax in tests to check
the return value; defined set_emin/emax in "tests/tests.c".
Fix: added missing #include <string.h> in "tests/tests.c".
Removed variable names in prototypes in "mpfr-test.h".
2004-10-22 Vincent Lefevre <Vincent.Lefevre@loria.fr>
* tests/mpf_compat.h: Reformatted the code -> GNU style.
* tests/tinp_str.c, tests/tout_str.c, tests/tset_str.c, tests/tstrtofr.c, mul.c, set_str.c, strtofr.c, tests/mpf_compat.h, tests/tests.c, mpfr-impl.h, mpfr-test.h, mpfr.h, mpfr.texi, INSTALL, NEWS, README, README.dev, configure.in, AUTHORS, BUGS, ChangeLog:
Ported the latest modifications to the 2.1 branch.
* ChangeLog: Update.
2004-10-22 Patrick Pelissier <Patrick.Pelissier@loria.fr>
* tests/tests.c:
Declaration of "tests_rand_start" and "tests_rand_end" with the same storage class specifier
in tests.c (static missing line 65 and 109).
2004-10-21 Vincent Lefevre <Vincent.Lefevre@loria.fr>
* strtofr.c:
Bug fixed: cast to unsigned char instead of int for isspace (no,
these are not "psycho" systems, just systems with signed chars).
Untabified the source.
2004-10-20 Patrick Pelissier <Patrick.Pelissier@loria.fr>
* configure.in: Improve ICC CFLAGS by removins meaningless warnings.
* strtofr.c: Remove some warnings on some "psycho" systems.
* README.dev: Update the chapter "Make a release".
* mpfr-test.h, tests/mpf_compat.h, tests/tests.c, tests/tinp_str.c:
Fix bug when you build MPFR outside source directory.
Add function src_fopen to open a file in the source directory, which
may be different from the current directory.
* INSTALL: Fix a typo.
2004-10-19 Vincent Lefevre <Vincent.Lefevre@loria.fr>
* mpfr.texi: Another correction (English).
* mpfr.texi: Minor correction.
2004-10-19 Patrick Pelissier <Patrick.Pelissier@loria.fr>
* NEWS: Update NEWS to reflect the change in mpfr_set_str.
* mpfr.texi, set_str.c, tests/tset_str.c:
Update mpfr_set_str to be much more like strtofr.
Update the documentation to reflect the changes.
2004-10-19 Paul Zimmermann <Paul.Zimmermann@loria.fr>
* mpfr.texi: changed contributors section
2004-10-19 Patrick Pelissier <Patrick.Pelissier@loria.fr>
* NEWS: Add a line about binary compatibility.
2004-10-19 Paul Zimmermann <Paul.Zimmermann@loria.fr>
* mpfr.texi: changed "contributors" section
* mul.c: changed rights (remove executable permission)
2004-10-18 Vincent Lefevre <Vincent.Lefevre@loria.fr>
* mpfr.texi: Misc corrections:
+ spelling mistakes
+ consistency: in direction @var{rnd} -> in the direction @var{rnd}
+ @code{NULL} pointer -> null pointer (as in the C standard)
+ in the example for mpfr_inits2 / mpfr_clears: NULL -> (void *) 0
as NULL isn't necessarily a pointer.
2004-10-18 Patrick Pelissier <Patrick.Pelissier@loria.fr>
* BUGS, README: Update
* tests/tstrtofr.c, set_str.c, strtofr.c, tests/tset_str.c, mpfr.h, mpfr.texi:
Change "unsigned int" to "int" for base in proto of strtofr.
Change set_str to use strtofr (Fix a bug too).
Limit base to 36 in strtofr (since get_str is limited to 36).
Update documentation to reflect the changes.
mpfr_get_d1 is moved to section internal in the documentation.
Update the tests.
* mpfr-impl.h: Hard code NAN, +INF and -INF values for MVC.
* tests/mpf_compat.h, tests/tout_str.c:
Fix problem on systems where "/dev/null" doesn't exist.
2004-10-16 Vincent Lefevre <Vincent.Lefevre@loria.fr>
* AUTHORS, mpfr.texi: Misc corrections.
2004-10-15 Vincent Lefevre <Vincent.Lefevre@loria.fr>
* README.dev: Updated the section "To make a release".
* VERSION, mpfr.h, mpfr.texi, version.c:
Updated the version on the trunk.
* ChangeLog: Update.
* NEWS: Update for 2.1.0.
2004-10-13 Vincent Lefevre <Vincent.Lefevre@loria.fr>
* README.dev:
Added a comment about autoreconf and a bug in Debian (now fixed).
2004-10-12 Patrick Pelissier <Patrick.Pelissier@loria.fr>
* INSTALL: Add a note about Windows 64.
2004-10-11 Patrick Pelissier <Patrick.Pelissier@loria.fr>
* mpfr.texi: Update documentation.
* INSTALL: Improve Windows installation.
* README.dev: Add a line about "near" and "far".
2004-10-07 Patrick Pelissier <Patrick.Pelissier@loria.fr>
* acinclude.m4, configure.in, tests/tget_str.c:
Add support for ".lib" since it seems to work.
Display GMP version inside the configure.
2004-10-05 Paul Zimmermann <Paul.Zimmermann@loria.fr>
* tests/tget_str.c: added one new test
2004-10-04 Vincent Lefevre <Vincent.Lefevre@loria.fr>
* tests/tget_str.c: Added worst cases.
2004-10-02 Paul Zimmermann <Paul.Zimmermann@loria.fr>
* tests/tset_str.c: added new tests (worst-case)
2004-10-01 Paul Zimmermann <Paul.Zimmermann@loria.fr>
* tests/tget_str.c: added new worst-cases (directed rounding)
* TODO: added new function to implement (dilog)
2004-09-30 Paul Zimmermann <Paul.Zimmermann@loria.fr>
* get_str.c: fixed bug in get_str_aux when one extra digit
2004-09-30 Vincent Lefevre <Vincent.Lefevre@loria.fr>
* mpfr.h, mpfr.texi, rint.c, tests/trint.c:
Added functions mpfr_rint_round, mpfr_rint_trunc, mpfr_rint_ceil,
mpfr_rint_floor.
2004-09-30 Patrick Pelissier <Patrick.Pelissier@loria.fr>
* tests/tget_str.c: Add new test (One failed).
2004-09-30 Vincent Lefevre <Vincent.Lefevre@loria.fr>
* get_sj.c:
The cast to uintmax_t wasn't really useful, so I removed it.
Added a comment.
* get_sj.c: The real fix for sizeof(intmax_t) == sizeof(mp_limb_t).
2004-09-30 Patrick Pelissier <Patrick.Pelissier@loria.fr>
* get_sj.c: Fix a bug if sizeof(intmax_t) == sizeof(mp_limb_t)
2004-09-29 Paul Zimmermann <Paul.Zimmermann@loria.fr>
* tests/tget_str.c: added worst-case
2004-09-29 Patrick Pelissier <Patrick.Pelissier@loria.fr>
* TODO, cmp.c, cmp_abs.c, cmp_d.c, cmp_si.c, cmp_ui.c, mpfr.texi, tests/tcmp.c, tests/tcmp_d.c, tests/tcmp_ld.c, tests/tcmp_ui.c, tests/tcmpabs.c:
cmp(x,y) if x=NAN or y=NAN returns 0 and erange flag.
* NEWS, mpfr.texi:
Update documentation and NEWS to reflect new functions
and functionnality.
* get_z.c, strtofr.c: Improve assertion.
* tests/tset_si.c, exceptions.c, get_si.c, get_sj.c, get_ui.c, get_uj.c, mpfr-impl.h, set_sj.c, set_uj.c, tests/texceptions.c, tests/tget_sj.c, tests/tset_sj.c:
Add mpfr_clear_erangeflag and mpfr_erangeflag_p.
Add test for theses two functions.
mpfr_get_[s/u][i/j] have a deterministic behavior in case of OVERFLOW.
(Return the MINIMUM or the MAXIMUM in the current type, and set
ERANGE_flag).
* Makefile.am, fits_intmax.c, fits_uintmax.c, mpfr.h, tests/tfits.c:
Add mpfr_uintmax_p and mpfr_intmax_p.
* TODO, INSTALL: Update INSTALL about C++
Update TODO and VERSION.
* mpfr-impl.h, mpfr.texi, mpfr.h:
Move mpfr_inits from mpfr-impl to mpfr.h.
Add doc too.
2004-09-28 Patrick Pelissier <Patrick.Pelissier@loria.fr>
* get_sj.c, get_uj.c: Reindent the sources (again).
* mpn_exp.c:
Fix how to detect overflow so that it can be build with GCC -ftrapv
option without any bugs (In the previous code, the overflow was
detected afterwards, whereas, now, it is detected before).
Fix also another real problem of overflow (Addition of two signed integers).
* div.c: Rename this variable again.
* div.c:
Replace variable 'near' to 'the_real_near' since MSVC incorreclty
recognize "far" and "near" as obsolete keywords (100% incorrect, and
clearly MSVC fault but it doesn't cost many things to change the name).
2004-09-27 Patrick Pelissier <Patrick.Pelissier@loria.fr>
* mpfr.texi: Fix typo in the documentation about get_ functions.
* get_sj.c, get_uj.c: Retab the sources.
2004-09-27 Vincent Lefevre <Vincent.Lefevre@loria.fr>
* NEWS:
Added mpfr_get_uj and mpfr_get_sj in the changes 2.0.3 -> 2.1.0.
* TODO: Added an item about the future MPFR_FLAGS_ERANGE flag.
* Makefile.am, get_sj.c, get_uj.c, mpfr.h, mpfr.texi, tests/Makefile.am, tests/tget_sj.c:
New functions mpfr_get_sj and mpfr_get_uj, with tests.
2004-09-27 Patrick Pelissier <Patrick.Pelissier@loria.fr>
* set_sj.c: Remove MPFR_NEED_LONGLONG_H macro.
2004-09-26 Vincent Lefevre <Vincent.Lefevre@loria.fr>
* set_sj.c: Added a cast to avoid an integer overflow.
2004-09-24 Vincent Lefevre <Vincent.Lefevre@loria.fr>
* get_si.c: Fixed integer overflow.
* get_si.c: Fixed bugs (like those in mpfr_get_ui).
* README.dev:
The standard autoreconf script should now be used instead of prepare.
2004-09-24 Paul Zimmermann <Paul.Zimmermann@loria.fr>
* get_ui.c: forgot to check for 0
* get_ui.c: now use mpfr_rint()
2004-09-24 Patrick Pelissier <Patrick.Pelissier@loria.fr>
* mpfr.texi: Update doc of mpfr_get_str (Minimum space is 7).
2004-09-24 Paul Zimmermann <Paul.Zimmermann@loria.fr>
* get_ui.c, tests/tset_si.c: fixed double-rounding bug in get_ui
2004-09-23 Patrick Pelissier <Patrick.Pelissier@loria.fr>
* mpf2mpfr.h: Prevent from multiple inclusion.
mpf_init inits to 0 rather than NAN.
* mpfr.h: Fix some tiny problems.
2004-09-23 Paul Zimmermann <Paul.Zimmermann@loria.fr>
* TODO: added item on rounding to odd
2004-09-21 Patrick Pelissier <Patrick.Pelissier@loria.fr>
* strtofr.c: Fix a bug in FreeBsd 5.20 / Alpha / Gcc 3.3.3.
Nor a MPFR bug, but add some code to avoid it.
* strtofr.c, tests/tstrtofr.c: Add a new test and clarify a comment.
* strtofr.c: Update Assertion for pow2.
2004-09-20 Patrick Pelissier <Patrick.Pelissier@loria.fr>
* NEWS: Update NEWS.
* TODO: Update TODO due to new function mpfr_strtofr
* configure.in, get_d.c, mpfr-impl.h, mpfr.h, set_d.c, strtofr.c, tests/memory.c, tests/tdiv.c, tests/tests.c, tests/tget_str.c, tests/trint.c, tests/tset_d.c, tests/tset_q.c, tests/tset_str.c, tests/tstrtofr.c:
Add ICC detection && support.
Remove some potential warnings in the test files.
* Makefile.am, mpfr.texi, strtofr.c, tests/Makefile.am, tests/tstrtofr.c:
Add mpfr_strtofr function.
Add mpfr_strtofr test file.
Add mpfr_strtofr documentation.
* configure.in: Improve GMP.h vs libgmp.a version checking.
2004-09-17 Paul Zimmermann <Paul.Zimmermann@loria.fr>
* TODO: added one entry (new function 1/sqrt(x))
2004-09-17 Patrick Pelissier <Patrick.Pelissier@loria.fr>
* acinclude.m4, configure.in, tests/Makefile.am:
Use LIBS instead of LDADD for libraries (GMP).
* configure.in: Min GMP version is 4.1.0 now.
2004-09-16 Patrick Pelissier <Patrick.Pelissier@loria.fr>
* configure.in:
Add a check if both gmp.h and libgmp.a have the same version.
* mpfr-impl.h: Fix a typo.
2004-09-15 Patrick Pelissier <Patrick.Pelissier@loria.fr>
* tests/tset_str.c: Add a forgotten regression test "1.2.3"
2004-09-15 Vincent Lefevre <Vincent.Lefevre@loria.fr>
* config.sub, config.guess:
Update from the autotools-dev Debian package.
* ChangeLog: Update.
2004-09-14 Patrick Pelissier <Patrick.Pelissier@loria.fr>
* mpfr-impl.h: Add 2 new macros for handling correctly overflow.
2004-09-13 Paul Zimmermann <Paul.Zimmermann@loria.fr>
* set_str.c: fixed bug (several '.' allowed in mantissa)
2004-09-03 Paul Zimmermann <Paul.Zimmermann@loria.fr>
* INSTALL: added notes for Windows
2004-09-02 Patrick Pelissier <Patrick.Pelissier@loria.fr>
* TODO: Add a line about Dynamic Version of MPFR.
2004-09-01 Paul Zimmermann <Paul.Zimmermann@loria.fr>
* mpfr.texi: added warnings about init functions (mpf wrt mpfr)
2004-08-31 Patrick Pelissier <Patrick.Pelissier@loria.fr>
* mpfr.texi: Update documentations.
* tests/tget_z.c, get_z.c, mpfr.h: Rename mpz_set_fr to mpfr_get_z.
Provide a conditionnal macro for mpz_set_fr.
* mpfr.texi: Add doc for mpfr_sqr.
* mpfr.texi: Fix month.
2004-08-26 Patrick Pelissier <Patrick.Pelissier@loria.fr>
* tests/texp.c: Add a new test to check overflow.
2004-08-24 Patrick Pelissier <Patrick.Pelissier@loria.fr>
* exp_2.c:
Try to retype correctly the functions (replace int by the correct type).
Still some works to do.
2004-08-23 Patrick Pelissier <Patrick.Pelissier@loria.fr>
* mpfr-impl.h: Add description of what does MPFR_INT_CEIL_LOG2.
* Makefile.am, exp_2.c, isqrt.c:
Move __gmpfr_isqrt and __gmpfr_cuberoot to another file.
Clean up the code of mpfr_exp_2: remove DEBUG condition to use TRACE, ASSERT and DUMP.
Use MPFR_INT_CEIL_LOG2 instead of __gmpfr_ceil_log2.
* mpfr-impl.h: Improve a comment.
* int_ceil_log2.c, mpfr-impl.h, Makefile.am:
Add MPFR_INT_CEIL_LOG2 macro and __gmpfr_int_ceil_log2 function
(don't use function but macro).
* set_str.c: Fix 2 typos.
2004-08-19 Patrick Pelissier <Patrick.Pelissier@loria.fr>
* tests/tpow.c:
Fix a bug on 64-bits introduced due to huger MPFR_EMAX_MAX.
* exceptions.c, mpfr-impl.h, mpfr.h, mpfr.texi:
Add new functions: mpfr_get_emin_min, mpfr_get_emax_max, mpfr_get_emin_max and
mpfr_get_emax_min.
Add documentation and explanation about potential portability problem when
you mpfr_set_emin and mpfr_set_emax.
2004-07-28 Vincent Lefevre <Vincent.Lefevre@loria.fr>
* Makefile.am:
Added mpfr-longlong.h to libmpfr_a_SOURCES so that it is distributed
with make dist.
* Makefile.am:
Added mpfr-gmp.h to libmpfr_a_SOURCES so that it is distributed
with make dist.
2004-07-26 Patrick Pelissier <Patrick.Pelissier@loria.fr>
* README.dev: Add a new section.
2004-07-20 Patrick Pelissier <Patrick.Pelissier@loria.fr>
* Makefile.am, mpfr.h, sqr.c, tests/Makefile.am, tests/tsqr.c:
Add function mpfr_sqr (TODO: Make doc)
2004-07-19 Patrick Pelissier <Patrick.Pelissier@loria.fr>
* zeta.c: Fix an unsigned/signed comparison.
* mpfr-gmp.h: Improve the emulation of mpn_sqr_n and fix some typos.
2004-07-16 Patrick Pelissier <Patrick.Pelissier@loria.fr>
* mpfr-impl.h, mpfr.h: Remove unused item "rnd_mode" in cache struct.
* mpfr.texi, tests/tversion.c, version.c, mpfr.h:
Renamme mpfr_version to mpfr_get_version to be more GMP compatible.
Add macro mpfr_version.
* round_raw_generic.c, cmp_ui.c: Likely some tests.
2004-07-15 Patrick Pelissier <Patrick.Pelissier@loria.fr>
* set_si.c, mpfr.h: Add a speciliation for set_si for GCC.
2004-07-09 Patrick Pelissier <Patrick.Pelissier@loria.fr>
* agm.c: Try to optimize a few agm by rewriting a few the loop.
* sqrt.c: Likely / Unlikely some tests using gcov.
2004-07-06 Patrick Pelissier <Patrick.Pelissier@loria.fr>
* mpfr-impl.h: Remove some unused code.
Add MPFR_LMIB_PER_DOUBLE
Add MPFR_DUMP
Add MPFR_TRACE
* set_d.c: Likely some tests.
* get_d.c: Used static precision for the array of limb for double.
* mul_ui.c: Likely some tests / Other minor optimisations.
* ui_div.c: Minor modifications.
* div_2si.c, div_2ui.c:
Unlikely a test so that it is faster when you call theses functions
with the same dest and source which is the common case in MPFR.
* mul_2si.c, mul_2ui.c:
Likely a test to optimize when dest and src are the same
(which is very likely inside MPFR).
* cache.c: Likely a test (since cache should always work fine).
2004-06-28 Patrick Pelissier <Patrick.Pelissier@loria.fr>
* exp_2.c, get_d.c:
Add some likely, and use a static table instead of a dynamic one.
2004-06-16 Patrick Pelissier <Patrick.Pelissier@loria.fr>
* asin.c, atan.c: Unlikely some tests.
2004-06-10 Patrick Pelissier <Patrick.Pelissier@loria.fr>
* set_z.c: Likely / Unlikely the code.
* mpfr-impl.h: Respace some macro.
* save_expo.c: Retab some lines.
* get_z.c: Optimize a bit.
* sin.c, tests/tsin.c: Fix an overflow bug.
2004-06-08 Paul Zimmermann <Paul.Zimmermann@loria.fr>
* exp3.c, tests/texp.c: fixed bug in mpfr_exp_3 (wrong assert)
2004-05-27 Patrick Pelissier <Patrick.Pelissier@loria.fr>
* mpfr.h: Fix typos.
* mpfr.texi: Update doc.
2004-05-18 Paul Zimmermann <Paul.Zimmermann@loria.fr>
* cos.c:
fixed problem for x near from Pi/2 (the internal precision should take
into account the cancellation)
2004-05-18 Patrick Pelissier <Patrick.Pelissier@loria.fr>
* sin.c, tests/tsin.c: Improve tests for sin.
2004-05-18 Paul Zimmermann <Paul.Zimmermann@loria.fr>
* sin.c: mpfr_sin_sign() should use at least MPFR_GET_EXP() bits
2004-05-17 Patrick Pelissier <Patrick.Pelissier@loria.fr>
* TODO: Remove an item.
2004-05-12 Patrick Pelissier <Patrick.Pelissier@loria.fr>
* tests/tcos.c, tests/ttan.c: Add a potential test (Too slow).
* tan.c: Simplify the code.
2004-05-11 Patrick Pelissier <Patrick.Pelissier@loria.fr>
* cos.c: Remove a C++ comment.
2004-05-10 Patrick Pelissier <Patrick.Pelissier@loria.fr>
* cos.c: Remove a forgotten "assertd" which isn't useful anymore.
2004-05-07 Patrick Pelissier <Patrick.Pelissier@loria.fr>
* cos.c, mpfr-impl.h: Optimize cos.
2004-05-07 Paul Zimmermann <Paul.Zimmermann@loria.fr>
* cos.c:
improved initial value of working precision (did not take into account
2K lost bits for large arguments)
2004-05-06 Patrick Pelissier <Patrick.Pelissier@loria.fr>
* acos.c, asin.c, atan.c, exp2.c, tests/tacos.c, tests/tasin.c, tests/tatan.c, tests/texp2.c, tests/ttanh.c:
Fix overflow and add corresponding tests.
* gamma.c: Fix a bug in a formula.
* exp2.c: Optimize it a bit.
* exp.c, exp_2.c, gamma.c, tests/texp.c, tests/tgamma.c:
Fix overflow problems.
* gamma.c, tests/tcosh.c: Fix overflow bug.
2004-05-05 Patrick Pelissier <Patrick.Pelissier@loria.fr>
* gamma.c: Remove the double vars. (Use fixed instead).
* TODO: Add a note about tanh.
* tanh.c, tests/ttanh.c: Fix a bug in cas of overflow in tanh.
* tanh.c: Optimize a few by reducing the # of used vars.
* tests/tcosh.c, cosh.c:
Fix critical bugs due to different kind of overflow in cosh.
* mpfr-impl.h: Add MPFR_TMP_INIT_ABS macro.
* const_pi.c, cosh.c:
Optimize cosh a few by removing an unused intermedary var.
* const_log2.c: Fix a critical bug in case of overflow.
2004-05-04 Patrick Pelissier <Patrick.Pelissier@loria.fr>
* cos.c, tests/tcos.c, tests/tlog.c:
Fix a critical bug in cos in case you have set the float range for the exponents.
* cos.c: Optimize a few cos.
* log.c: Optimize the way of computing initial precision.
* tests/tlog.c:
Add a test to check an overflow in const_pi (called by log in case of emulation of the float type).
* const_pi.c: Move to ASSERT mode some code.
* const_pi.c:
Push/Pop emin/emax so that an overflow can't occur in mpfr_set_z(x,pi,r)
Add test too.
* mul_2ui.c: Add some UNLIKELY to the while.
* exp.c: Add some UNLIKELY to the tests.
* add1sp.c, tests/tadd1sp.c: Fix an overflow bug in add1sp.
2004-04-30 Vincent Lefevre <Vincent.Lefevre@loria.fr>
* gmp_op.c, tests/tgmpop.c:
Ported bug fix / test in case a mpz_t == 0 (mpz_sizeinbase(0Z,2)==0
and MPFR_PREC_MIN=2) to the 2.0 branch (fixed on 2004-04-07 in the
trunk).
2004-04-29 Patrick Pelissier <Patrick.Pelissier@loria.fr>
* acinclude.m4: Fix a typo in AC_MY_LIBS.
2004-04-28 Patrick Pelissier <Patrick.Pelissier@loria.fr>
* cmp.c, mpfr.h: Add mpfr_cmp as a real function, not only a macro.
* mpfr.h, set.c: Add mpfr_set and mpfr_abs as real functions.
2004-04-27 Patrick Pelissier <Patrick.Pelissier@loria.fr>
* mpfr.h: When using GCC, optimize certain common comparisons.
2004-04-27 Paul Zimmermann <Paul.Zimmermann@loria.fr>
* TODO: added one item
2004-04-27 Patrick Pelissier <Patrick.Pelissier@loria.fr>
* agm.c: Minor Optimizations.
* cache.c: Fix a bug (Use nextbeloz instead of sub_one_ulp).
2004-04-21 Patrick Pelissier <Patrick.Pelissier@loria.fr>
* configure.in, mpfr-impl.h: Add option in configure: --disable-cache
to disable the use of the cache for the const.
* mpfr.texi: Fix a typo.
* tests/tconst_log2.c, tests/tconst_pi.c, cache.c, const_euler.c, const_log2.c, const_pi.c, free_cache.c, mpfr-impl.h, mpfr.h, Makefile.am:
Add preliminary generic code to handle cached const.
Move const_pi, const_log2 to use this generic cache,
which fix bugs of the previous implementation.
const_euler is now cached too.
* round_prec.c:
Fix a bug (If x = Nan, the new new precision wasn't set).
* cputime.h: Fix a typo bug.
2004-04-20 Patrick Pelissier <Patrick.Pelissier@loria.fr>
* tests/tconst_log2.c: Add new test about the cache: new bug to fix.
* iszero.c: Add forgotten file for mpfr_zero_p.
* sgn.c, tests/tisnan.c, tests/tsgn.c, Makefile.am, isinf.c, isnan.c, mpfr.h, mpfr.texi:
Add mpfr_zero_p.
Add macros for mpfr_inf_p, mpfr_nan_p and mpfr_zero_p.
Add macro for mpfr_sgn.
Update doc.
Add new tests.
* mpfr-gmp.h: Fix a bug in a proto.
* tests/tagm.c, agm.c:
Fix a bug when both op are < 0 (It seems it was my fault).
Add a test to check it.
2004-04-09 Patrick Pelissier <Patrick.Pelissier@loria.fr>
* mpfr-gmp.c: Fix a bug (Remove useless function).
2004-04-08 Patrick Pelissier <Patrick.Pelissier@loria.fr>
* mpfr-gmp.h: Fix another bug (Maybe the last?).
* mpfr-gmp.h: Fix a tiny bug.
* mpfr-gmp.c, mpfr-gmp.h, mpfr-test.h, tests/reuse.c, tests/tests.c, tests/trandom.c, tests/tset_f.c:
Update memory allocations scheme without gmp-impl.h.
Now the semantic of the memory allocation scheme is the same
with and without gmp-impl, as it should be.
2004-04-07 Patrick Pelissier <Patrick.Pelissier@loria.fr>
* gmp_op.c, mpfr.texi, sub_ui.c, tests/tgmpop.c, ui_sub.c, add_ui.c:
For add/sub_type functions where type is a type without signed zeros,
specify the expected result when both operands are 0.
* init2.c, mpfr-gmp.c, mpfr-gmp.h, mpfr-impl.h, mpfr.h:
Modify a few the allocation scheme without gmp-impl.h
Add pseudo-constants __MPFR_EXP_NAN, __MPFR_EXP_ZERO and __MPFR_EXP_INF
for future (?) inlining of some functions.
2004-04-07 Paul Zimmermann <Paul.Zimmermann@loria.fr>
* mpn_exp.c, set_str.c, tests/tset_str.c:
fixed problem when overflow in destination exponent happens
2004-04-07 Patrick Pelissier <Patrick.Pelissier@loria.fr>
* gmp_op.c, tests/tgmpop.c:
Fix a bug in case a mpz_t == 0 (mpz_sizeinbase(0Z,2)==0 and MPFR_PREC_MIN=2).
* pow_si.c, tests/tpow.c: Fix a bug in case of pow(2E1000000,-10);
2004-04-05 Paul Zimmermann <Paul.Zimmermann@loria.fr>
* tests/tui_sub.c: fixed problem (cmpabs doesn't work for x=0)
2004-03-26 Patrick Pelissier <Patrick.Pelissier@loria.fr>
* random2.c, round_prec.c, set_d.c, set_z.c, sqrt.c, sub1.c, sub_one_ulp.c, tests/tcheck.c, tests/trandom.c, urandomb.c, add1.c, add_one_ulp.c, check.c, cmp2.c, div_ui.c, exp.c, next.c:
Change from MP_LIMB_T_ONE to MPFR_LIMB_ONE and/or MPFR_LIMB_MASK.
* init2.c: Improve comments.
* gmp_op.c, tests/tgmpop.c: Fix a bug.
* mpfr-impl.h, mpfr.h:
Move detecting macros (__MPFR_GCC, __MPFR_STDC, __MPFR_GLIBC and __MPFR_GMP) from mpfr to mpfr-impl
2004-03-22 Paul Zimmermann <Paul.Zimmermann@loria.fr>
* zeta.c: removed blank
2004-03-22 Vincent Lefevre <Vincent.Lefevre@loria.fr>
* gmp_op.c: Test write access to CVS.
2004-03-18 Patrick Pelissier <Patrick.Pelissier@loria.fr>
* mpfr-gmp.c: Fix a bug in a string.
2004-03-17 Patrick Pelissier <Patrick.Pelissier@loria.fr>
* mpfr.texi: Add documentation of 'j' functions.
* mpfr.h: Fix (?) definition of MPFR_PREC_MAX.
* tests/Makefile.am: Change the order of the tests.
* exp.c, exp3.c, mpfr-impl.h, tests/texp.c:
Rename mpfr_exp3 in mpfr_exp_3.
Update THRESHOLD for mpfr_exp.
Add MPFR_EXP_THRESHOLD.
2004-03-16 Patrick Pelissier <Patrick.Pelissier@loria.fr>
* configure.in: Add new option "--with-gmp-build="
* INSTALL: Update INSTALL
* mpfr.h: Fix a bug (Forget to cast to mp_exp_t).
* swap.c: Update comment
* Makefile.am, get_z.c, mpfr.h, tests/Makefile.am, tests/tget_z.c:
Add mpz_set_fr function and its test.
2004-03-15 Patrick Pelissier <Patrick.Pelissier@loria.fr>
* Makefile.am, mpfr.h, set_sj.c, set_uj.c, tests/Makefile.am, tests/tset_sj.c:
Add new functions:
mpfr_set_sj_2exp, mpfr_set_sj
mpfr_set_uj_2exp, mpfr_set_uj
* README.dev, sub1sp.c: Fix a compiler bug (limb !=0 instead of limb).
* print_raw.c:
Fix a cast problem on some systems (sizeof(mp_limb_t) > sizeof(unsigned long)).
2004-03-12 Patrick Pelissier <Patrick.Pelissier@loria.fr>
* tests/tadd1sp.c, tests/tcheck.c, tests/tget_d_2exp.c, tests/tgmpop.c, tests/tsub1sp.c:
Remove use of abort (They can create core dump on some systems).
* acos.c, tests/tacos.c: Fix bug of inexact flag for acos(0).
* TODO, tests/memory.c: Update.
2004-03-11 Patrick Pelissier <Patrick.Pelissier@loria.fr>
* si_op.c, tests/tsi_op.c: Fix bug about forgotten MPFR_INVERT_RND.
Add test too.
* README.dev: Add doc about HAVE_STDINT_H
2004-03-10 Patrick Pelissier <Patrick.Pelissier@loria.fr>
* mpfr.texi: Fix doc about MPFR_DECL_INIT.
* mpfr.h: Fix the declaration of 'MPFR_DECL_INIT'
* init2.c, mpfr.h, mpfr.texi: Add 'MPFR_DECL_INIT' macro.
* mpfr.h, rint.c: Rename NEAREST_AWAY in GMP_RNDNA.
* mpfr.texi:
Add the description of mpfr_set_ui_2exp and mpfr_set_si_2exp.
2004-03-09 Patrick Pelissier <Patrick.Pelissier@loria.fr>
* Makefile.am, mpfr.h, set_si_2exp.c, set_ui_2exp.c, tests/tset_si.c:
Add mpfr_set_si_2exp and mpfr_set_ui_2exp and their tests.
* mpfr.texi: Add doc about mpfr_cmp_f function
* tests/tgmpop.c, gmp_op.c, mpfr.h, set_f.c:
Add mpfr_cmp_f and its test.
* Makefile.am, cmp_ld.c, mpfr.h, tests/Makefile.am, tests/tcmp_d.c, tests/tcmp_ld.c:
Add mpfr_cmp_ld and its test
* README.dev: Add doc of 2 macros.
* cmp_si.c, cmp_ui.c, mpfr.h:
Add mpfr_cmp_ui and mpfr_cmp_si as real functions
(The macros are still defined and used).
* Makefile.am, mpfr.h, mpfr.texi, si_op.c, tests/Makefile.am, tests/tsi_op.c:
Add mpfr_add_si, mpfr_sub_si, mpfr_si_sub, mpfr_mul_si, mpfr_div_si and
mpfr_si_div.
Add the corresponding test.
* gmp_op.c, mpfr.h, mpfr.texi, tests/tgmpop.c:
Add `mpfr_cmp_q` and `mpfr_cmp_z`.
* configure.in: Clean up configure
* cmp_ui.c, cmp_si.c: Add ASSERT for NAN.
2004-02-27 Patrick Pelissier <Patrick.Pelissier@loria.fr>
* mpfr.texi: Add documentation for MPFR_VERSION
2004-02-26 Patrick Pelissier <Patrick.Pelissier@loria.fr>
* mul.c: Optimize a few mpfr_mul.
* AUTHORS: Add Laurent Fousse in the AUTHORS file.
2004-02-26 Vincent Lefevre <Vincent.Lefevre@loria.fr>
* tests/tadd.c:
Fixed a bug in check2b and added a test; add1.c coverage is now
complete.
2004-02-25 Vincent Lefevre <Vincent.Lefevre@loria.fr>
* tests/tadd.c: Improved coverage.
* tests/tadd.c: Bugs fixed in a test function -> improved coverage.
2004-02-25 Patrick Pelissier <Patrick.Pelissier@loria.fr>
* mpfr-impl.h, round_raw_generic.c: Optimize mpfr_round_raw_?
* sub1sp.c, add.c, add1sp.c, sgn.c: Simplify the code.
2004-02-24 Vincent Lefevre <Vincent.Lefevre@loria.fr>
* mpfr.texi: Documented mpfr_version (2.0 branch).
* README.dev, mpfr.h, tests/Makefile.am, tests/tversion.c, update-version, version.c, Makefile.am:
Ported update-version, version.c, MPFR_VERSION_* to the 2.0 branch.
* tests/tmul_2exp.c: Avoid integer overflow.
* tests/reuse.c: Ported code clean-up to trunk.
* tests/tset_str.c:
Added casts to be able to compile with a C++ compiler (2.0 branch).
* tests/reuse.c:
Oops, forgot to update the copyright line (2.0 branch).
* tests/reuse.c:
Code clean-up, in particular to compile with g++ (2.0 branch).
* mpfr-test.h: More corrections for g++ (2.0 branch).
2004-02-24 Patrick Pelissier <Patrick.Pelissier@loria.fr>
* mpfr-test.h, mpfr.h, rint.c, round_prec.c, round_raw_generic.c, set_d.c, set_str.c, sin.c, sqrt.c, sub1.c, sub1sp.c, sum.c, tests/tests.c, add1sp.c, div.c, eq.c, frac.c, log10.c, mpfr-impl.h:
Remove some warnings.
MPFR can be compiled (but not checked!) with a C++ compiler.
2004-02-24 Vincent Lefevre <Vincent.Lefevre@loria.fr>
* mpfr-impl.h, set_str.c: More corrections for g++ (2.0 branch).
* round_prec.c: Updated copyright line (2.0 branch).
* sub1.c, round_prec.c, set_str.c, sqrt.c:
Added casts to be able to compile with a C++ compiler (2.0 branch).
* mpfr.h: Removed useless and duplicate declarations (2.0 branch).
2004-02-24 Patrick Pelissier <Patrick.Pelissier@loria.fr>
* tests/tmul_2exp.c, tests/tset_str.c, tests/tzeta.c:
Improve test coverage.
2004-02-24 Paul Zimmermann <Paul.Zimmermann@loria.fr>
* div.c:
further simplification of the code (replaced one in-place shift and copy
by out-of-place shift or copy)
2004-02-23 Paul Zimmermann <Paul.Zimmermann@loria.fr>
* tests/tabs.c, tests/tcbrt.c, tests/tconst_euler.c, tests/tdiv.c, tests/tdiv_ui.c, tests/tfactorial.c, tests/tget_str.c, tests/tmul_ui.c, tests/tpow.c, tests/tset.c, tests/tset_ld.c, tests/tui_div.c:
use GMP_RND_MAX instead of hard-coded constant
* tests/tdiv.c, div.c:
simplified the code of div.c and improved coverage
2004-02-23 Vincent Lefevre <Vincent.Lefevre@loria.fr>
* sqrt.c, tests/tsqrt.c:
Ported bug fix / test of mpfr_sqrt to the 2.0 branch.
2004-02-23 Patrick Pelissier <Patrick.Pelissier@loria.fr>
* longlong.h, mpfr-impl.h, mpfr-longlong.h:
Rename 'longlong.h' in 'mpfr-longlong.h' so that when MPFR is built
within GMP it uses GMP's 'longlong.h' rather than MPFR's copy.
2004-02-23 Vincent Lefevre <Vincent.Lefevre@loria.fr>
* ChangeLog: Update.
* VERSION, mpfr.texi: MPFR 2.0.3 has been released.
Updated version to 2.0.4 on the 2.0 branch.
2004-02-23 Patrick Pelissier <Patrick.Pelissier@loria.fr>
* free_cache.c: Add mpfr_free_cache (2).
* Makefile.am, mpfr.h, mpfr.texi, tests/tests.c: Add mpfr_free_cache.
* mpfr.texi, tests/tget_str.c, get_str.c, mpfr.h:
Add mpfr_free_str function.
* tests/tadd.c: Remove a warning.
* mpfr.h: Reorder the declarations of the functions.
Remove duplicate declarations.
Remove mpfr_factorial.
2004-02-23 Paul Zimmermann <Paul.Zimmermann@loria.fr>
* sqrt.c: patch from Guillaume Hanrot
2004-02-23 Patrick Pelissier <Patrick.Pelissier@loria.fr>
* pow_ui.c, set_str.c, tests/tgmpop.c, tests/tpow.c, tests/tset_si.c, tests/tset_str.c:
Improve coverage tests.
Fix 2 underflow bugs.
* sub1sp.c: Update comment
* mpfr.h: Improve comments.
* mul.c: Add a comment.
2004-02-22 Vincent Lefevre <Vincent.Lefevre@loria.fr>
* tests/tadd.c: Added tests.
2004-02-20 Vincent Lefevre <Vincent.Lefevre@loria.fr>
* ChangeLog: Update (2.0 branch).
* NEWS, neg.c, tests/tset.c:
Ported bug fix / test of mpfr_neg to the 2.0 branch.
2004-02-20 Laurent Fousse <fousse@greux.loria.fr>
* mpfr.h, sum.c, tests/tsum.c, mpfr-impl.h:
Changed mpfr_sum to use unsigned long instead of unsigned int. More tests.
2004-02-20 Patrick Pelissier <Patrick.Pelissier@loria.fr>
* neg.c, tests/tset.c:
mpfr_neg (b, b, r) for b=NAN didnt' set NAN flag.
* mpfr.texi: mpfr_sgn is no longer a macro.
2004-02-20 Vincent Lefevre <Vincent.Lefevre@loria.fr>
* ChangeLog: Update (2.0 branch).
* mpfr-test.h, tests/tgmpop.c, gmp_op.c:
Ported bug fix / test of gmp_op.c (0.5+3/2 freezes) to the 2.0 branch.
2004-02-19 Patrick Pelissier <Patrick.Pelissier@loria.fr>
* gmp_op.c, tests/tgmpop.c:
Fix bug with exact rationnal arguments (0.5+3/2 freezes).
2004-02-18 Vincent Lefevre <Vincent.Lefevre@loria.fr>
* ChangeLog: Update.
* config.guess, config.sub:
Update from the autotools-dev Debian package (2004-01-05).
* ChangeLog: Update (2.0 branch).
* mpfr.texi: Updated the 2.0 branch.
* minmax.c: Updated copyright line (2.0 branch).
* mpfr.texi: Updated the 2.0 branch (up to rev. 1.200 / 2004-01-07).
* set_f.c, tests/tset_f.c:
Ported bug fix / test of mpfr_set_f to the 2.0 branch.
* set_f.c, tests/tset_f.c:
Fixed a bug in mpfr_set_f for 0 (wrong sign) and added the test.
2004-02-18 Patrick Pelissier <Patrick.Pelissier@loria.fr>
* get_str.c: Fix bug if you build MPFR with ASSERT.
2004-02-17 Patrick Pelissier <Patrick.Pelissier@loria.fr>
* mul.c: Reduce the number of used variables.
2004-02-17 Paul Zimmermann <Paul.Zimmermann@loria.fr>
* round_raw_generic.c: improved again documentation
* get_str.c: simplified rounding
* round_raw_generic.c: improved documentation of *inexp
2004-02-17 Vincent Lefevre <Vincent.Lefevre@loria.fr>
* NEWS, ChangeLog: Update (2.0 branch).
* mpf2mpfr.h: Added 2004 in Copyright line (2.0 branch).
2004-02-17 Patrick Pelissier <Patrick.Pelissier@loria.fr>
* tests/tsub1sp.c: Simplify the random code.
* sub1sp.c: Optimize it a few.
* round_raw_generic.c: Add 2004 in copyright line.
* README.dev:
Add a section which describes the needed macros for building MPFR.
2004-02-17 Vincent Lefevre <Vincent.Lefevre@loria.fr>
* set_f.c, tests/tset_f.c:
Ported bug fixes / tests of mpfr_set_f to the 2.0 branch.
2004-02-17 Paul Zimmermann <Paul.Zimmermann@loria.fr>
* mul.c: added comment about probability of normalized product
2004-02-17 Vincent Lefevre <Vincent.Lefevre@loria.fr>
* acinclude.m4: Try so support GMP as a Shared Library (2.0 branch).
* gmp_op.c, tests/tgmpop.c:
Ported bug fixes / tests of gmp_op.c to the 2.0 branch.
* mpfr.texi:
Added a note about the ternary value, important in practice.
2004-02-17 Paul Zimmermann <Paul.Zimmermann@loria.fr>
* set_f.c, tests/tset_f.c: fixed 2 bugs and added test
* round_raw_generic.c: added comment about return value
2004-02-17 Patrick Pelissier <Patrick.Pelissier@loria.fr>
* acinclude.m4: Try so support GMP as a Shared Library.
2004-02-16 Paul Zimmermann <Paul.Zimmermann@loria.fr>
* tests/tsqrt.c: improved error message
2004-02-16 Patrick Pelissier <Patrick.Pelissier@loria.fr>
* gmp_op.c: Fix the computing of the error for mpq_add and mpq_sub.
2004-02-16 Vincent Lefevre <Vincent.Lefevre@loria.fr>
* tests/tadd.c: Added more tests (improved tadd1.c coverage).
2004-02-16 Paul Zimmermann <Paul.Zimmermann@loria.fr>
* tests/tgmpop.c: added cancellation test for add_q
2004-02-16 Vincent Lefevre <Vincent.Lefevre@loria.fr>
* tests/tadd.c: Added tests (improved tadd1.c coverage).
2004-02-16 Patrick Pelissier <Patrick.Pelissier@loria.fr>
* gmp_op.c, tests/tgmpop.c:
Fix bug of add_q and sub_q with special values (NAN, INF and ZERO).
2004-02-16 Paul Zimmermann <Paul.Zimmermann@loria.fr>
* div.c, set_d.c, set_q.c: deal with overflow/underflow in mpfr_div
* tests/tgmpop.c: added hard-coded tests
2004-02-16 Vincent Lefevre <Vincent.Lefevre@loria.fr>
* tests/tadd.c:
When the precisions are the same, test both mpfr_add1sp and mpfr_add1.
* tests/tadd.c: Added overflow check.
2004-02-16 Patrick Pelissier <Patrick.Pelissier@loria.fr>
* add1sp.c, div.c, sub1sp.c, tests/tsub1sp.c:
Optimize add1sp, sub1sp and div.
Improve coverage test for sub1sp.
2004-02-16 Vincent Lefevre <Vincent.Lefevre@loria.fr>
* tests/texp.c: Removed unused label.
* mpf2mpfr.h: Ported the mpf_dump fix to the 2.0 branch.
* pow.c:
Really reverted to rev. 1.54 + kept optimization + commented out
is_odd_even.
* tests/texp.c, exp.c:
Ported bug fixes / tests of mpfr_exp to the 2.0 branch.
2004-02-16 Paul Zimmermann <Paul.Zimmermann@loria.fr>
* set_d.c, set_ld.c: take into account possible out-of-range exponent
* pow.c: revert to rev 1.54 code for case x infinite
(was less efficient but simpler)
* pow.c: fixed bug with in-place computation
2004-02-16 Vincent Lefevre <Vincent.Lefevre@loria.fr>
* tests/tsqrt.c, tests/tset_ld.c:
Code clean-up and fix to avoid warnings.
2004-02-16 Paul Zimmermann <Paul.Zimmermann@loria.fr>
* mpfr.texi, pow.c, tests/tpow.c:
changed back to C99 standard for special values of x^y
* tests/trint.c: added test for *function* mpfr_round
* tests/tinp_str.c, tests/tout_str.c: check return value of fopen
2004-02-16 Vincent Lefevre <Vincent.Lefevre@loria.fr>
* sqrt.c:
Removed the no longer used label "fin" and fixed the indentation.
* pow.c: Fix: MPFR_NOT_ZERO -> MPFR_NOTZERO.
* agm.c: Commented out the now useless "double uo, vo;".
2004-02-16 Paul Zimmermann <Paul.Zimmermann@loria.fr>
* tests/trandom.c, tests/tzeta.c, zeta.c: improved coverage tests
2004-02-14 Paul Zimmermann <Paul.Zimmermann@loria.fr>
* sin.c, sin_cos.c, sinh.c, sqrt.c, tan.c, tanh.c, tests/Makefile.am, tests/tset_d.c, tests/tset_exp.c, tests/tset_f.c, tests/tset_ld.c, tests/tset_si.c, tests/tset_str.c, tests/tset_z.c, tests/tsin.c, tests/tsin_cos.c, tests/tsinh.c, tests/tsqrt.c, tests/ttan.c, tests/ttanh.c, tests/tui_div.c, tests/tui_pow.c, tests/tui_sub.c, ui_div.c, ui_pow_ui.c, ui_sub.c, add.c, mpfr.texi, set_d.c, set_q.c, set_str_raw.c:
new coverage tests
* hypot.c, inp_str.c, log.c, log10.c, log1p.c, log2.c, mpfr.texi, mpn_exp.c, mul_ui.c, next.c, pow.c, pow_si.c, pow_ui.c, rint.c, round_prec.c, set.c, tests/Makefile.am, tests/inp_str.data, tests/mpf_compat.h, tests/thypot.c, tests/tinp_str.c, tests/tlog.c, tests/tlog10.c, tests/tlog1p.c, tests/tlog2.c, tests/tmul.c, tests/tmul_ui.c, tests/tnext.c, tests/tout_str.c, tests/tpow.c, tests/trandom.c, tests/trint.c, tests/tround_prec.c, tests/tset.c:
improved coverage test
2004-02-13 Paul Zimmermann <Paul.Zimmermann@loria.fr>
* tests/tget_d.c, tests/tset_si.c: improved coverage test
* tests/tget_str.c, get_str.c, gamma.c, tests/tgamma.c, exp3.c, tests/texp.c:
improved test coverage
2004-02-13 Patrick Pelissier <Patrick.Pelissier@loria.fr>
* tests/tadd1sp.c:
Fix a bug in taddsp (Forget to check if random does not generate zero).
2004-02-13 Paul Zimmermann <Paul.Zimmermann@loria.fr>
* tests/teq.c: improved editing style
* cos.c, cosh.c, div_ui.c, tests/tdiv_ui.c: improved test coverage
* eq.c, tests/teq.c: partly rewritten, and improved test coverage
2004-02-13 Vincent Lefevre <Vincent.Lefevre@loria.fr>
* tests/tmul_2exp.c:
Added tests for mpfr_mul_2si and mpfr_div_2si + corrections.
* tests/tmul_2exp.c:
Replaced mpfr_mul_2exp and mpfr_div_2exp by mpfr_mul_2ui and
mpfr_div_2ui as the 2exp form is obsolete.
2004-02-13 Paul Zimmermann <Paul.Zimmermann@loria.fr>
* tests/tfactorial.c: removed warnings
2004-02-13 Patrick Pelissier <Patrick.Pelissier@loria.fr>
* check.c, cmp_abs.c, set.c, tests/Makefile.am, tests/tcmpabs.c, tests/texceptions.c, tests/tfits.c, tests/toutimpl.c:
Add test for mpfr_cmpabs
Add test for mpfr_fits_
Add test for internal dumping functions.
Improve coverage test for exceptions / set / check.
2004-02-13 Paul Zimmermann <Paul.Zimmermann@loria.fr>
* const_pi.c, tests/tconst_pi.c: improved coverage
* AUTHORS: removed Kevin, added missing accent
* agm.c, asin.c, asinh.c, atan.c, atanh.c, cbrt.c, cmp.c, cmp2.c, cmp_ui.c, const_euler.c, const_log2.c, mpfr.texi, tests/tagm.c, tests/tatanh.c, tests/tcmp2.c, tests/tcmp_ui.c, tests/tconst_log2.c, uceil_exp2.c:
improved coverage test
2004-02-12 Patrick Pelissier <Patrick.Pelissier@loria.fr>
* dump.c, mpf2mpfr.h, mpfr.h: Rewrite (simplify) mpfr_dump.
Change its proto.
Fix mpf_dump macro in mpf2mpfr.
* div.c, mul.c, sub.c, add.c:
Remove MPFR_ASSERTN(0) and add MPFR_ASSERTD(last condition) instead.
2004-02-12 Paul Zimmermann <Paul.Zimmermann@loria.fr>
* add.c, acosh.c, acos.c: improved coverage
* tests/tgamma.c, gamma.c, tests/tfrac.c: improved cov. test
* fma.c, tests/tfma.c, factorial.c, tests/tfactorial.c:
improved coverage test
* expm1.c, tests/texpm1.c: improved test coverage
2004-02-12 Patrick Pelissier <Patrick.Pelissier@loria.fr>
* tests/tconst_log2.c, tests/tconst_pi.c:
Improve coverage of const_pi and const_log2 (Test for prec > 20000).
2004-02-12 Paul Zimmermann <Paul.Zimmermann@loria.fr>
* exp.c, tests/texp.c: fixed tiny bugs for corner cases
improved test coverage
2004-02-12 Patrick Pelissier <Patrick.Pelissier@loria.fr>
* tests/Makefile.am, tests/tadd1sp.c, tests/tcopysign.c, tests/tdim.c, tests/texp.c, tests/tminmax.c, tests/tmul_2exp.c, Makefile.am, add.c, add1sp.c, copysign.c, div_2ui.c, mpfr-impl.h, sqrt.c, sub.c:
+ Add mpfr_add1sp which provides addition when all the operands have the same precision.
+ Add new test files for mpfr_copysign and mpfr_min and mpfr_max.
+ Add test for mpfr_exp10 in tests/texp.c
+ Improve coverage of div_2ui.c and mul_2ui.c
+ Add a forgotten ASSERT in mpfr_sqrt
2004-02-12 Paul Zimmermann <Paul.Zimmermann@loria.fr>
* exp2.c, tests/texp2.c: improved test coverage
replaced mpfr_get_d1 by mpfr_get_si
* erf.c, tests/terf.c: improved coverage test
* tests/tsub.c: added new coverage test
2004-02-12 Patrick Pelissier <Patrick.Pelissier@loria.fr>
* README.dev: Fix some mistakes.
* README.dev: Add a description of the gcov tool.
2004-02-12 Paul Zimmermann <Paul.Zimmermann@loria.fr>
* tests/tsub.c: now 100% of coverage of sub1.c
* dim.c, tests/Makefile.am, tests/tdim.c: new test file for mpfr_dim
2004-02-11 Vincent Lefevre <Vincent.Lefevre@loria.fr>
* gmp_op.c, tests/Makefile.am, tests/tgmpop.c:
Ported bug fixes / tests of gmp_op.c to the 2.0 branch.
* sub1.c, tests/tsub.c:
Ported bug fixes / tests of mpfr_sub1 to the 2.0 branch.
2004-02-10 Vincent Lefevre <Vincent.Lefevre@loria.fr>
* sqrt.c: Bug fix.
2004-02-09 Vincent Lefevre <Vincent.Lefevre@loria.fr>
* tests/tfrac.c: Added missing #include's.
* ChangeLog, NEWS: Update (2.0 branch).
2004-02-06 Vincent Lefevre <Vincent.Lefevre@loria.fr>
* factorial.c, gamma.c, tests/tfactorial.c, tests/tgamma.c:
Ported bug fixes / tests of mpfr_fac_ui and mpfr_gamma to
the 2.0 branch.
2004-02-06 Patrick Pelissier <Patrick.Pelissier@loria.fr>
* configure.in: Replace AS_HELP_STRING to AC_HELP_STRING (obsolete)
* neg.c, next.c, out_str.c, pow.c, pow_si.c, pow_ui.c, powerof2.c, print_rnd_mode.c, random.c, random2.c, rint.c, round_prec.c, set.c, set_dfl_prec.c, set_exp.c, set_inf.c, set_q.c, set_si.c, set_str_raw.c, set_ui.c, set_z.c, setmax.c, setmin.c, sgn.c, sin.c, sin_cos.c, sinh.c, sqrt.c, sqrt_ui.c, sub_ui.c, swap.c, tan.c, tanh.c, uceil_exp2.c, uceil_log2.c, ufloor_log2.c, ui_pow.c, ui_pow_ui.c, ui_sub.c, urandomb.c, volatile.c, acosh.c, add1.c, add_ui.c, agm.c, asinh.c, clear.c, clears.c, cmp.c, cmp_abs.c, cmp_d.c, cmp_si.c, cmp_ui.c, comparisons.c, const_pi.c, copysign.c, dim.c, div.c, div_2exp.c, div_2si.c, div_2ui.c, dump.c, exceptions.c, exp.c, exp10.c, exp2.c, exp3.c, expm1.c, extract.c, fma.c, get_exp.c, get_z_exp.c, init.c, inits.c, inp_str.c, isinf.c, isnan.c, isnum.c, log1p.c, mpfr-test.h, mpfr.texi, mul.c, mul_2exp.c, mul_2si.c, mul_2ui.c, mul_ui.c:
Add forgotten copyright 2004 line.
Add a small documentation about mpfr_sum.
2004-02-06 Vincent Lefevre <Vincent.Lefevre@loria.fr>
* hypot.c, tests/thypot.c:
Ported bug fixes / tests of mpfr_hypot to the 2.0 branch.
* agm.c, tests/tagm.c:
Ported bug fixes / tests of mpfr_agm to the 2.0 branch.
2004-02-06 Patrick Pelissier <Patrick.Pelissier@loria.fr>
* tests/Makefile.am, tests/tsum.c, Makefile.am, mpfr-impl.h, mpfr.h, sum.c:
Added mpfr_sum function.
2004-02-06 Vincent Lefevre <Vincent.Lefevre@loria.fr>
* get_str.c, tests/tget_str.c:
Ported bug fixes / tests of mpfr_get_str to the 2.0 branch.
2004-02-06 Patrick Pelissier <Patrick.Pelissier@loria.fr>
* tests/texp.c, tests/tfma.c, tests/tfrac.c, tests/tgeneric.c, tests/tget_d_2exp.c, tests/tget_str.c, tests/tgmpop.c, tests/thypot.c, tests/tmul.c, tests/tout_str.c, tests/tpow3.c, tests/trint.c, tests/tset_f.c, tests/tset_q.c, tests/tset_si.c, tests/tset_str.c, tests/tset_z.c, tests/tsqrt.c, tests/tsub.c, tests/tsub1sp.c, tests/tui_pow.c, sub_ui.c, swap.c, tan.c, tanh.c, tests/memory.c, tests/tacos.c, tests/tadd.c, tests/tasin.c, tests/tatan.c, tests/tcan_round.c, tests/tconst_log2.c, tests/tdiv.c, tests/tests.c, tests/texceptions.c, uceil_log2.c, ui_div.c, ui_pow.c, ui_pow_ui.c, ui_sub.c, urandomb.c, version.c, volatile.c, set_dfl_prec.c, set_exp.c, set_f.c, set_inf.c, set_nan.c, set_prc_raw.c, set_prec.c, set_q.c, set_rnd.c, set_si.c, set_str.c, set_str_raw.c, set_ui.c, set_z.c, setmax.c, setmin.c, sgn.c, sin.c, sin_cos.c, sinh.c, sqrt.c, sqrt_ui.c, sub.c, sub1.c, sub1sp.c, sub_one_ulp.c, init2.c, inits.c, inits2.c, inp_str.c, isinf.c, isinteger.c, isnan.c, isnum.c, log.c, log10.c, log1p.c, log2.c, longlong.h, minmax.c, mp_clz_tab.c, mpfr-gmp.c, mpfr-gmp.h, mpfr-impl.h, mpfr-test.h, mpn_exp.c, mul.c, mul_2exp.c, mul_2si.c, mul_2ui.c, mul_ui.c, neg.c, next.c, out_str.c, pow.c, pow_si.c, pow_ui.c, powerof2.c, print_rnd_mode.c, random.c, random2.c, reldiff.c, rint.c, round_prec.c, save_expo.c, set.c, set_d.c, cos.c, cosh.c, dim.c, div.c, div_2exp.c, div_2si.c, div_2ui.c, div_ui.c, dump.c, eq.c, erf.c, exceptions.c, exp.c, exp10.c, exp2.c, exp3.c, exp_2.c, expm1.c, extract.c, factorial.c, fits_s.h, fits_u.h, fma.c, frac.c, gamma.c, get_d.c, get_exp.c, get_ld.c, get_si.c, get_str.c, get_ui.c, get_z_exp.c, hypot.c, init.c, Makefile.am, acinclude.m4, acos.c, acosh.c, add.c, add1.c, add_one_ulp.c, add_ui.c, agm.c, asin.c, asinh.c, atan.c, atanh.c, cbrt.c, clear.c, clears.c, cmp.c, cmp2.c, cmp_abs.c, cmp_d.c, cmp_si.c, cmp_ui.c, comparisons.c, configure.in, const_euler.c, const_log2.c, const_pi.c, copysign.c:
+ Better support of non IEEE doubles.
+ You can compile MPFR without gmp internal files (ie gmp-impl.h, gmp-mparam.h, and config.h). You only need gmp.h and libgmp.a. But you can still compile with GMP internal files (configure detects them).
2004-02-06 Vincent Lefevre <Vincent.Lefevre@loria.fr>
* ChangeLog: Update.
* frac.c, tests/tfrac.c, tests/tzeta.c, zeta.c:
Ported bug fixes / tests of mpfr_frac and mpfr_zeta to the 2.0 branch.
* from_Torbjorn, gammaPiAGMformula.c, mpfi.c, mpfi.h:
(2.0 branch) Removed unused files.
* NEWS:
Added changes from version 2.0.1 to version 2.0.2 and updated MPFR URL
(2.0 branch).
* NEWS: Updated MPFR URL.
* NEWS: Added the changes from version 2.0.1 to version 2.0.2.
* README.dev: Added (2.0 branch): "3) Update the NEWS file.".
* README.dev: Added: "3) Update the NEWS file.".
* VERSION, mpfr.texi:
Updated the branch for the future version 2.0.3 (bug-fix release).
2004-02-03 Paul Zimmermann <Paul.Zimmermann@loria.fr>
* get_str.c, mpfr.texi, tests/tget_str.c:
fixed bug in get_str (case pow2, rnd=up or down)
2004-01-30 Paul Zimmermann <Paul.Zimmermann@loria.fr>
* tests/tzeta.c, zeta.c: fixed problem (s1 = s-1 inexact)
* factorial.c, gamma.c, tests/tfactorial.c, tests/tgamma.c:
fixed problem in gamma/factorial
* tests/tagm.c, tests/thypot.c, agm.c, hypot.c:
added new tests for agm and hypot (+ fixed bugs)
2004-01-29 Patrick Pelissier <Patrick.Pelissier@loria.fr>
* mpfr.h:
Add GMP_RND_MAX so that a for loop of the rounding modes looks like:
for(int r = 0 ; r < GMP_RND_MAX ; r++)
2004-01-28 Patrick Pelissier <Patrick.Pelissier@loria.fr>
* tests/tagm.c, tests/tdiv.c, tests/tget_d.c, tests/tmul.c, tests/tset_ld.c, tests/tsin_cos.c, tests/tsqrt.c, tests/tsub_ui.c, tests/tui_div.c, tests/tui_sub.c, tests/tzeta.c, get_d.c, mpfr-impl.h, set_d.c, set_ld.c, sub1sp.c, tests/tadd.c, tests/tadd_ui.c, uceil_exp2.c, ufloor_log2.c:
Better supports of non IEEE-754 floats (don't use anymore ieee_double_extract if _GMP_IEEE is not set).
2004-01-28 Vincent Lefevre <Vincent.Lefevre@loria.fr>
* frac.c: Added comments and a temporary fix.
2004-01-27 Paul Zimmermann <Paul.Zimmermann@loria.fr>
* tests/tcbrt.c, tests/terf.c, tests/tgamma.c, tests/tsqrt.c, tests/tzeta.c, atan.c, cbrt.c, erf.c, tests/tatan.c:
fixed bugs in atan cbrt erf
added new hard-coded tests
2004-01-26 Paul Zimmermann <Paul.Zimmermann@loria.fr>
* zeta.c:
removed argument reduction in sin(Pi*s/2) [delegated to mpfr_sin]
* tests/tzeta.c: print inputs of test2 in binary form
commented out test for 0.8 (input is not exactly representable)
2004-01-26 Patrick Pelissier <Patrick.Pelissier@loria.fr>
* tests/tzeta.c, zeta.c:
+ Internal functions of zeta are now declared as static.
+ Add new tests which fail.
2004-01-22 Paul Zimmermann <Paul.Zimmermann@loria.fr>
* tests/terf.c, tests/tfrac.c, tests/thyperbolic.c, tests/trint.c, tests/tacosh.c, tests/tasin.c, tests/tasinh.c, tests/tatan.c, tests/tatanh.c, tests/tcbrt.c, tests/tconst_euler.c, tests/tconst_log2.c, tests/tconst_pi.c, tests/tcos.c, tests/tcosh.c, asin.c, atan.c, atanh.c, erf.c, exp_2.c, frac.c, mpfr-impl.h, tests/tacos.c, algorithms.tex, acos.c:
added several hard-coded tests (and fixed bugs found)
2004-01-20 Patrick Pelissier <Patrick.Pelissier@loria.fr>
* mpfr.texi: Fix tiny bug of Concept Index / Rounding Modes.
* mpfr.texi: Update minor things.
2004-01-20 Paul Zimmermann <Paul.Zimmermann@loria.fr>
* mpfr.texi: minor change in contributions
* mpfr.texi: added Patrick in the main contributors
2004-01-20 Vincent Lefevre <Vincent.Lefevre@loria.fr>
* mpfr.texi: Fixed spelling mistake.
2004-01-20 Patrick Pelissier <Patrick.Pelissier@loria.fr>
* mpfr.texi: Reorder the documentation.
2004-01-19 Patrick Pelissier <Patrick.Pelissier@loria.fr>
* tests/tset_d.c, tests/tmul_2exp.c, tests/tcmp_d.c:
Update tests to remove the use of double when possible.
* sub1sp.c: Reenable the cmp between inexact flags.
* tests/texceptions.c, set_rnd.c, mpfr.h:
Add mpfr_get_default_rounding_mode.
Add the tests for mpfr_get/set_default_rounding_mode.
Fix mpfr_set_default_rounding_mode.
2004-01-19 Vincent Lefevre <Vincent.Lefevre@loria.fr>
* get_str.c: _mpfr_ceil -> mpfr_ceil_double + check for overflow.
* mpn_exp.c, get_str.c, Makefile.am:
Moved the mpfr_mpn_exp function to a new file "mpn_exp.c" as it is
used by both "get_str.c" and "set_str.c".
2004-01-16 Patrick Pelissier <Patrick.Pelissier@loria.fr>
* tests/tdiv.c: Update it to remove the use of float/double.
2004-01-15 Patrick Pelissier <Patrick.Pelissier@loria.fr>
* from_Torbjorn, get_str.c, tests/tget_str.c:
Add a new check in tget_str.c.
* mpfr-impl.h: Add new macros.
* zeta.c: Readd stdio.h in case of DEBUG mode.
* sub1sp.c:
Optimize a few sub1sp by removing the normalisation in case of exact rounding and by removing the calcul of the rounding mode in case of exact rounding.
2004-01-15 Paul Zimmermann <Paul.Zimmermann@loria.fr>
* get_str.c:
fixed problem in case m=0 and b=2^k (lost bits from 1st digit were not taken
into account)
* get_str.c, mpfr-impl.h, set_str.c: mpn_exp -> mpfr_mpn_exp
2004-01-15 Vincent Lefevre <Vincent.Lefevre@loria.fr>
* gammaPiAGMformula.c:
Removed gammaPiAGMformula.c (old version, no longer used).
2004-01-14 Vincent Lefevre <Vincent.Lefevre@loria.fr>
* get_ld.c, hypot.c, init2.c, log.c, log10.c, log2.c, reldiff.c, save_expo.c, set_f.c, set_prc_raw.c, set_prec.c, set_str.c, ui_div.c, zeta.c, const_log2.c, cos.c, cosh.c, div_ui.c, eq.c, exp.c, exp_2.c, cbrt.c, const_euler.c:
Changed some error messages into assertions.
Removed some useless #include's.
2004-01-14 Patrick Pelissier <Patrick.Pelissier@loria.fr>
* tests/tasin.c, tests/tcmp_ui.c, tests/tconst_log2.c, tests/tconst_pi.c, tests/tcos.c, tests/tdiv_ui.c, tests/texp.c, tests/texp2.c, tests/tfma.c, tests/tlog.c, tests/tlog10.c, tests/tmul.c, tests/tround_prec.c, tests/tset_q.c, tests/tsin.c, tests/tsin_cos.c, tests/reuse.c, tests/tadd.c, tests/tadd_ui.c, tests/tagm.c:
Continue to port tests so that they don't use double.
2004-01-09 Patrick Pelissier <Patrick.Pelissier@loria.fr>
* tests/tswap.c, tests/ttan.c, tests/ttrunc.c, tests/tui_div.c, tests/tui_sub.c, tests/tsub.c, tests/tsub_ui.c, tests/tsqrt_ui.c, tests/tgmpop.c, tests/tsqrt.c, tests/cmp_str.c, tests/tadd.c, tests/tcbrt.c, tests/tcheck.c, tests/Makefile.am, mpfr-test.h:
Update the tests to reduce the use of floats.
* mpfi.c, mpfi.h: Remove unused files mpfi.c and mpfi.h
* tests/tabs.c: Update test.
Don't use floats anymore.
* mpfr-test.h: Add RND_RAND
Add SIGN_RAND
* isinteger.c: + Simplify the signular code.
+ Fix potential type errors. (Used mpfr_prec_t instead of mpfr_uexp_t).
2004-01-08 Patrick Pelissier <Patrick.Pelissier@loria.fr>
* gmp_op.c, tests/Makefile.am, tests/tgmpop.c:
+ Add a new test file for checking functions mpfr_add/sub/mul/div_q/z (from gmp_op.c).
+ Fix bugs of mpfr_add/sub/mul/div_q/z.
2004-01-07 Vincent Lefevre <Vincent.Lefevre@loria.fr>
* mpfr.texi: -0 -> @minus{}0.
* mpfr.texi: Specifications for mpfr_min and mpfr_max.
* mpfr-impl.h:
Updated MPFR_INTPREC_MAX definition, as mpfr_prec_t has changed.
2004-01-07 Patrick Pelissier <Patrick.Pelissier@loria.fr>
* tests/tsub1sp.c: Add a new test between sub1 and sub1sp.
* minmax.c: Fix copyright line.
2004-01-07 Paul Zimmermann <Paul.Zimmermann@loria.fr>
* sub1.c, tests/tsub.c: fixed wrong sign of inexact flag
2004-01-07 Vincent Lefevre <Vincent.Lefevre@loria.fr>
* mpfr-impl.h:
Added casts to size_t so that integers representing a size get
this type as soon as possible.
2004-01-07 Patrick Pelissier <Patrick.Pelissier@loria.fr>
* sub1sp.c: Use MPFR_ASSERTN(0) instead of abort.
* mpfr.h: Fix the definition of MPFR_PREC_MAX
2004-01-07 Paul Zimmermann <Paul.Zimmermann@loria.fr>
* tests/tsub.c: added new test to check bug repair
* sub1.c:
fixed bug (wrong inexact flag) for rounding to nearest when sh=0 and
first trailing limbs coincide
2004-01-07 Patrick Pelissier <Patrick.Pelissier@loria.fr>
* add.c, sub.c: Fix copyright lines (2004).
* tests/tsub1sp.c, Makefile.am, add.c, sub.c, sub1sp.c, tests/Makefile.am:
Fix bug of sub1sp.c on sparck.
Add new tests for sub1sp.
Reenable sub1sp for mpfr_add / mpfr_sub.
* print_raw.c: Change output format of mpfr_print_mant_binary.
2004-01-07 Vincent Lefevre <Vincent.Lefevre@loria.fr>
* cmp2.c: Clarified comment.
2004-01-06 Vincent Lefevre <Vincent.Lefevre@loria.fr>
* mpfr.h: Updated copyright line.
* tests/tversion.c, Makefile.am, mpfr.h, mpfr.texi, tests/Makefile.am, update-version, version.c:
Added mpfr_version function and test.
* mpfr.texi:
The mpfr_print_rnd_mode return type is const char *, not char *.
2004-01-06 Patrick Pelissier <Patrick.Pelissier@loria.fr>
* tests/tset_f.c, tests/tset_q.c, tests/tset_si.c, tests/tset_z.c:
Update the copyright line of the source files to 2004.
* tests/tset_z.c, tests/tset_q.c, tests/tset_si.c, tests/tset_f.c:
Add the tests to check if 0 for signed class with unsigned 0 is set to 0+.
2004-01-05 Paul Zimmermann <Paul.Zimmermann@loria.fr>
* mpfr.texi: specified sign of zero in mpfr_set_*
* tests/tadd.c: removed test using denorms
2003-12-22 Patrick Pelissier <Patrick.Pelissier@loria.fr>
* acos.c, add.c, sub.c:
Disable sub1sp in add.c and in sub.c since it provides some bugs on spark (Log/acos/asin and atan tests failed but not tsub or tsub1sp).
* mpfr.h: Change comment.
* init2.c, mpfr-impl.h, mpfr.h:
+ Rearrange the code to be more "compatible" with broken systems.
+ Preprocessing checks are done in init2.c since GMP constants can't be used in preprocessing #if.
* sub1sp.c: Use MPFR_UNSIGNED_MINUS_MODULO when needed.
* clears.c, inits.c, inits2.c:
Explicit support for K&R C since ansi2knr can't be used.
2003-12-20 Kevin Ryde <user42@zip.com.au>
* tests/tests.c (tests_rand_start): Use gmp_randinit_default not the
RANDS macro, to cope with new non-seeding MT setup by RANDS.
2003-12-19 Patrick Pelissier <Patrick.Pelissier@loria.fr>
* get_ui.c, init2.c, mpfr-impl.h, mpfr.h: Support of MPFR_PREC_FORMAT.
Fix a bug in case mp_prec_t = unsigned short.
2003-12-19 Vincent Lefevre <Vincent.Lefevre@loria.fr>
* update-version: Update due to a change in mpfr.h.
2003-12-19 Patrick Pelissier <Patrick.Pelissier@loria.fr>
* VERSION, mpfr.h, mpfr.texi: + Modify Version to 2.1.0.
+ Add MPFR_VERSION_MAJOR, MPFR_VERSION_MINOR and MPFR_VERSION_PATCHLEVEL in mpfr.h
+ Add MPFR_VERSION_NUM and MPFR_VERSION to check Mpfr version.
* sub1sp.c, tests/mpf_compat.h, ui_div.c, ui_sub.c, mpfr-impl.h:
Remove one warning in mpf_compat.h
Create a new macro: MPFR_RET_NEVER_GO_HERE
Modify ui_sub/div to use it to make Insure++ happy.
2003-12-19 Paul Zimmermann <Paul.Zimmermann@loria.fr>
* TODO: updated mpfr_root entry
2003-12-19 Vincent Lefevre <Vincent.Lefevre@loria.fr>
* update-version, README.dev:
Added update-version script to update the MPFR version.
2003-12-19 Paul Zimmermann <Paul.Zimmermann@loria.fr>
* TODO: removed one item, added one
2003-12-16 Paul Zimmermann <Paul.Zimmermann@loria.fr>
* Makefile.am: removed unused target "tests"
* configure.in: removed AC_DEFINE(hpux) [not used any more]
2003-12-15 Kevin Ryde <user42@zip.com.au>
* Makefile.am (EXTRA_DIST): Add round_raw_generic.c.
2003-12-15 Patrick Pelissier <Patrick.Pelissier@loria.fr>
* tests/tui_pow.c, tests/tui_sub.c, tests/tzeta.c, tests/tget_d_2exp.c, tests/tget_str.c, tests/thyperbolic.c, tests/thypot.c, tests/tinits.c, tests/tisnan.c, tests/tlog.c, tests/tlog10.c, tests/tlog1p.c, tests/tlog2.c, tests/tmul.c, tests/tmul_2exp.c, tests/tmul_ui.c, tests/tnext.c, tests/tout_str.c, tests/tpow.c, tests/tpow3.c, tests/trandom.c, tests/trint.c, tests/tround_prec.c, tests/tset.c, tests/tset_d.c, tests/tset_f.c, tests/tset_ld.c, tests/tset_q.c, tests/tset_si.c, tests/tset_str.c, tests/tset_z.c, tests/tsgn.c, tests/tsin.c, tests/tsin_cos.c, tests/tsinh.c, tests/tsqrt.c, tests/tsqrt_ui.c, tests/tsub.c, tests/tsub1sp.c, tests/tsub_ui.c, tests/tswap.c, tests/ttan.c, tests/ttanh.c, tests/ttrunc.c, tests/tui_div.c, round_prec.c, round_raw_generic.c, set_ld.c, set_ui.c, sub1sp.c, tests/memory.c, tests/mpf_compat.h, tests/reuse.c, tests/rnd_mode.c, tests/tabs.c, tests/tacos.c, tests/tacosh.c, tests/tadd.c, tests/tadd_ui.c, tests/tagm.c, tests/tasin.c, tests/tasinh.c, tests/tatan.c, tests/tatanh.c, tests/tcan_round.c, tests/tcbrt.c, tests/tcheck.c, tests/tcmp.c, tests/tcmp2.c, tests/tcmp_d.c, tests/tcmp_ui.c, tests/tcomparisons.c, tests/tconst_euler.c, tests/tconst_log2.c, tests/tconst_pi.c, tests/tcos.c, tests/tcosh.c, tests/tdiv.c, tests/tdiv_ui.c, tests/tdump.c, tests/teq.c, tests/terf.c, tests/tests.c, tests/texceptions.c, tests/texp.c, tests/texp2.c, tests/texpm1.c, tests/tfactorial.c, tests/tfma.c, tests/tfrac.c, tests/tgamma.c, tests/tgeneric.c, tests/tget_d.c, asin.c, atan.c, cbrt.c, div.c, fits_u.h, gamma.c, get_d.c, mpfr-impl.h, mpfr-test.h:
+ Optimize a few div.c
+ Remove some warnings in asin.c, atan.c.
+ Include limits.h before gmp-impl.h in mpfr-impl.h
+ mpfr-tests.h doesn't include anumore standard include files.
+ Test files include only standard includes and mpfr-tests.h.
+ Add some forgotten mpfr_clear in mpf[r]_compat.
+ Remove some warnings in the tests.
2003-12-15 Paul Zimmermann <Paul.Zimmermann@loria.fr>
* tests/tlog.c: removed unused arguments
* configure.in: removed AC_DEFINE(__STDC__) for OSF
* configure.in: removed MISCFLAGS (not used any more)
2003-12-14 Kevin Ryde <user42@zip.com.au>
* acinclude.m4: Quote AC_DEFUN names, for automake 1.8.
2003-12-10 Patrick Pelissier <Patrick.Pelissier@loria.fr>
* powerof2.c, sub1sp.c, tests/tsub1sp.c:
+ Add a new test in case of underflow.
+ Fix bug in case of underflow for sub1 / sub1sp (mpfr_powerof2 could be called with inalid numbers).
2003-12-09 Patrick Pelissier <Patrick.Pelissier@loria.fr>
* print_raw.c, sub1sp.c:
+ Fixed bugs of mpfr_print_mant_binary on 64 bits CPU (1L instead of 1).
+ Fixed bugs of mpfr_sub1sp on 64-bits CPU (mp_limb_t instead of int).
* tests/tset_d.c, tests/tset_str.c, tests/tsin.c, tests/tsqrt.c, tests/tsub.c, tests/tsub1sp.c, tests/ttan.c, tests/ttrunc.c, tests/tui_pow.c, sub1sp.c, tests/Makefile.am, tests/tabs.c, tests/tadd.c, tests/tconst_log2.c, tests/tdiv_ui.c, tests/tmul.c, tests/tmul_ui.c, tests/tpow.c, Makefile.am, add.c, clear.c, init2.c, mpfr-impl.h, mul.c, print_raw.c, round_prec.c, set_prec.c, sub.c, sub1.c:
+ Add function mpfr_print_mantissa_binary, for debugging reason.
+ Rename MPFR_ALLOC_SIZE in MPFR_MALLOC_SIZE.
+ Add conditionnal -DSMALL directive in mpfr-impl.h.
+ Add new function: sub1sp.
Substraction in case of all the ops have the same prec.
+ Add its test (tsub1sp).
+ Modify a few the tests to avoid comparing mpfr results with double, for portability reason.
2003-12-05 Vincent Lefevre <Vincent.Lefevre@loria.fr>
* Makefile.am, exp10.c, mpfr.h, mpfr.texi: Added mpfr_exp10 function.
2003-12-01 Patrick Pelissier <Patrick.Pelissier@loria.fr>
* uceil_log2.c, ufloor_log2.c, mpfr-impl.h, neg.c, powerof2.c, set_d.c, set_ld.c, uceil_exp2.c, exceptions.c, get_d.c:
Port all the IEEE dependent remaining functions so that it uses a generic way to compute the result if it detects that the double is not in IEEE format ( _GMP_IEEE_FLOATS == 0).
MPFR now should work well on non-IEEE machines.
2003-12-01 Paul Zimmermann <Paul.Zimmermann@loria.fr>
* TODO: added suggestion for 2 new functions
* TODO: added entry (portability)
2003-11-25 Patrick Pelissier <Patrick.Pelissier@loria.fr>
* mpfr-impl.h, sub1.c, cmp.c, add1.c:
Optmize a few add1.c/sub1.c by using MPFR_LIKELY / MPFR_UNLIKELY.
2003-11-21 Patrick Pelissier <Patrick.Pelissier@loria.fr>
* pow.c, pow_ui.c, round_prec.c, set_si.c, set_str.c, sub1.c, zeta.c, const_pi.c, cos.c, eq.c, exp3.c, exp_2.c, factorial.c, fits_s.h, fits_u.h, gamma.c, inp_str.c, isinteger.c, mul.c:
Remove some warnings and potential errors (Comparaison between signed and unsigned).
* tests/tmul_ui.c, tests/tout_str.c, tests/tpow.c, tests/tsin.c, tests/tsin_cos.c, tests/tsqrt.c, tests/tsub.c, tests/tswap.c, tests/ttan.c, tests/ttrunc.c, tests/tui_pow.c, tests/tabs.c, tests/tadd.c, tests/tcbrt.c, tests/tcheck.c, tests/tcmp.c, tests/tcmp_d.c, tests/tcos.c, tests/tdiv.c, tests/terf.c, tests/texp.c, tests/texp2.c, tests/tfma.c, tests/tgamma.c, tests/tget_str.c, tests/tlog.c, tests/tmul.c, Makefile.am, check.c, clear.c, mpfr-impl.h, tests/Makefile.am, tests/reuse.c:
+ Add new internal function: mpfr_check.
+ Add the corresponding test file.
+ Translate mpfr_set_d to mpfr_set_str / mpfr_set_ui in the tests for portability reasons.
2003-11-21 Vincent Lefevre <Vincent.Lefevre@loria.fr>
* mpfr.texi: Updated month: October -> November.
* README: Updated list of files.
2003-11-21 Paul Zimmermann <Paul.Zimmermann@loria.fr>
* tests/tui_pow.c: use integers instead of double's
2003-11-21 Vincent Lefevre <Vincent.Lefevre@loria.fr>
* README.dev, TODO: Notes about not using mpfr_set_d in the tests.
2003-11-19 Vincent Lefevre <Vincent.Lefevre@loria.fr>
* ChangeLog: Update (2.0.2 branch).
* tests/tui_pow.c, pow.c:
Ported Paul's patch (fix and tests) concerning the pow.c bug (in case
exact result) to the 2.0.2 branch.
2003-11-19 Patrick Pelissier <Patrick.Pelissier@loria.fr>
* set_ui.c, mul.c, pow.c: Optimization of mpfr_mul.
Tiny optimization of mpfr_pow (The case y=0 has been put inside the MPFR_ARE_SINGULAR block).
Tiny optimisation of mpfr_set_ui.
2003-11-18 Paul Zimmermann <Paul.Zimmermann@loria.fr>
* pow.c: fixed bug in case exact result
* tests/tui_pow.c: added new tests
2003-11-18 Patrick Pelissier <Patrick.Pelissier@loria.fr>
* round_raw_generic.c:
Optimize round_raw_generic by reducing the number of redundant tests.
2003-11-17 Patrick Pelissier <Patrick.Pelissier@loria.fr>
* tests/Makefile.am, mul.c, round_prec.c, round_raw_generic.c, set_str.c, sub1.c, exceptions.c, get_d.c, get_str.c, mpfr-impl.h, mpfr.h, div.c:
* Optimize a few div.c and mul.c.
* Reorder the tests.
* Remove mpfr_round_raw_generic and create 4 new functions which replace it, for efficiency reasons.
* Add round_raw_generic.c which is the generic file to create the 4 new functions.
* Add new MACRO: MPFR_RNDUTEST_OR_RNDDNOTTEST which is a faster way to check if (rnd_mode==GMP_RNDU && test) || (rnd_mode==GMP_RNDD && !test).
* Add new MACRO: MPFR_UNSIGNED_MINUS_MODULO.
* Optimize mpfr_can_round_raw.
* Some new defines in mpfr.h to increase compatibility with MPFR v2.0.1 and above.
2003-11-14 Vincent Lefevre <Vincent.Lefevre@loria.fr>
* pow_si.c, tests/tpow.c:
Ported the pow_si patch (and test) to the 2.0.2 branch.
2003-11-14 Paul Zimmermann <Paul.Zimmermann@loria.fr>
* pow_si.c, tests/tpow.c:
fixed bug in pow_si (exact result, case z = x)
2003-11-14 Vincent Lefevre <Vincent.Lefevre@loria.fr>
* pow.c, tests/tui_pow.c, tests/tzeta.c:
Ported the pow.c precision patch to the 2.0.2 branch (with the tests).
2003-11-14 Paul Zimmermann <Paul.Zimmermann@loria.fr>
* tests/tzeta.c: added test to check bug fix (bug was in mpfr_pow)
* tests/tui_pow.c:
added new test to check for bug fix (output precision > input precisions)
* zeta.c: just improved editing style
* pow.c: fixed bug for output precision > max(input precisions)
2003-11-14 Vincent Lefevre <Vincent.Lefevre@loria.fr>
* tests/tset_ld.c: Ported the gcc-3.3 bug detection patch to the trunk.
* tests/tset_ld.c:
Detect optimization bug of gcc 3.3 on Alpha to avoid a test failure.
2003-11-11 Kevin Ryde <user42@zip.com.au>
* tests/tests.c (tests_rand_start): Use gmp_randinit_default not the
RANDS macro, to cope with new non-seeding MT setup by RANDS.
2003-11-07 Patrick Pelissier <Patrick.Pelissier@loria.fr>
* add1.c:
Fix a stupid bug (diff_exp is not equal to the difference of prec)
2003-11-07 Vincent Lefevre <Vincent.Lefevre@loria.fr>
* init2.c: Initialize the exp field.
2003-11-07 Patrick Pelissier <Patrick.Pelissier@loria.fr>
* add1.c, copysign.c, div.c, div_2si.c, div_2ui.c, exceptions.c, extract.c, get_d.c, get_exp.c, get_str.c, init2.c, isinteger.c, mpfr-impl.h, mpfr.h, mul.c, mul_2si.c, mul_2ui.c, set_prec.c, set_str_raw.c, sub1.c, swap.c:
Some minor optimizations.
Optimization of mul.c / sub1.c.
Some clean up in the header files.
2003-11-05 Patrick Pelissier <Patrick.Pelissier@loria.fr>
* pow.c, pow_si.c, pow_ui.c, rint.c, set.c, sin.c, sin_cos.c, sinh.c, sub.c, sub1.c, swap.c, tan.c, tanh.c, ui_div.c, ui_sub.c, zeta.c, exp2.c, expm1.c, fma.c, gamma.c, gammaPiAGMformula.c, get_z_exp.c, hypot.c, log.c, log10.c, log1p.c, log2.c, mpfr-impl.h, mpfr.h, mul.c, mul_ui.c, add_one_ulp.c, agm.c, asin.c, asinh.c, atan.c, atanh.c, cbrt.c, cmp.c, cmp_abs.c, cmp_ui.c, copysign.c, cos.c, cosh.c, div.c, div_ui.c, erf.c, exp.c, acos.c, acosh.c, add.c:
Fix some bugs (Use MPFR_ASSERT(1) instead of MPFR_ASSERT(0))
Optimize swap.c and copysign.c.
* cmp2.c, mpfr-impl.h, round_prec.c, set.c, sub1.c:
Optimize mpfr_prec_round.
Optimize mpfr_set (Case of both src & dest have the same precision).
Start optimizing mpfr_sub1.
* set_ui.c, sgn.c, sqrt.c, sub.c, sub1.c, tests/Makefile.am, tests/tsgn.c, Makefile.am, add.c, add1.c, cmp_ui.c, mpfr-impl.h, mpfr.h, mul.c, set.c:
Add a real function for mpfr_sgn (not a call to mpfr_cmp_ui_2exp).
Add a test for mpfr_sgn.
Change the proto of mpfr_add1 and mpfr_sub1 by removing the last arg.
Simplify the logic of the sign in mpfr_sub1.
Tiny speed up for cmp/set/sqrt.
mpfr-impl auto include all the needed local header files (gmp, gmp-impl, mpfr).
2003-11-04 Vincent Lefevre <Vincent.Lefevre@loria.fr>
* pow_ui.c: Merged the mpfr-2-0-2-branch pow_ui.c changes to the trunk.
* pow_ui.c:
Overflow on err (which is now unsigned) avoided, simplified its
computation, added some asserts, fixed the underflow check (the
cast to double was useless and could be inexact).
* tests/tacosh.c: Merged the check_inf test to the 2.0.2 branch.
* tests/tacosh.c:
The check_inf test wasn't called. Added 2 missing mpfr_clear and \n.
2003-11-04 Patrick Pelissier <Patrick.Pelissier@loria.fr>
* log2.c, minmax.c, mpfr-impl.h, mpfr-test.h, mpfr.h, mul.c, rint.c, round_prec.c, set_inf.c, set_str.c, set_str_raw.c, sin_cos.c, sub.c, tests/reuse.c, tests/tacosh.c, tests/tests.c, tests/texp2.c, tests/thyperbolic.c, tests/tui_pow.c, zeta.c, acos.c, acosh.c, add.c, agm.c, asin.c, asinh.c, atan.c, atanh.c, cbrt.c, const_euler.c, const_log2.c, const_pi.c, cos.c, cputime.h, dim.c, div.c, div_ui.c, erf.c, exp.c, exp2.c, exp_2.c, expm1.c, fma.c, gamma.c, gammaPiAGMformula.c, get_str.c, hypot.c, log.c, log10.c, log1p.c:
+ Remove MPFR_CLEAR_NAN and MPFR_CLEAR_INF. Only use MPFR_CLEAR_FLAGS.
MPFR_SET_INF, MPFR_SET_ZERO and MPFR_SET_ZERO must clear the flags before setting them.
+ Add a new test in tacosh.c : check Inf / Nan flags.
+ Use MPFR_IS_SINGULAR in all the remaining files.
+ Fix the use of MPFR_CLEAR_FLAGS.
+ mpfr-impl.h auto include gmp.h, gmp-impl.h, mpfr.h and limits.h.
+ Rename _PROTO to _MPFR_PROTO, and remove _GMP_PROTO.
+ Add MPFR_INT_SIGN macro.
+ Encapsulate a few more the sign.
2003-11-04 Vincent Lefevre <Vincent.Lefevre@loria.fr>
* acosh.c: Special cases rewritten.
2003-10-30 Vincent Lefevre <Vincent.Lefevre@loria.fr>
* log1p.c: MPFR_RET_NAN -> MPFR_RET(0).
2003-10-28 Patrick Pelissier <Patrick.Pelissier@loria.fr>
* tests/tpow.c, sin.c, sinh.c, sqrt.c, sub.c, sub_one_ulp.c, tan.c, tanh.c, ui_div.c, ui_sub.c, zeta.c, mul.c, mul_ui.c, next.c, pow.c, pow_si.c, pow_ui.c, round_prec.c, set.c, set_si.c, set_ui.c, frac.c, gamma.c, gammaPiAGMformula.c, hypot.c, log.c, log10.c, log1p.c, log2.c, minmax.c, mpfr-impl.h, mpfr.h, eq.c, erf.c, exp.c, exp2.c, expm1.c, fma.c, cmp.c, cmp2.c, cmp_abs.c, cos.c, cosh.c, div.c, acosh.c, add.c, add1.c, add_one_ulp.c, agm.c, asin.c, asinh.c, atan.c, atanh.c, cbrt.c, acos.c:
Use of MPFR_UNLIKELY and MPFR_IS_SINGULAR for fast detection of special values (Nan, Inf or Zero).
Start to encapsulate the sign to be independant of the reprensation (Must be 1 or -1).
2003-10-27 Patrick Pelissier <Patrick.Pelissier@loria.fr>
* init2.c, log.c, mpfr-impl.h, mpfr.h, rint.c, round_prec.c, set.c, set_d.c, set_prc_raw.c, set_prec.c, set_str.c, set_str_raw.c, sqrt_ui.c, sub_ui.c, ui_div.c, ui_sub.c, urandomb.c, add.c, add_ui.c, agm.c, clear.c, div.c, exceptions.c, extract.c, get_d.c, get_si.c, get_str.c, get_ui.c:
Change the internal format of MPFR: ZERO, INF and NAN have special values of exp.
Rename MPFR_ESIZE in MPFR_LIMB_SIZE.
Rename MPFR_ABSZISE in MPFR_ALLOC_SIZE.
Rename MPFR_INIT in MPFR_TMP_INIT (INIT1 too).
"mpfr.h" includes <gmp.h> if GMP isn't detected.
Change the way of detecting stdio.h (To check).
Use mpfr namespace for new definitions in "mpfr.h".
2003-10-27 Vincent Lefevre <Vincent.Lefevre@loria.fr>
* tests/thyperbolic.c:
Fixes for thyperbolic.c merged to the 2.0.2 branch.
* tests/thyperbolic.c: Another fix, for acosh(-INF).
* tests/thyperbolic.c: Fixed exit status.
2003-10-21 Vincent Lefevre <Vincent.Lefevre@loria.fr>
* ChangeLog: Update.
* TODO, const_log2.c, const_pi.c, mpfr.h, tests/trint.c:
Merged the mpfr-2-0-2-branch changes to the trunk.
* const_log2.c, const_pi.c, mpfr.h, TODO:
Fixed the mpfr_round bug (the mpfr_round macro hadn't been updated).
The ternary value wasn't always set in const_log2.c and const_pi.c.
Updated TODO.
* tests/trint.c: Value of y is displayed when a test fails.
* tests/trint.c: More tests (showing a bug for mpfr_round).
* tests/trint.c: More tests for the rounding-to-integer functions.
2003-10-20 Vincent Lefevre <Vincent.Lefevre@loria.fr>
* gmp_op.c, mpfr.texi, rint.c, tests/trint.c:
Merged the mpfr-2-0-2-branch changes to the trunk.
* gmp_op.c: Wrong comment updated.
* rint.c, tests/trint.c, mpfr.texi:
Major update of the function mpfr_rint, including a small semantics
change to behave like the C function rint (unless the result is not
representable); as a consequence, mpfr_round now calls mpfr_rint with
the NEAREST_AWAY internal (to rint.c) rounding mode. Manual updated
to reflect this change.
2003-10-17 Vincent Lefevre <Vincent.Lefevre@loria.fr>
* erf.c, tests/tasin.c, tests/terf.c, tests/tgamma.c, tests/trint.c:
Merged the mpfr-2-0-2-branch changes to the trunk.
* erf.c, tests/terf.c: Fixed ternary value bugs and added tests.
2003-10-16 Vincent Lefevre <Vincent.Lefevre@loria.fr>
* tests/tasin.c, tests/tgamma.c: Added some necessary #include's.
* tests/trint.c:
Added a test against the libc (compiled and performed only when
__STDC_VERSION__ >= 199901L), showing a difference between mpfr_rint
and the C rint function (the behavior of mpfr_rint will change and
the manual will be updated).
* tests/trint.c:
Added mpfr_rint tests (as the behavior of this function will change).
* README.dev: Update.
* VERSION: Updated version on trunk.
* ChangeLog: Update.
* get_d.c, set_d.c: Fixed several bugs.
* get_d.c: Added XDEBUG support (like in set_d.c).
2003-10-15 Vincent Lefevre <Vincent.Lefevre@loria.fr>
* mpfr.texi:
Replaced all non-ASCII characters by an equivalent 7-bit sequence
to support unpatched texinfo.tex files.
2003-10-15 Paul Zimmermann <Paul.Zimmermann@loria.fr>
* tests/reuse.c: removed #define DEBUG (turned on accidentally)
2003-10-15 Vincent Lefevre <Vincent.Lefevre@loria.fr>
* BUGS:
Bug on the ternary value was fixed by Paul Zimmermann on 2003-10-14.
2003-10-14 Paul Zimmermann <Paul.Zimmermann@loria.fr>
* mpfr.texi: added preamble about ternary flag for special functions
* tests/reuse.c, tests/tacos.c, tests/tagm.c, tests/tasin.c, tests/tatan.c, tests/terf.c, tests/texp.c, tests/tgamma.c, tests/tgeneric.c, tests/thypot.c, tests/tzeta.c:
now uses #include "tgeneric.c" everywhere
(and modified test_generic to check also the inexact flag)
* tests/tui_div.c: check_nan() is back
* tests/tlog.c: removed old unused code
* tests/thyperbolic.c: fixed tests for x=0
removed composition tests (were already in-between #if 0 ... #endif)
* pow.c, pow_si.c, pow_ui.c, sin.c, sinh.c, sqrt.c, tan.c, tanh.c, ui_pow_ui.c, zeta.c, factorial.c, gamma.c, hypot.c, log.c, log10.c, log1p.c, log2.c, asinh.c, atan.c, atanh.c, const_euler.c, const_log2.c, const_pi.c, cos.c, cosh.c, erf.c, exp2.c, expm1.c, acos.c, acosh.c, agm.c, asin.c:
replaced mpfr_can_round (approx, err, rnd1, GMP_RNDN, prec)
by mpfr_can_round (approx, err, rnd1, GMP_RNDZ, prec + 1)
which in addition guarantees a correct inexact flag
* TODO: added new items (version number, rounding modes)
* README.dev: added comment about --enable-alloca=debug
2003-10-13 Paul Zimmermann <Paul.Zimmermann@loria.fr>
* BUGS: added section "Problems due to compiler bugs"
* exp3.c, exp_2.c:
change in can_round calls to get correct inexact flag for rounding to nearest
2003-10-10 Paul Zimmermann <Paul.Zimmermann@loria.fr>
* pow.c, tests/tpow.c:
fixed bug in mpfr_pow found by Ming J. Tsai (overflow)
2003-10-08 Vincent Lefevre <Vincent.Lefevre@loria.fr>
* acos.c, asin.c, atan.c:
Removed useless inclusion of standard headers and some #ifdef DEBUG
code. Partial reindentation.
* strncasecmp.c: Added a #include <stddef.h> because size_t is used.
2003-10-07 Paul Zimmermann <Paul.Zimmermann@loria.fr>
* tests/tabs.c, tests/tacos.c, tests/tadd.c, tests/tasin.c, tests/tatan.c, tests/tcmp.c, tests/tconst_log2.c, tests/tdiv.c, tests/tfactorial.c, tests/tfrac.c, tests/tgamma.c, tests/tget_str.c, tests/tlog10.c, tests/tlog1p.c, tests/tpow3.c, tests/tset_d.c, tests/tset_si.c, tests/tset_str.c, tests/tset_z.c, tests/tsub.c, tests/tui_pow.c, tests/tzeta.c, tests/tsin.c:
reduced test time
2003-10-06 Paul Zimmermann <Paul.Zimmermann@loria.fr>
* round_prec.c: fixed comment of mpfr_round_raw_generic
* add1.c, extract.c, get_si.c, get_ui.c:
replaced ABSSIZE by ESIZE (ABSSIZE is the allocated size, and should be
used only in functions init, set_prec, round_prec)
* tests/tadd.c: fixed bug in allocation for in-place operation
* asin.c, atan.c:
inexact flag should now be correct for directed rounding
fixed a bug for mpfr_atan(-Inf) [gave +Pi/2 instead of -Pi/2]
* tests/tatan.c: added test for atan(-Inf)
* set_ld.c: use macros to avoid possible problem with float input
* TODO: new proposal for mpfr_can_round
* mpfr.texi: mpfr_mul_2exp/mpfr_div_2exp are not obsolete
2003-10-05 Vincent Lefevre <Vincent.Lefevre@loria.fr>
* mpfr.texi:
Clearer mpfr_eq documentation (thanks to Kevin Ryde for the remark).
2003-10-03 Vincent Lefevre <Vincent.Lefevre@loria.fr>
* mpfr-impl.h:
MPFR_ASSERTN rewritten to avoid "statement with no effect" warnings
with gcc when the assertion is always true.
* add1.c:
Optimization (thanks to Patrick Pelissier), as the allocated size
may be larger than the size used by the significant bits.
* mpfr.texi, INSTALL: Updated installation notes.
* cmp_abs.c, mpfr.texi:
Infinities are now accepted in mpfr_cmpabs. Updated its definition
in the source (no longer sign(abs(b) - abs(c))).
2003-10-02 Vincent Lefevre <Vincent.Lefevre@loria.fr>
* mpfr.texi: Use @url{} for URLs.
* mpfr.texi: As suggested by PZ:
o documentation of mpfr_fits_* functions moved to the section
on conversions;
o grouped some mpfr_pow special cases;
o explanation concerning the meaning of rnd in mpfr_frac.
* tests/tset_str.c, tests/tset_z.c, tests/tsinh.c, tests/tsqrt.c, tests/tsub.c, tests/ttanh.c, tests/tui_pow.c, tests/tui_sub.c, tests/tzeta.c, tests/tmul.c, tests/tmul_ui.c, tests/tout_str.c, tests/tpow.c, tests/tset.c, tests/tset_d.c, tests/tlog.c, tests/tlog10.c, tests/tlog1p.c, tests/tlog2.c, tests/texpm1.c, tests/tfma.c, tests/tget_str.c, tests/thypot.c, tests/tadd.c, tests/tadd_ui.c, tests/tagm.c, tests/tasinh.c, tests/tatan.c, tests/tatanh.c, tests/tcan_round.c, tests/tcmp.c, tests/tcmp2.c, tests/tcos.c, tests/tcosh.c, tests/tdiv.c, tests/tdiv_ui.c, tests/terf.c, tests/texceptions.c, tests/texp.c, mpfr.h, mpfr.texi, print_raw.c, set_str_raw.c, tests/tacosh.c, BUGS, mpfr-impl.h:
Updated documentation. In particular, mpfr_set_str_raw renamed
as mpfr_set_str_binary. This function and mpfr_print_binary are
now internal functions. mpfr_print_binary no longer prints the
non-significant 0 bits. Updated the source to match the manual.
mpfr_print_binary has been completely rewritten (now directly
prints to stdout, without using an intermediate string). In
mpfr_set_str_binary, replaced atol by strtol + error checking.
2003-10-02 Paul Zimmermann <Paul.Zimmermann@loria.fr>
* mpfr.texi: added paragraph on support/grants
added help for mpfr_erf
2003-10-02 Vincent Lefevre <Vincent.Lefevre@loria.fr>
* mpfr.texi:
Make node titles match section titles, and updated menus and xrefs.
Added a line break after @samp{uninstall}.
2003-10-01 Vincent Lefevre <Vincent.Lefevre@loria.fr>
* TODO, const_log2.c, const_pi.c, mpfr.h, mpfr.texi, zeta.c:
Corrections in the MPFR manual (PZ & VL). Functions mpfr_const_pi,
mpfr_const_log2 and mpfr_zeta now return a ternary value. Updated
TODO file.
2003-09-30 Vincent Lefevre <Vincent.Lefevre@loria.fr>
* BUGS: Added a bug related to the ternary value and worst cases.
* pow_si.c, pow_ui.c: Added exponent range support.
* mpfr.texi: Corrections up to Section 5.6 (PZ & VL).
* get_z_exp.c:
Re-added the assert on the exponent, but replacing MPFR_EMIN_MIN by
MP_EXP_T_MIN (this makes more sense): an assertion failed would mean
that the exponent is not representable (an undefined behavior in the
ISO C standard). If need be, we could choose to return MP_EXP_T_MIN
in such a case, or perhaps MP_EXP_T_MAX to signal an error. The
mantissa would still be meaningful.
2003-09-30 Patrick Pelissier <Patrick.Pelissier@loria.fr>
* TODO: Update TODO & mpfr_set_prec.
2003-09-29 Vincent Lefevre <Vincent.Lefevre@loria.fr>
* mpfr.texi: Corrections up to Section 4.
* AUTHORS: Added authors Kevin Ryde and Patrick Pelissier.
* INSTALL: Removed "known problems" that are no longer problems.
2003-09-26 Vincent Lefevre <Vincent.Lefevre@loria.fr>
* BUGS: Removed bugs related to the tests and to the exponents
as they no longer occur. Updated some potentials bugs.
2003-09-25 Vincent Lefevre <Vincent.Lefevre@loria.fr>
* mpfr-impl.h, mpfr.h, mpfr.texi, tests/tinits.c:
Removed mpfr_inits, mpfr_inits2, mpfr_clears from the documentation.
Moved their prototypes to mpfr-impl.h (internal functions until
decided otherwise).
2003-09-25 Patrick Pelissier <Patrick.Pelissier@loria.fr>
* const_log2.c, const_pi.c, generic.c, atan.c:
Modify 'r' arg of GENERIC from int to long (min 32 bits).
2003-09-25 Vincent Lefevre <Vincent.Lefevre@loria.fr>
* mpfr.texi: 8-bit ISO-8859-1 characters + consistent spelling.
* ChangeLog: Update.
* tests/tgeneric.c, tests/tget_d.c, tests/tget_str.c, tests/thypot.c, tests/tisnan.c, tests/tlog.c, tests/tlog10.c, tests/tmul.c, tests/tmul_2exp.c, tests/tmul_ui.c, tests/tout_str.c, tests/tpow.c, tests/tpow3.c, tests/trandom.c, tests/tconst_pi.c, tests/tcos.c, tests/tdiv.c, tests/tdiv_ui.c, tests/teq.c, tests/terf.c, tests/tests.c, tests/texceptions.c, tests/texp.c, tests/texp2.c, tests/tfactorial.c, tests/tfma.c, tests/tfrac.c, tests/tgamma.c, tests/mpf_compat.h, tests/reuse.c, tests/tabs.c, tests/tacos.c, tests/tadd.c, tests/tagm.c, tests/tasin.c, tests/tatan.c, tests/tcan_round.c, tests/tcbrt.c, tests/tcmp.c, tests/tcmp2.c, tests/tcmp_d.c, tests/tcmp_ui.c, tests/tconst_log2.c:
Changed the remaining stderr to stdout.
2003-09-24 Vincent Lefevre <Vincent.Lefevre@loria.fr>
* tests/tset_str.c, tests/tset_z.c, tests/tsin.c, tests/tsin_cos.c, tests/tsqrt.c, tests/tsub.c, tests/tsub_ui.c, tests/tswap.c, tests/ttan.c, tests/ttrunc.c, tests/tui_div.c, tests/tui_pow.c, tests/tui_sub.c, tests/tzeta.c, tests/trint.c, tests/tround_prec.c, tests/tset.c, tests/tset_d.c, tests/tset_f.c, tests/tset_ld.c, tests/tset_q.c, tests/tset_si.c:
Changed some stderr to stdout.
* comparisons.c, mpfr.texi, TODO:
Added documentation for mpfr_greater_p, mpfr_greaterequal_p,
mpfr_less_p, mpfr_lessequal_p, mpfr_lessgreater_p, mpfr_equal_p
and mpfr_unordered_p.
* TODO, tests/Makefile.am, tests/tcomparisons.c:
Added tests for mpfr_greater_p, mpfr_greaterequal_p, mpfr_less_p,
mpfr_lessequal_p, mpfr_lessgreater_p, mpfr_equal_p, mpfr_unordered_p.
* TODO, tests/tnext.c:
Added a few more tests (involving mpfr_nexttoward). The tests for
the mpfr_nextabove, mpfr_nextbelow and mpfr_nexttoward functions
should now be sufficient.
* tests/Makefile.am, tests/tnext.c, next.c:
Added generic tests for mpfr_nextabove and mpfr_nextbelow.
Fixed a bug in next.c related to assertion checks.
* tests/tset_str.c, TODO, set_str.c:
Accept (case-insensitive) NaN and Inf in input for bases <= 16 for
backward compatibility in these bases (for bases > 16, we cannot
guaranty backward compatibility with the current wanted behavior).
Added tests.
2003-09-24 Paul Zimmermann <Paul.Zimmermann@loria.fr>
* TODO: added one item from Kevin
2003-09-24 Vincent Lefevre <Vincent.Lefevre@loria.fr>
* texinfo.tex:
Added support for some top-bit-set characters in the .texi source.
* mpfr.texi: Added information on special values for mpfr_pow.
2003-09-24 Paul Zimmermann <Paul.Zimmermann@loria.fr>
* Makefile.am:
added MAKEINFOFLAGS = --enable-encoding to get 8-bit characters in mpfr.info
* AUTHORS, mpfr.texi: used ISO-8859-1 in AUTHORS
and @`e, @"o in mpfr.texi (waiting for code for ISO-8859-1 compatibility)
2003-09-24 Kevin Ryde <user42@zip.com.au>
* acinclude.m4 (MPFR_C_LONG_DOUBLE_FORMAT): Remove conftest* temporary
files.
2003-09-24 Vincent Lefevre <Vincent.Lefevre@loria.fr>
* set_str.c: Fixed comparisons (cases @NaN@ and @Inf@).
2003-09-23 Paul Zimmermann <Paul.Zimmermann@loria.fr>
* TODO: two updates
2003-09-22 Vincent Lefevre <Vincent.Lefevre@loria.fr>
* mpfr.texi: Updated mpfr_pow description.
2003-09-22 Paul Zimmermann <Paul.Zimmermann@loria.fr>
* print_rnd_mode.c, set_str.c, set_str_raw.c:
changed __gmp_const into const in *.c
[Torbjo"rn: Please use __gmp_const just in user header files, plain C const in other files.]
2003-09-22 Vincent Lefevre <Vincent.Lefevre@loria.fr>
* TODO: Removed
- allow the ISO C "P" exponent separator for base 16 in input functions
(already done).
* TODO, tests/tset_ld.c: Implemented the following:
- use (LDBL_MAX/2)+(LDBL_MAX/4*LDBL_EPSILON) instead of loop in tset_ld
to get largest power of 2 that fits in a long double
* sub1.c: Added some MPFR_ASSERTN and improved a comment.
* tests/texp.c, tests/tget_str.c:
Avoid string literals longer than 509 characters (ISO C89 limit).
* tests/texceptions.c (test_set_underflow, test_set_overflow):
Cleaner fix (for pre-C99
compilers).
2003-09-22 Kevin Ryde <user42@zip.com.au>
* tests/texceptions.c (test_set_underflow, test_set_overflow): Use
"static" on "r" to allow non-constant initializers.
2003-09-21 Kevin Ryde <user42@zip.com.au>
* mpfr.texi (Converting Floats): In mpfr_get_d_2exp, the rounding mode
is given, it doesn't use the default mode.
* mpfr.texi (Assigning Floats): In mpfr_set_str and mpfr_set_str_raw,
show "const" not "__gmp_const".
(Simultaneous Float Init & Assign): In mpfr_init_set_str, ditto.
* mpfr.texi (Rounding Modes): Add blank line around @itemize.
* mpfr.texi (Miscellaneous Float Functions): In mpfr_urandomb and
mpfr_random, use @math and @le.
2003-09-20 Kevin Ryde <user42@zip.com.au>
* mpfr.texi (Assigning Floats): In mpfr_set_*, remove remarks about
long being rounded (this should be clear already), about rounding of
decimal double constants like 0.1 (too basic to appear here),
(Converting Floats): In mpfr_get_d_2exp, remove remark about exp
exceeding IEEE exponent range (should be clear already).
2003-09-19 Paul Zimmermann <Paul.Zimmermann@loria.fr>
* TODO: updated items: removed conversion from/to float (obsolete)
* TODO, zeta.c: got rid of <math.h> dependency in mpfr_zeta
* tests/tround_prec.c, tests/tzeta.c, round_prec.c, tests/tacos.c, tests/tasin.c, tests/texp.c, tests/tgamma.c, exp_2.c, get_str.c, log_b2.h, mpfr.h, mpfr.texi, cos.c:
mpfr_round_prec is now obsolete
new function mpfr_prec_round replaces it
2003-09-18 Vincent Lefevre <Vincent.Lefevre@loria.fr>
* mpfr-impl.h: Fix for C implementations with 16-bit int.
2003-09-18 Patrick Pelissier <Patrick.Pelissier@loria.fr>
* mpfr-impl.h:
Optimization of macros MPFR_IS_INF, MPFR_IS_NAN and MPFR_IS_FP
2003-09-18 Vincent Lefevre <Vincent.Lefevre@loria.fr>
* set_ld.c:
Removed a comment that should have been removed in revision 1.8.
2003-09-15 Paul Zimmermann <Paul.Zimmermann@loria.fr>
* div.c:
No longer perform the pre-check for exactness when first division step was
actually a complete division. This introduced way too much overhead.
* inp_str.c: replaced test stream==0 by stream==NULL
2003-09-15 Vincent Lefevre <Vincent.Lefevre@loria.fr>
* round_prec.c, tests/tcan_round.c:
Fixed a bug in mpfr_can_round_raw and added other mpfr_can_round
tests.
* round_prec.c, tests/tcan_round.c:
Added a test to tests/tcan_round.c and assertions to round_prec.c.
2003-09-14 Vincent Lefevre <Vincent.Lefevre@loria.fr>
* tests/texceptions.c, exceptions.c, exp.c:
Fixed mpfr_set_overflow, added tests for mpfr_set_underflow
and mpfr_set_overflow, and reverted exp.c.
2003-09-13 Paul Zimmermann <Paul.Zimmermann@loria.fr>
* exp.c: overflow with round to zero was incorrect
2003-09-11 Vincent Lefevre <Vincent.Lefevre@loria.fr>
* Makefile.am, clears.c, inits.c, inits2.c, mpfr.h, mpfr.texi, tests/Makefile.am, tests/tinits.c:
New functions mpfr_inits, mpfr_inits2 and mpfr_clears to initialize or
free several floating-point numbers (written by Patrick Plissier).
2003-09-09 Vincent Lefevre <Vincent.Lefevre@loria.fr>
* TODO, zeta.c:
Replaced malloc/free by __gmp_allocate_func/__gmp_free_func in
mpfr_zeta_pos. zeta.c still uses math (libm) functions -> TODO:
remove this dependence.
* tests/tui_pow.c:
Added a test that makes MPFR crash (coming from the mpfr_zeta crash).
* tests/tzeta.c:
Case that crashes MPFR (coming from test_generic) -> function test1.
* ui_pow.c:
Ended up by simplifying mpfr_ui_pow to fix it completely (with a
call to mpfr_pow, in a way similar to other ui functions). There
isn't significant differences with the old code anyway, and the
case integer^integer wasn't optimized like in mpfr_pow.
The test tui_pow now passes, but the test tzeta now fails!
* tests/tui_pow.c, ui_pow.c:
Code clean-up and reindented. Replaced a 8 by CHAR_BIT,
as CHAR_BIT isn't necessarily equal to 8. The bug seems
to occur on all machines.
2003-09-08 Vincent Lefevre <Vincent.Lefevre@loria.fr>
* tests/tui_pow.c:
Added a test to reproduce a bug (to be fixed later) on all 64-bit
machines.
* tests/tset_str.c: Added a cast (useful under Linux/alpha).
2003-09-01 Vincent Lefevre <Vincent.Lefevre@loria.fr>
* mpfr.h, mpfr.texi, print_rnd_mode.c, TODO:
Changes (Patrick Pelissier's suggestions):
_ mpfr_print_rnd_mode now has __gmp_const char * return type;
_ some corrections in mpfr.texi, documentencoding set.
2003-08-30 Kevin Ryde <user42@zip.com.au>
* tests/Makefile.am (EXTRA_libfrtests_a_SOURCES): Add amd64.asm.
* tests/amd64.asm: New file.
* acinclude.m4: Correction to:
(MPFR_CONFIGS): Add amd64-*-* to x86 test objects.
* tests/tests.c (tests_machine_prec_long_double): Add amd64 to the
comments.
* acinclude.m4 (MPFR_CONFIGS): Add amd64-*-* to x86 test objects.
* tests/tset_ld.c (check_set_get): Improve error messages.
* mpfr-test.h, tests/tests.c (ld_trace): New function.
* set_ld.c (ldbl_max_struct): Use octal character constants, since hex
is an ANSI-ism.
2003-08-07 Vincent Lefevre <Vincent.Lefevre@loria.fr>
* ui_pow_ui.c: Avoid a potential overflow.
2003-08-04 Paul Zimmermann <Paul.Zimmermann@loria.fr>
* agm.c, tests/tagm.c: fixed pb found by Damien Fisher
2003-07-24 Vincent Lefevre <Vincent.Lefevre@loria.fr>
* get_d.c:
If the exponent of the number is meaningless (src = NaN, inf or 0),
0 is stored in expptr (behavior similar to the ISO C frexp function).
2003-07-21 Paul Zimmermann <Paul.Zimmermann@loria.fr>
* TODO: added one item
2003-07-19 Kevin Ryde <user42@zip.com.au>
* tests/Makefile.am (check_PROGRAMS): Add tget_d_2exp.c.
* tests/tget_d_2exp.c: New file, partly derived from tget_d.c.
* get_d.c (mpfr_get_d_2exp): Ensure 0.5 <= abs(ret) < 1.0 is respected
when rounding away from zero.
* mpfr-test.h, tests/tests.c (d_trace): New function.
* mpfr.texi (Converting Floats): mpfr_get_d_2exp stores to a long.
* get_d.c (mpfr_get_d_2exp): Store exp in a long, same as
mpz_get_d_2exp and mpf_get_d_2exp.
2003-07-18 Kevin Ryde <user42@zip.com.au>
* mpfr.h (mpfr_get_d_2exp): Store exp in a long, same as
mpz_get_d_2exp and mpf_get_d_2exp.
2003-07-15 Vincent Lefevre <Vincent.Lefevre@loria.fr>
* get_d.c: Updated comment.
2003-07-08 Vincent Lefevre <Vincent.Lefevre@loria.fr>
* random2.c: Correction in a comment (patch by Torbjorn).
2003-07-01 Paul Zimmermann <Paul.Zimmermann@loria.fr>
* mpfr.texi, round_prec.c: can_round returns 0 for NaN/Inf
* round_prec.c: fixed Uninitialized memory read in mpfr_can_round
(when b is NaN or Inf)
2003-06-30 Paul Zimmermann <Paul.Zimmermann@loria.fr>
* tests/tget_str.c:
fixed array bound write (need 6+1 characters in s1 to represent -@inf@ + \0)
2003-06-28 Kevin Ryde <user42@zip.com.au>
* get_d.c: Add "const" to IEEE byte sequence data.
* tests/tests.c (tests_rand_end): Remove explicit __gmp_rands
clearing, it's what RANDS_CLEAR does already.
2003-06-26 Paul Zimmermann <Paul.Zimmermann@loria.fr>
* cmp_d.c, get_d.c, get_ld.c, mpfr-impl.h, set_d.c, set_dfl_prec.c, set_ld.c:
moved macros for [L]DBL_MANT_DIG in mpfr-impl.h
2003-06-25 Paul Zimmermann <Paul.Zimmermann@loria.fr>
* urandomb.c: fixed several problems noticed by Kevin
* tests/tset_ld.c: changed test for 2^1024, using LDBL_MAX_EXP
2003-06-24 Kevin Ryde <user42@zip.com.au>
* mpfr-math.h: Remove file, no longer used.
* Makefile.am (libmpfr_a_SOURCES): Remove mpfr-math.h.
* get_d.c (MPFR_DBL_INFP, MPFR_DBL_INFM, MPFR_DBL_NAN): Make private
definitions based on IEEE byte sequences, in particular avoid HUGE_VAL
from mpfr-math.h since that's not infinity on hppa1.1-hp-hpux10.
Remove includes of mpfr-math.h, math.h and stddef.h.
* tests/tget_d.c (check_inf_nan): New test.
* acinclude.m4 (MPFR_C_LONG_DOUBLE_FORMAT): Use octal char constants,
'\xHH' is an ANSI-ism.
2003-06-24 Paul Zimmermann <Paul.Zimmermann@loria.fr>
* tests/tset_ld.c:
check 2^1024 only when sizeof(long double) > sizeof(double)
* tests/tsub.c: correction to previous patch
* tests/tadd.c:
correction to previous patch: problem was that x and u can be 0,
then MPFR_PREC() undefined
2003-06-24 Kevin Ryde <user42@zip.com.au>
* tests/tests.c (tests_start_mpfr): Make stdout and stderr unbuffered.
* tests/tsub.c, tests/tadd.c (check_inexact):
For pz, use at least MPFR_PREC_MIN
since this is required by mpfr_set_prec.
2003-06-23 Kevin Ryde <user42@zip.com.au>
* TODO: Remove mingw portability of random/rand48, no longer used.
* TODO: Remove __setfpucw, no longer used.
Remove mpfr_integer_p, done.
Remove gmp rand functions in test programs, done.
Remove MPFR_CHECK_RANDOMIZE, done (as GMP_CHECK_RANDOMIZE).
2003-06-21 Vincent Lefevre <Vincent.Lefevre@loria.fr>
* mpfr.texi: mpfr_random is deprecated.
2003-06-20 Paul Zimmermann <Paul.Zimmermann@loria.fr>
* tests/tdiv.c, tests/tsub.c, tests/tui_div.c:
changed since mpfr_random now can return 0
2003-06-20 Vincent Lefevre <Vincent.Lefevre@loria.fr>
* random.c:
The distribution should now be uniform (mpfr_random implemented
by calling mpfr_urandomb).
* mpfr.h, mpfr.texi, urandomb.c:
Take the current exponent range into account in mpfr_urandomb
(which now returns an int).
* urandomb.c: Bug fix.
2003-06-20 Paul Zimmermann <Paul.Zimmermann@loria.fr>
* tests/tests.c:
moved _gmp_rands_initialized stuff from tests_end_mpfr() to tests_rand_end()
* tests/tset_z.c, tests/tset_si.c: reduced default number of tests
improved style
2003-06-19 Paul Zimmermann <Paul.Zimmermann@loria.fr>
* exp_2.c: fixed bug in mpfr_exp2_aux2 (spe175.testdrive.hp.com)
* exp3.c: improved style
* tests/texp.c: added more information in case of failure
* tests/tests.c, tests/tlog.c, tests/tmul_2exp.c, tests/tout_str.c, tests/tset_d.c, tests/tset_f.c, tests/tset_si.c, tests/tset_str.c, tests/tset_z.c, tests/tadd.c, tests/tagm.c:
removed randseed() stuff [obsolete now we use the GMP mechanism]
* tests/tzeta.c: added memory test mechanism
* tests/tdiv.c: added new test from Parks
* zeta.c: fixed allocation problem (forgot to clear)
2003-06-19 Vincent Lefevre <Vincent.Lefevre@loria.fr>
* mpfr-test.h: Removed drand48/lrand48/srand48 prototypes.
2003-06-18 Kevin Ryde <user42@zip.com.au>
* tests/tset_z.c, tests/tset_si.c:
Don't use mpz_get_d1, since a 53-bit double is not
enough when long is 64-bits.
2003-06-13 Kevin Ryde <user42@zip.com.au>
* tests/tests.c: Use autoconf recommended style for time.h with
sys/time.h.
* acinclude.m4 (MPFR_CONFIGS): Require AC_HEADER_TIME, add
AC_CHECK_HEADERS of sys/time.h.
* acinclude.m4 (MPFR_CONFIGS): Add AC_CHECK_FUNCS of gettimeofday.
2003-06-13 Paul Zimmermann <Paul.Zimmermann@loria.fr>
* tests/tsqrt.c: moved disabled test to "special" code
* algorithms.bib, algorithms.tex: added reference to Higham
* algorithms.tex, erf.c, exp.c: improved error analysis on erf
* tests/tlog.c: improved indentation
2003-06-12 Paul Zimmermann <Paul.Zimmermann@loria.fr>
* tests/tests.c: added support for random see
(when env. variable GMP_CHECK_RANDOMIZE set)
2003-06-12 Vincent Lefevre <Vincent.Lefevre@loria.fr>
* tests/tatan.c, tests/tcmp.c, tests/tcmp2.c, tests/tdiv_ui.c, tests/terf.c, tests/tests.c, tests/texp.c, tests/tfma.c, tests/tgamma.c, tests/tgeneric.c, tests/thypot.c, tests/tlog.c, tests/tmul.c, tests/tmul_2exp.c, tests/tmul_ui.c, tests/tout_str.c, tests/tpow.c, tests/tpow3.c, tests/trint.c, tests/tset.c, tests/tset_d.c, tests/tset_f.c, tests/tset_si.c, tests/tset_str.c, tests/tset_z.c, tests/tsqrt.c, tests/tsub.c, tests/tsub_ui.c, tests/tui_div.c, tests/tui_pow.c, tests/tui_sub.c, tests/tzeta.c, acinclude.m4, mpfr-test.h, tests/tabs.c, tests/tacos.c, tests/tadd.c, tests/tagm.c, tests/tasin.c:
Replaced misc random functions by GMP ones.
* mpfr-test.h, tests/tests.c: Added function randlimb().
* erf.c: Fixed a few bugs concerning special values, code simplified.
2003-06-12 Paul Zimmermann <Paul.Zimmermann@loria.fr>
* Makefile.am, algorithms.tex, erf.c, mpfr.h, mpfr.texi, tests/Makefile.am, tests/terf.c:
added error function
2003-06-11 Vincent Lefevre <Vincent.Lefevre@loria.fr>
* random2.c: Make x positive + some minor changes.
* random2.c: New version written by Torbjorn Granlund.
2003-06-10 Paul Zimmermann <Paul.Zimmermann@loria.fr>
* algorithms.bib, algorithms.tex: updated formular for erf
added url for Abramowitz & Stegun
2003-06-10 Vincent Lefevre <Vincent.Lefevre@loria.fr>
* get_d.c: Added a comment concerning NO_MATH_DEFS.
2003-06-10 Paul Zimmermann <Paul.Zimmermann@loria.fr>
* tests/tgamma.c: made test faster
* tests/tzeta.c: reduced test time
* tests/tdiv.c: reduced time of test
* tests/tfrac.c: reduced time
2003-06-09 Kevin Ryde <user42@zip.com.au>
* tests/tabs.c, tests/tacos.c, tests/tadd.c, tests/tasin.c, tests/tatan.c, tests/tcmp2.c, tests/tconst_euler.c, tests/tconst_log2.c, tests/tconst_pi.c, tests/tcos.c, tests/tdiv.c, tests/tdiv_ui.c, tests/texceptions.c, tests/texp.c, tests/tfactorial.c, tests/tfma.c, tests/tgamma.c, tests/tgeneric.c, tests/tget_str.c, tests/thyperbolic.c, tests/thypot.c, tests/tlog.c, tests/tmul_ui.c, tests/tpow.c, tests/tpow3.c, tests/trandom.c, tests/tset_d.c, tests/tset_si.c, tests/tset_str.c, tests/tsin_cos.c, tests/tsqrt.c, tests/tsub.c, tests/tsub_ui.c, tests/tui_div.c, tests/tui_pow.c, tests/tui_sub.c, tests/tzeta.c:
Patch by Torbjorn: use puts not putchar, to avoid GNUPro compiler bug.
2003-06-08 Kevin Ryde <user42@zip.com.au>
* tests/tsqrt.c: Disable "8093416094703476*2^(-1075)" because mips64
SGI cc doesn't seem to like the value (a denorm).
* get_d.c: Include <stddef.h> before <math.h>, to avoid problems with
gcc 3.2 on hppa2.0w-hp-hpux11.11.
* mpfr-test.h (random): Remove prototype, since it conflicts with
stdlib.h on osf4.
2003-05-28 Vincent Lefevre <Vincent.Lefevre@loria.fr>
* mpfr-test.h, tests/tzeta.c, mpfr-impl.h:
Added prototypes of non-standard functions that weren't always defined.
* mpfr-impl.h:
MPFR_EXP_CHECK is now defined when WANT_ASSERT is defined.
2003-05-26 Vincent Lefevre <Vincent.Lefevre@loria.fr>
* zeta.c:
The special case s = 1 is taken into account (the previous code
seemed to work, but perhaps not for rigorous reasons).
* tests/tzeta.c: Added test for case s = 1.
* round_prec.c (mpfr_round_prec):
Bug fixed (case zero wasn't taken into account)
and 'assertion failed' avoided.
* add_one_ulp.c, div_ui.c, sub_one_ulp.c:
Update related to MPFR_GET_EXP and MPFR_SET_EXP.
* rint.c: MPFR_GET_EXP (r) -> exp.
* swap.c: Function mpfr_swap rewritten using memcpy.
* set.c, set_si.c, set_ui.c, sqrt_ui.c, sub_ui.c, add_ui.c, mpfr-impl.h:
Updates/optimizations related to MPFR_GET_EXP and MPFR_SET_EXP.
2003-05-23 Vincent Lefevre <Vincent.Lefevre@loria.fr>
* add1.c: Code clean-up. Assertion failed avoided.
2003-05-22 Vincent Lefevre <Vincent.Lefevre@loria.fr>
* ChangeLog: Update.
* mpfr-impl.h, mul.c, mul_2si.c, mul_2ui.c, mul_ui.c, next.c, pow.c, print_raw.c, random.c, random2.c, rint.c, round_prec.c, set.c, set_d.c, set_exp.c, set_f.c, set_si.c, set_str.c, set_str_raw.c, set_ui.c, set_z.c, setmax.c, setmin.c, sin.c, sin_cos.c, sinh.c, sqrt.c, sqrt_ui.c, sub.c, sub1.c, sub_one_ulp.c, sub_ui.c, swap.c, tan.c, tanh.c, ui_div.c, ui_pow.c, ui_sub.c, urandomb.c, zeta.c, acos.c, acosh.c, add.c, add1.c, add_one_ulp.c, add_ui.c, asin.c, asinh.c, atan.c, atanh.c, cbrt.c, cmp.c, cmp2.c, cmp_abs.c, cmp_si.c, cmp_ui.c, const_log2.c, const_pi.c, cos.c, div.c, div_2si.c, div_2ui.c, div_ui.c, eq.c, exceptions.c, exp.c, exp2.c, exp3.c, exp_2.c, expm1.c, frac.c, generic.c, get_d.c, get_exp.c, get_ld.c, get_si.c, get_str.c, get_ui.c, get_z_exp.c, hypot.c, isinteger.c, log.c, log1p.c, log2.c, BUGS:
Macros MPFR_EXP_INVALID (invalid exponent value) and MPFR_EXP_CHECK
added. Code update to use MPFR_GET_EXP and MPFR_SET_EXP instead of
MPFR_EXP to allow more bug detection related to special values.
Macros MPFR_SET_NAN, MPFR_SET_INF, MPFR_SET_ZERO and MPFR_INIT set
the exponent of the number to MPFR_EXP_INVALID if MPFR_EXP_CHECK
is defined. Compile with -DMPFR_EXP_CHECK and make check to see
the potential problems; currently, 40 of 76 tests fail.
2003-05-21 Vincent Lefevre <Vincent.Lefevre@loria.fr>
* mpfr-impl.h:
MPFR_ASSERTD: use MPFR_ASSERTN instead of ASSERT_ALWAYS so that
it can be used as an expression.
New macros MPFR_GET_EXP and MPFR_SET_EXP (they should almost
completely replace MPFR_EXP).
2003-05-19 Paul Zimmermann <Paul.Zimmermann@loria.fr>
* tests/teq.c: added test 'special'
* eq.c: fixed bug when n_bits larger than size*BITS_PER_MP_LIMB
2003-05-18 Vincent Lefevre <Vincent.Lefevre@loria.fr>
* eq.c: Bugs fixed (special cases).
2003-05-13 Paul Zimmermann <Paul.Zimmermann@loria.fr>
* tests/Makefile.am: removed dummy test tdump
* TODO: compatibility with mpf is done
* mpfr.texi, cmp_d.c, mpf2mpfr.h: updated mpfr_cmp_d
added mpfr_cmp_d in mpf2mpfr.h and mpfr.texi
2003-05-13 Guillaume Hanrot <Guillaume.Hanrot@loria.fr>
* cmp_d.c, tests/tcmp_d.c: Added cmp_d.c, tcmp_d.c.
* mpfr.h, tests/Makefile.am, tests/mpf_compat.h, Makefile.am:
Added cmp_d/tcmp_d.
2003-04-11 Paul Zimmermann <Paul.Zimmermann@loria.fr>
* tests/reuse.c, zeta.c: moved test for NaN/Inf
* Makefile.am, mpfr.h, mpfr.texi, tests/Makefile.am, tests/tzeta.c, zeta.c:
added Riemann Zeta function (contribution from Jean-Luc Re'my)
2003-04-08 Kevin Ryde <user42@zip.com.au>
* mpfr.texi: Move macros down below @copying.
* mpfr.texi: Add @: after various abbreviations.
2003-04-01 Paul Zimmermann <Paul.Zimmermann@loria.fr>
* exp_2.c: fixed pb with count_leading_zeros (n=0)
* tests/texp.c: added test for bug found by Franky Backeljauw
* exp_2.c: fixed bug found by Franky
2003-03-28 Vincent Lefevre <Vincent.Lefevre@loria.fr>
* exp3.c: Added some asserts.
2003-03-28 Paul Zimmermann <Paul.Zimmermann@loria.fr>
* tests/tconst_pi.c:
fixed pb found by Will Galway <galway@pims.math.ca> (continued)
2003-03-28 Guillaume Hanrot <Guillaume.Hanrot@loria.fr>
* const_pi.c, tests/tconst_pi.c: Patches from W. Galway.
2003-03-28 Paul Zimmermann <Paul.Zimmermann@loria.fr>
* mpfr.texi: fixed reference to Plouffe/Bailey/Borwein formula
2003-03-27 Guillaume Hanrot <Guillaume.Hanrot@loria.fr>
* const_pi.c: Credits for the pi formula modified.
2003-03-26 Paul Zimmermann <Paul.Zimmermann@loria.fr>
* mpfr.texi, set_str.c, set_str_raw.c, mpfr.h:
changed back "unsigned char *" to "char *"
2003-03-25 Paul Zimmermann <Paul.Zimmermann@loria.fr>
* mpfr.h, mpfr.texi, set_str.c, set_str_raw.c:
char * -> const unsigned char * for mpfr_set_str, mpfr_set_str_raw,
and mpfr_init_set_str
2003-03-24 Paul Zimmermann <Paul.Zimmermann@loria.fr>
* get_ld.c: removed unused variable
2003-03-18 Paul Zimmermann <Paul.Zimmermann@loria.fr>
* mpfr.texi: fixed documentation bug in mpfr_log2 (exact results)
* tests/tsqrt.c: changed new test in 'check4' style
2003-03-17 Vincent Lefevre <Vincent.Lefevre@loria.fr>
* BUGS, mpfr.texi: Update concerning underflow problems.
2003-03-17 Kevin Ryde <user42@zip.com.au>
* tests/tpow.c (main): Comment out underflows(), until it works.
* get_z_exp.c: Comment out an assert tickled for an f with exponent
near MPFR_EMIN_MIN.
2003-03-16 Kevin Ryde <user42@zip.com.au>
* mpfr-impl.h (LONGDOUBLE_NAN_ACTION): New version for IEEE quad big
endian, fixing HP cc.
(WANT_LONGDOUBLE_VOLATILE): New define for when LONGDOUBLE_VOLATILE is
wanted.
(WANT_GMPFR_LONGDOUBLE_VOLATILE): New define for when
__gmpfr_longdouble_volatile is wanted.
* volatile.c: Use WANT_GMPFR_LONGDOUBLE_VOLATILE.
* acinclude.m4 (MPFR_C_LONG_DOUBLE_FORMAT): Add IEEE quad big endian,
check long double exists before testing.
2003-03-14 Vincent Lefevre <Vincent.Lefevre@loria.fr>
* tests/tpow.c: Added underflow test showing a bug in mpfr_pow.
2003-03-14 Paul Zimmermann <Paul.Zimmermann@loria.fr>
* pow.c: fixed bug for x=1
2003-03-14 Vincent Lefevre <Vincent.Lefevre@loria.fr>
* BUGS, pow.c: This wasn't a compiler bug; mpfr_pow is really buggy.
Added some asserts to show that.
* tests/tpow.c, BUGS:
The infinite loop concerning 1^0.5 was probably due to a bug in the
compiler [cc (GCC) 3.2.3 20030309 (Debian prerelease)]: adding some
printf's changes the values of the variables and the correct result
is returned.
2003-03-13 Paul Zimmermann <Paul.Zimmermann@loria.fr>
* tests/tpow.c: fixed sign problem in particular_cases()
* ui_pow.c: declared mpfr_ui_pow_is_exact as static
* pow_si.c, pow.c: gnu-style
2003-03-13 Vincent Lefevre <Vincent.Lefevre@loria.fr>
* tests/tpow3.c:
Removed some useless and inaccurate tests on NaN, infinities, zeros
(as the behavior of mpfr_pow on such particular cases has changed);
similar tests were added to "tests/tpow.c".
* BUGS, tests/tpow.c: Test of mpfr_pow: particular cases. Bugs.
2003-03-12 Vincent Lefevre <Vincent.Lefevre@loria.fr>
* pow.c, tests/tpow3.c: Special cases for mpfr_pow().
2003-03-11 Paul Zimmermann <Paul.Zimmermann@loria.fr>
* out_str.c:
when stream=NULL, use stdout (as indicated in the documentation)
2003-03-03 Vincent Lefevre <Vincent.Lefevre@loria.fr>
* sin.c: mpfr_sin_sign -> static.
* pow.c: Useless declaration removed.
* pow.c: Special cases for mpfr_pow: like Section F.9.4.4 of the
ISO C99 standard.
* pow.c: Prototype fixed.
2003-02-27 Vincent Lefevre <Vincent.Lefevre@loria.fr>
* set_str.c, tests/tset_str.c, mpfr.texi:
mpfr_set_str now accepts a binary exponent for base 16
(as defined by the ISO C99 standard).
* TODO: Comment concerning the installation of MPFR: done.
* INSTALL, mpfr.texi: New recommendation to install MPFR.
2003-02-24 Guillaume Hanrot <Guillaume.Hanrot@loria.fr>
* tests/tget_str.c, tests/tset_str.c, dump.c, get_str.c, out_str.c, print_raw.c, set_str.c:
Replaced NaN, Inf by @NaN@, @Inf@ [for bases > 24].
2003-02-21 Paul Zimmermann <Paul.Zimmermann@loria.fr>
* tests/thypot.c: added one test
2003-02-21 Vincent Lefevre <Vincent.Lefevre@loria.fr>
* get_ui.c: Fixed cast (though unnecessary).
2003-02-21 Paul Zimmermann <Paul.Zimmermann@loria.fr>
* tests/tsqrt.c: added one test
2003-02-13 Paul Zimmermann <Paul.Zimmermann@loria.fr>
* tests/Makefile.am: added mpf_compat, mpfr_compat
* tests/mpf_compat.c, tests/mpf_compat.h, tests/mpfr_compat.c:
test files for mpf-mpfr compatibility
* set_str.c: added mpfr_init_set_str
* mpfr.h: added "const" to char* arg. of mpfr_init_set_str
* mpf2mpfr.h: added macros for new mpfr functions
changed some old macros
* tests/tpow3.c, pow.c: mpfr_isinteger -> mpfr_integer_p
* mpfr.texi:
document new functions (fits_*, get_ui, get_si, get_d_2exp)
added integer_p that was not documented
* mpfr.h: mpfr_isinteger -> mpfr_integer_p
new functions: mpfr_fits_*, mpfr_get_ui, mpfr_get_si, mpfr_get_d_2exp
* log10.c, isinteger.c: mpfr_isinteger -> mpfr_integer_p
* get_d.c: added mpfr_get_d_2exp
* frac.c, exp2.c: mpfr_isinteger -> mpfr_integer_p
* Makefile.am: new functions mpfr_fits_* and mpfr_get_ui/si
* fits_s.h, fits_sint.c, fits_slong.c, fits_sshort.c, fits_u.h, fits_uint.c, fits_ulong.c, fits_ushort.c, get_si.c, get_ui.c:
new functions mpfr_fits_* and mpfr_get_[us]i
2003-01-27 Paul Zimmermann <Paul.Zimmermann@loria.fr>
* tests/tset_str.c: check for +/-0.0 after variable set to NaN
2003-01-25 Vincent Lefevre <Vincent.Lefevre@loria.fr>
* acinclude.m4:
Suppressed the underscores of AC_CHECK_LIBM in comments, otherwise
aclocal 1.4-p6 includes libtool code in aclocal.m4 and this leads
to compilation problems.
2003-01-25 Kevin Ryde <user42@zip.com.au>
* mpfr.h (_MPFR_H_HAVE_FILE): Copy FILE define tests from gmp.h, adds
Borland, Microsoft and Apple MPW.
* Makefile.am (libmpfr_a_SOURCES): Add volatile.c.
* volatile.c: New file.
* tests/tset_ld.c (Isnan_ld):
New function based on LONGDOUBLE_NAN_ACTION, use it
instead of LONGDOUBLE_ISNAN.
* mpfr-test.h (LONGDOUBLE_ISNAN): Remove.
* set_ld.c (LONGDOUBLE_ISNAN):
Remove this, use LONGDOUBLE_NAN_ACTION instead.
* mpfr-impl.h (LONGDOUBLE_NAN_ACTION): New macro.
2003-01-24 Kevin Ryde <user42@zip.com.au>
* set_str.c: Allow "e" exponent in base<=10 not <10. Restrict "E"
exponent to base<=10 too, since digits are not case sensitive.
2003-01-24 Vincent Lefevre <Vincent.Lefevre@loria.fr>
* tests/tcmp2.c, tests/tconst_log2.c, tests/tdiv.c, tests/tdiv_ui.c, tests/teq.c, tests/texceptions.c, tests/texp.c, tests/tgeneric.c, tests/tget_d.c, tests/tget_str.c, tests/thyperbolic.c, tests/tlog.c, tests/tmul_ui.c, tests/tout_str.c, tests/tpow.c, tests/trandom.c, tests/tset_ld.c, tests/tset_q.c, tests/tset_z.c, tests/tsqrt.c, tests/tsqrt_ui.c, tests/tsub.c, tests/tsub_ui.c, tests/tui_div.c, tests/tabs.c, tests/tatan.c:
Prototypes: use static. Some code reformatting.
* set_str.c: The sign wasn't set when the result was zero.
2003-01-24 Kevin Ryde <user42@zip.com.au>
* set_str.c:
Reject "", "+" and "-", also fixing an attempt to allocate a 0 length
block in these cases.
* set_str.c: Clear NAN and INF flags when setting result to zero.
2003-01-24 Vincent Lefevre <Vincent.Lefevre@loria.fr>
* tests/tadd.c, tests/tadd_ui.c, tests/tagm.c, tests/tcos.c, tests/tmul.c, tests/tsin.c, tests/tsin_cos.c, tests/tsub_ui.c, tests/ttan.c, tests/tui_sub.c:
Fixed prototypes (use static...).
* tests/tcbrt.c: Missing #include.
2003-01-23 Paul Zimmermann <Paul.Zimmermann@loria.fr>
* tests/tget_d.c: workaround for gcc bug on m68040-unknown-netbsd1.4.1
* tests/tget_d.c: added cast to double
2003-01-23 Kevin Ryde <user42@zip.com.au>
* tests/tadd.c:
Use mpfr_set_nan and mpfr_set_inf for NaN and Inf tests,
not "double" nans and infs.
2003-01-22 Kevin Ryde <user42@zip.com.au>
* tests/tmul.c, tests/tui_sub.c, tests/tsub_ui.c, tests/tadd_ui.c:
Use mpfr_set_nan and mpfr_set_inf for NaN and Inf tests,
not "double" nans and infs.
* tests/tgamma.c, tests/tdiv.c, tests/tui_div.c, tests/tzeta.c, tests/tsqrt.c:
Use tests_start_mpfr / tests_end_mpfr.
* tests/tout_str.c: Use tests_start_mpfr / tests_end_mpfr.
(check_large): Use __gmp_free_func to free mpfr_get_str result.
* tests/tget_d.c, tests/tcbrt.c: Use tests_start_mpfr / tests_end_mpfr.
* tests/tsin_cos.c:
Use mpfr_set_nan and mpfr_set_inf for NaN and Inf tests,
not "double" nans and infs. Use tests_start_mpfr / tests_end_mpfr.
* tests/tagm.c:
Use mpfr_set_nan and mpfr_set_inf for NaN and Inf tests,
not "double" nans and infs.
* tests/tsqrt.c:
Remove tests involving "double" nans and infs, covered by check_nan.
* tests/tsin.c, tests/tcos.c, tests/ttan.c:
Use mpfr_set_nan and mpfr_set_inf for NaN and Inf tests,
not "double" nans and infs.
2003-01-18 Kevin Ryde <user42@zip.com.au>
* Makefile.am:
Move log_b2.h from include_HEADERS to libmpfr_a_SOURCES, it doesn't
want to be installed.
* set_str.c:
Correction to memory leak fix, need "result" for final rounding.
2003-01-17 Kevin Ryde <user42@zip.com.au>
* set_str.c: Fix two memory leaks.
* tests/Makefile.am (LDADD): Add $(MPFR_LIBM).
* configure.in: Remove -lm setups, now handled by MPFR_CHECK_LIBM.
* acinclude.m4 (MPFR_CHECK_LIBM): New macro.
(MPFR_CONFIGS): Use it.
2003-01-17 Paul Zimmermann <Paul.Zimmermann@loria.fr>
* BUGS, NEWS, README, TODO, acinclude.m4:
added copyright notices and license statements
* tests/tcmp2.c:
now use __gmpfr_floor_log2 instead of floor/log to get rid of math.h
* tests/tagm.c: removed unused function dagm(), and get rid of math.h
added tests for NaN, Inf's
2003-01-17 Vincent Lefevre <Vincent.Lefevre@loria.fr>
* acinclude.m4:
Re-added $OBJEXT, using AC_REQUIRE([AC_OBJEXT]) for old autoconf.
2003-01-16 Paul Zimmermann <Paul.Zimmermann@loria.fr>
* tests/tcmp2.c: put back math.h
* tests/tagm.c: added back math.h (for sqrt)
* Makefile.am: added log_b2.h in include_HEADERS
* tests/Makefile.am: added tsin_cos
* tests/tadd.c: added #ifdef HAVE_DENORMS for denormalized test
* tests/tcmp2.c, tests/tcmp_ui.c, tests/teq.c, tests/tmul_ui.c, tests/tout_str.c, tests/tset.c, tests/tsub.c:
removed math.h
* tests/tset_d.c, tests/tsin.c, tests/tsin_cos.c, tests/tsqrt.c, tests/tsqrt_ui.c, tests/tsub_ui.c, tests/tadd.c, tests/tcmp.c, tests/tcos.c, tests/tdiv.c, tests/tdiv_ui.c, tests/texp.c, tests/tlog.c, tests/tmul.c:
added year 2003 in copyright line
removed math.h
* tests/ttan.c, tests/tui_div.c, tests/tui_sub.c:
added 2003, removed math.h
* tests/tabs.c: added 2003
* tests/tadd_ui.c: added 2003, removed math.h
* tests/tagm.c: removed math.h
* tests/tset_str.c, tests/memory.c: added 2003
* tests/trandom.c: removed math.h
* tests/tget_str.c: added year 2003
removed math.h
* tests/tadd.c: patch for compiler bug on hppa2.0w-hp-hpux11.11
2003-01-16 Vincent Lefevre <Vincent.Lefevre@loria.fr>
* set_ld.c: Macro LONGDOUBLE_ISNAN wasn't defined.
2003-01-16 Paul Zimmermann <Paul.Zimmermann@loria.fr>
* mpfr-test.h: now always define Isnan
* mpfr-impl.h: moved LONGDOUBLE_ISNAN to mpfr-test.h
* acinclude.m4: removed check from isnan
* tests/tcmp.c, tests/tcos.c, tests/tdiv.c, tests/tdiv_ui.c, tests/tests.c, tests/texp.c, tests/tlog.c, tests/tmul.c, tests/tset_d.c, tests/tset_ld.c, tests/tsin.c, tests/tsin_cos.c, tests/tsqrt.c, tests/tsqrt_ui.c, tests/tsub_ui.c, tests/ttan.c, tests/tui_div.c, tests/tui_sub.c, tests/tabs.c, tests/tadd.c, tests/tadd_ui.c, tests/tagm.c:
replaced isnan() by Isnan()
2003-01-16 Vincent Lefevre <Vincent.Lefevre@loria.fr>
* acinclude.m4:
AC_PREREQ(2.50) added (useful when both autoconf 2.13 and autoconf
2.50 are installed, with a wrapper to select the required version).
* tests/tests.c: Comment in mpfr_test_init: s/preprocessor/compiler/.
2003-01-16 Paul Zimmermann <Paul.Zimmermann@loria.fr>
* tests/tests.c:
fixed pb in mpfr_test_init with the compiler optimizing too much
(this happened on Alpha with -O1 or higher)
2003-01-15 Vincent Lefevre <Vincent.Lefevre@loria.fr>
* zeta.c: Standard prototype only. Particular cases added.
2003-01-15 Paul Zimmermann <Paul.Zimmermann@loria.fr>
* get_str.c, set_str.c:
moved common prototype for mpn_exp in mpfr-impl.h
* mpfr-impl.h: removed spurious ; after MPFR_ESIZE
added prototype for mpn_exp
* TODO: removed items done
* tests/tset_str.c: new tests from Alain Delplanque
* set_str.c: new version using mpn_set_str
[written by Alain Delplanque, edited by Paul Zimmermann]
2003-01-15 Vincent Lefevre <Vincent.Lefevre@loria.fr>
* acinclude.m4:
Replace $OBJEXT by o (as $OBJEXT isn't defined everywhere).
* acinclude.m4:
A ` must be quoted to avoid an error with Autoconf 2.13.
* gamma.c: Use type mp_prec_t for precisions.
* gamma.c: Source re-indented.
* gamma.c: Several bugs fixed concerning the particular cases.
<stdio.h> and <stdlib.h> not included by default.
int mpfr_gamma _PROTO ... removed (was useless).
2003-01-15 Paul Zimmermann <Paul.Zimmermann@loria.fr>
* gamma.c: get rid of ceil() call, that requires -lm
2003-01-14 Kevin Ryde <user42@zip.com.au>
* get_ld.c:
Force LDBL_MANT_DIG on IEEE extended, to avoid problems with
some i386 gcc.
* set_ld.c:
Avoid problems with bad LDBL_MAX and LDBL_MANT_DIG on some i386 gcc.
* acinclude.m4 (MPFR_C_LONG_DOUBLE_FORMAT): New macro.
(MPFR_CONFIGS): Use it.
2003-01-11 Vincent Lefevre <Vincent.Lefevre@loria.fr>
* tests/memory.c: Required casts added (and switch from uint to ulong);
in particular, useful on Alpha.
2003-01-10 Kevin Ryde <user42@zip.com.au>
* tests/trandom.c, tests/tconst_pi.c:
Tolerate empty argv[1], which can arise from ancient bash executing
the libtool shared library wrapper script.
* get_ld.c:
Avoid unnecessary extra power of 2 squaring, so as not to provoke an
overflow exception when result is in range.
2003-01-10 Vincent Lefevre <Vincent.Lefevre@loria.fr>
* tests/tests.c: Extended precision detection fixed.
2003-01-09 Paul Zimmermann <Paul.Zimmermann@loria.fr>
* get_ld.c: fixed possible overflow when EXP=1024
* set_ld.c: rewritten to avoid overflows
* tests/tpow.c: added one test
2003-01-08 Kevin Ryde <user42@zip.com.au>
* get_str.c (mpn_exp):
Don't store -1 in a uint then return it as a long.
Fixes systems such as alpha where sizeof(uint)!=sizeof(long).
* acinclude.m4 (AC_CHECK_HEADERS):
Remove fpu_control.h, no longer required.
* tests/tset_ld.c: Use tests_machine_prec_long_double.
Use LDBL_MAX for largest value and to find largest power of 2.
* mpfr-test.h (__setfpucw, _FPU_EXTENDED, etc): Remove these setups.
(tests_machine_prec_double, tests_machine_prec_long_double,
x86_fstcw, x86_fldcw): Add prototypes.
* tests/tests.c (tests_machine_prec_double, tests_machine_prec_long_double):
New functions.
(mpfr_test_init): Replace __setfpucw with tests_machine_prec_double.
* acinclude.m4 (MPFR_CONFIGS): Add tests/x86.asm support.
* configure.in (X86_PATTERN): New define, supporting acinclude.m4.
* tests/Makefile.am: Add x86.asm support.
* tests/x86.asm: New file.
2003-01-07 Paul Zimmermann <Paul.Zimmermann@loria.fr>
* exp2.c: fixed pb for underflow and rounding to nearest
* mpfr-impl.h, set_ld.c: added macro LONGDOUBLE_ISNAN
use LONGDOUBLE_ISNAN in set_ld instead of cast to double and DOUBLE_ISNAN
(did raise exception under freebsd)
2003-01-07 Vincent Lefevre <Vincent.Lefevre@loria.fr>
* exp2.c:
Added assertions that can be resolved at compile time: the exponents
must be representable in a long int (IMHO, this limitation should be
avoided in a clean way).
2003-01-06 Kevin Ryde <user42@zip.com.au>
* TODO: Remove mpfr_get_ld, done.
* TODO: Remove mpfr_set_machine_rnd_mode, done.
2003-01-06 Vincent Lefevre <Vincent.Lefevre@loria.fr>
* exp2.c: Bug fix: __mpfr_emax -> __gmpfr_emax.
2003-01-06 Kevin Ryde <user42@zip.com.au>
* set_str.c:
Use separate function calls to second strncasecmp and strncmp
for consistency and to avoid gcc warnings.
2003-01-06 Paul Zimmermann <Paul.Zimmermann@loria.fr>
* exp2.c, tests/texp2.c: fixed infinite loop for 2^integer
2003-01-06 Vincent Lefevre <Vincent.Lefevre@loria.fr>
* set_str.c: Use digit_value_in_base for the part after the '.'.
* set_str.c:
Static function digit_value_in_base is now compatible with any locale.
2003-01-03 Kevin Ryde <user42@zip.com.au>
* tests/tests.c, mpfr-test.h:
(<sys/fpu.h>) [__mips]: Move from mpfr-test.h to tests/tests.c,
and conditionalize with HAVE_SYS_FPU_H.
* acinclude.m4 (AC_CHECK_HEADERS): Add sys/fpu.h.
* mpfr-test.h:
(HAVE_DENORMS) [__mips]: Remove this, let the configure test decide.
* set_str.c:
Use separate function calls to strncasecmp and strncmp, rather than
?: on function pointers, since the latter demands declarations not
present on SunOS. Both forms are optimized the same by gcc.
2003-01-03 Vincent Lefevre <Vincent.Lefevre@loria.fr>
* BUGS:
Added some potential bugs (mpfr_exp2 is known to have such a bug).
2003-01-02 Kevin Ryde <user42@zip.com.au>
* tests/tset_str.c, tests/tget_str.c:
Add gmp-impl.h for __gmp_free_func.
2002-12-16 Vincent Lefevre <Vincent.Lefevre@loria.fr>
* tests/tconst_log2.c, tests/tests.c, set_rnd.c, set_si.c, set_str.c, set_str_raw.c, set_ui.c, set_z.c, sin.c, sin_cos.c, sinh.c, sub1.c, sub_one_ulp.c, tan.c, tanh.c, uceil_exp2.c, uceil_log2.c, ufloor_log2.c, ui_pow.c, mul_2si.c, mul_2ui.c, mul_ui.c, next.c, pow.c, pow_si.c, rint.c, round_prec.c, save_expo.c, set.c, set_dfl_prec.c, set_exp.c, set_nan.c, log10.c, log1p.c, log2.c, mpf2mpfr.h, mpfr-impl.h, mpfr.h, mul.c, factorial.c, gamma.c, gammaPiAGMformula.c, get_d.c, get_str.c, get_z_exp.c, hypot.c, init.c, const_pi.c, cos.c, cosh.c, div_2si.c, div_2ui.c, exceptions.c, exp.c, exp2.c, exp3.c, exp_2.c, expm1.c, acosh.c, add1.c, add_one_ulp.c, agm.c, asin.c, asinh.c, atan.c, atanh.c, const_euler.c, const_log2.c, acos.c:
Suppress some #define and fix symbol names (makes code cleaner):
perl -pi -e 's/__mpfr_flags/__gmpfr_flags/g' **/*.{c,h}
perl -pi -e 's/__mpfr_emin/__gmpfr_emin/g' **/*.{c,h}
perl -pi -e 's/__mpfr_emax/__gmpfr_emax/g' **/*.{c,h}
perl -pi -e 's/__mpfr_default_fp_bit_precision/__gmpfr_default_fp_bit_precision/g' **/*.{c,h}
perl -pi -e 's/__gmp_default_rounding_mode/__gmpfr_default_rounding_mode/g' **/*.{c,h}
perl -pi -e 's/__mpfr_const_log2_prec/__gmpfr_const_log2_prec/g' **/*.{c,h}
perl -pi -e 's/__mpfr_const_pi_prec/__gmpfr_const_pi_prec/g' **/*.{c,h}
perl -pi -e 's/_mpfr_ceil_log2/__gmpfr_ceil_log2/g' **/*.{c,h}
perl -pi -e 's/_mpfr_floor_log2/__gmpfr_floor_log2/g' **/*.{c,h}
perl -pi -e 's/_mpfr_ceil_exp2/__gmpfr_ceil_exp2/g' **/*.{c,h}
perl -pi -e 's/_mpfr_isqrt/__gmpfr_isqrt/g' **/*.{c,h}
perl -pi -e 's/_mpfr_cuberoot/__gmpfr_cuberoot/g' **/*.{c,h}
perl -pi -e 's/^#define __gmpfr_.*\n//' *.h
2002-12-13 Vincent Lefevre <Vincent.Lefevre@loria.fr>
* ChangeLog: Update.
* mpfr.texi: IEEE 754 / IEEE P754 -> IEEE 754-1985.
* mpfr.texi: Correction.
* mpfr.texi: Added a note about the signed zero.
* set_d.c: Assertion re-added.
* missing: Update for new version of automake/autoconf.
* depcomp: depcomp script added for new version of automake.
2002-12-12 Kevin Ryde <user42@zip.com.au>
* configure.in:
Don't -D define PACKAGE_VERSION etc, to avoid conflict with gmp config.h.
2002-12-12 Paul Zimmermann <Paul.Zimmermann@loria.fr>
* mpfr.texi: added paragraph about accuracy
* mpfr.texi: rewritten unclear paragraph about precision
* TODO: added one item
* set_d.c: use MPN_NORMALIZE_NOT_ZERO instead of loop
2002-12-11 Vincent Lefevre <Vincent.Lefevre@loria.fr>
* tests/memory.c:
Added #include "mpfr.h" (needed by mpfr-test.h as it uses
mp_rnd_t in one of the prototypes).
2002-12-10 Vincent Lefevre <Vincent.Lefevre@loria.fr>
* set_d.c:
Patch by Torbjorn Granlund <tege@swox.com>: Don't use TMP_ allocation
mechanism for fixed size objects. Resulting streamlining. Misc
addressing changes to work around GNUPro bugs.
Patch by VL: Some other changes in mpfr_set_d.
2002-12-07 Vincent Lefevre <Vincent.Lefevre@loria.fr>
* const_euler.c: (mpfr_const_euler_S, mpfr_const_euler_R)
Make declaration match prototype (patch by Torbjorn Granlund).
2002-12-04 Vincent Lefevre <Vincent.Lefevre@loria.fr>
* config.guess, config.sub:
Update from ftp://ftp.gnu.org/pub/gnu/config/
2002-12-03 Paul Zimmermann <Paul.Zimmermann@loria.fr>
* mpfr.texi: Use @ifnottex/@end iffnotex instead of @ifinfo/@end ifinfo
2002-12-02 Vincent Lefevre <Vincent.Lefevre@loria.fr>
* mpfr-test.h, tests/rnd_mode.c: Fix rnd_mode.c (again).
2002-12-02 Paul Zimmermann <Paul.Zimmermann@loria.fr>
* mpfr-impl.h, mpfr.h:
put redefinitions of external symbols just before prototypes
* TODO: updated
* BUGS: added new known bugs
2002-11-29 Kevin Ryde <user42@zip.com.au>
* TODO: Add notes on mpf_t maintaining actual size for efficiency.
* TODO: Remove mpfr_set_machine_rnd_mode task.
* mpfr.texi: Tweak some math formatting for tex.
* mpfr-test.h, mpfr.h (mpfr_set_machine_rnd_mode):
Move prototype to mpfr-test.h.
* tests/Makefile.am (libfrtests_a_SOURCES): Add rnd_mode.c.
* Makefile.am (libmpfr_a_SOURCES): Remove rnd_mode.c.
* rnd_mode.c: Remove file, moved to tests directory.
* tests/rnd_mode.c: New file, moved from top-level directory.
* mpfr.texi (Rounding Modes): Remove mpfr_set_machine_rnd_mode.
* setmin.c, setmax.c: Use GNU style code layout.
2002-11-29 Paul Zimmermann <Paul.Zimmermann@loria.fr>
* mpfr-impl.h, mpfr.h:
redefined external symbols in the __gmpfr namespace
2002-11-25 Paul Zimmermann <Paul.Zimmermann@loria.fr>
* tests/tout_str.c: added one fprintf in case of error
2002-11-25 Vincent Lefevre <Vincent.Lefevre@loria.fr>
* mpfr.texi, rnd_mode.c, mpfr.h:
mpfr_set_machine_rnd_mode fixed to compile on some architectures
(e.g. ARM). Now returns an int.
* tests/tmul.c: Bug fixed.
2002-11-25 Paul Zimmermann <Paul.Zimmermann@loria.fr>
* tests/tadd.c, tests/tadd_ui.c, tests/tagm.c, tests/tdiv.c, tests/tdiv_ui.c, tests/texp.c, tests/tget_d.c, tests/tlog.c, tests/tmul.c, tests/tset_q.c, tests/tsqrt.c, tests/tsqrt_ui.c, tests/tsub_ui.c, tests/tui_div.c, tests/tui_sub.c:
removed all tests that compare to libm
* tests/tdiv.c: changed to distinguish mpfr failures from libm failures
* tests/tdiv.c: added 3 tests that make libm fail under HP-PA
2002-11-23 Vincent Lefevre <Vincent.Lefevre@loria.fr>
* ChangeLog: Update.
2002-11-22 Paul Zimmermann <Paul.Zimmermann@loria.fr>
* ui_pow.c: forgot to remove debug statement
* pow.c, tests/tui_pow.c, ui_pow.c:
fixed bug (infinite loop) for exact powers
2002-11-21 Kevin Ryde <user42@zip.com.au>
* TODO:
More on tuned thresholds, more on config.h etc, new section on mpf/mpfr
integration.
2002-11-20 Vincent Lefevre <Vincent.Lefevre@loria.fr>
* get_str.c: Code clean-up.
2002-11-20 Paul Zimmermann <Paul.Zimmermann@loria.fr>
* gamma.c, log.c, set_ld.c: fixed some problems found by insure
* tests/tout_str.c: forgotten fclose() call
* tests/tget_str.c: fixed array bound write
2002-11-19 Paul Zimmermann <Paul.Zimmermann@loria.fr>
* get_str.c: fixed non-ansi features
* div.c, div_ui.c: added explicit cast
2002-10-24 Paul Zimmermann <Paul.Zimmermann@loria.fr>
* mpfr.texi: added mpfr_cbrt
2002-10-20 Vincent Lefevre <Vincent.Lefevre@loria.fr>
* BUGS: Update.
2002-10-20 Paul Zimmermann <Paul.Zimmermann@loria.fr>
* sin.c: fixed bug with wrong sign detection
2002-10-19 Vincent Lefevre <Vincent.Lefevre@loria.fr>
* hypot.c: Some fixes to avoid overflows.
2002-10-19 Paul Zimmermann <Paul.Zimmermann@loria.fr>
* hypot.c: fixed bug for large arguments
* cbrt.c: improved code for rounding to nearest
* asinh.c: fixed bug for EXP(x) > EMAX/2
* algorithms.tex: modified description of hypot and cbrt
* acosh.c: fixed bug for EXP(x) > EMAX/2
2002-10-18 Vincent Lefevre <Vincent.Lefevre@loria.fr>
* BUGS: Update.
* tests/tsin.c: Added test showing bug in sign detection.
* tests/thypot.c: Added newline.
* BUGS: Bug in mpfr_hypot.
* tests/thypot.c: Added test that makes mpfr_hypot fail.
* hypot.c: Precision Nt: int -> mp_prec_t.
* tests/tcbrt.c: Added some tests.
* tests/tcbrt.c: main () -> main (void).
2002-10-18 Paul Zimmermann <Paul.Zimmermann@loria.fr>
* tests/Makefile.am, tests/tcbrt.c:
added tcbrt.c, test file for mpfr_cbrt
* hypot.c: fixed overflow problem
* cbrt.c: completely rewritten using mpz_root
* Makefile.am: added cbrt
2002-10-17 Vincent Lefevre <Vincent.Lefevre@loria.fr>
* mpfr.texi: C9X -> ISO/IEC 9899:1999 (ISO C99).
* set_ld.c: Cases NaN and -0.0 taken into account.
2002-10-17 Paul Zimmermann <Paul.Zimmermann@loria.fr>
* tests/tset_ld.c: added check for +0 and -0
* tests/tset_ld.c: added one test (2^1024)
* set_ld.c: fixed bug when overflow for double type
* mpfr.texi: added mpfr_set_ld and mpfr_get_ld
2002-10-16 Vincent Lefevre <Vincent.Lefevre@loria.fr>
* get_ld.c: Fix for -0.0.
2002-10-16 Paul Zimmermann <Paul.Zimmermann@loria.fr>
* log_b2.h: constants for mpfr_get_str and mpfr_set_str
2002-10-16 Vincent Lefevre <Vincent.Lefevre@loria.fr>
* tests/tset_ld.c: Obsolete comment removed.
* Makefile.am: Removed log_b2.h as it doesn't seem to be necessary.
2002-10-16 Paul Zimmermann <Paul.Zimmermann@loria.fr>
* mpfr.h: added prototype for mpfr_get_ld
* Makefile.am, get_ld.c, tests/tset_ld.c:
added mpfr_get_ld and tests for set_ld/get_ld
* set_ld.c: added cast to long double
2002-10-16 Vincent Lefevre <Vincent.Lefevre@loria.fr>
* TODO: Update (tset_ld).
* tests/tset_ld.c:
Test removed as the minimal precision for a long double is something
like 10 decimal digits. Anyway, there are implementations for which
long double = double = IEEE double precision.
* set_ld.c:
DBL_MANT_DIG and LDBL_MANT_DIG are normally defined by <float.h>.
2002-10-15 Paul Zimmermann <Paul.Zimmermann@loria.fr>
* Makefile.am, mpfr.h, set_ld.c, tests/Makefile.am, tests/tset_ld.c:
added mpfr_set_ld and test file
2002-10-13 Vincent Lefevre <Vincent.Lefevre@loria.fr>
* BUGS: Bug in mpfr_sin (and perhaps other functions): error analysis.
* atan.c:
Bug fixed (found by Dmitrii Baksheyev): atan(1) cannot be exact.
2002-10-08 Kevin Ryde <user42@zip.com.au>
* TODO: Remove mpfr_get_str using mpn_get_str (done).
Remove no grepping for __setfpucw, done (near enough).
New thread-safety section, add const_pi and const_log2 caching.
New portability section, add mingw random and _mpfr_ceil_log2 IEEE-ism.
* acinclude.m4 (AC_MY_LIBS): Show the filename in the error message.
2002-10-04 Paul Zimmermann <Paul.Zimmermann@loria.fr>
* mpf2mpfr.h: mpfr_get_default_prec was missing (thanks to F. Morain)
2002-09-30 Vincent Lefevre <Vincent.Lefevre@loria.fr>
* BUGS: Removed get_str.c bug, as the mpfr_get_str function has
completely been rewritten.
2002-09-26 Paul Zimmermann <Paul.Zimmermann@loria.fr>
* sub.c:
fixed wrong inexact flag for a - b where a and b are of different signs
and EXP(a) < EXP(b)
* tests/tsub.c: added test for inexact flag (bug found by Andreas Enge)
2002-09-23 Kevin Ryde <user42@zip.com.au>
* mpfr.texi, set_prec.c, init2.c, init.c, mpfr.h (mpfr_init, mpfr_init2, mpfr_set_prec):
Make void return, these always
succeed.
2002-09-23 Paul Zimmermann <Paul.Zimmermann@loria.fr>
* urandomb.c: fixed various tiny problems
* tests/trandom.c:
added more tests for mpfr_urandomb, and for small precision
* random2.c, tests/trandom.c:
fixed bugs in mpfr_random2 (wrong exponent, invalid numbers)
* tests/trandom.c: added checks for mpfr_random2
* tests/tadd.c, tests/tsub.c, cmp_abs.c, mpfr.h, mpfr.texi, pow.c:
cmp_abs -> cmpabs (for compatibility with mpz)
2002-09-21 Kevin Ryde <user42@zip.com.au>
* mpfr.texi (Converting Floats):
Don't refer to the internal _mp_free_func with
mpfr_get_str.
* mpfr.texi (Special Functions, Internals): Make these into nodes.
2002-09-20 Paul Zimmermann <Paul.Zimmermann@loria.fr>
* set_str.c: now accept uppercase letters too
* tests/tset_str.c: added test for uppercase letters
2002-09-18 Paul Zimmermann <Paul.Zimmermann@loria.fr>
* agm.c, mpfr.h, mpfr.texi: now mpfr_agm returns an int (inexact flag)
2002-09-13 Vincent Lefevre <Vincent.Lefevre@loria.fr>
* prepare, README.dev: Some more information.
2002-09-12 Vincent Lefevre <Vincent.Lefevre@loria.fr>
* configure.in:
On HP-UX, use the +allowunsats switch for ld, otherwise ld complains
that some GMP symbols are unsatisfied.
2002-09-12 Paul Zimmermann <Paul.Zimmermann@loria.fr>
* tests/tgamma.c, gamma.c: fixed bug in reflection formula for x<1
2002-08-23 Vincent Lefevre <Vincent.Lefevre@loria.fr>
* INSTALL, mpfr.texi: MPFR now needs GMP 4.1 or higher.
2002-08-22 Kevin Ryde <user42@zip.com.au>
* mpfr-math.h (__mpfr_nan): Clarify comments about HP C and alpha.
* mpfr-math.h: (_MPFR_NAN_BYTES, _MPFR_INFP_BYTES, _MPFR_INFM_BYTES):
Use HAVE_DOUBLE_IEEE_LITTLE_ENDIAN etc to select endianness, not a big
block of #ifdefs.
2002-08-12 Vincent Lefevre <Vincent.Lefevre@loria.fr>
* acinclude.m4, strcasecmp.c, strncasecmp.c:
strcasecmp.c -> strcasecmp.c & strncasecmp.c
2002-08-07 Kevin Ryde <user42@zip.com.au>
* tests/Makefile.am:
Use $(top_builddir) consistently with libmpfr.a, for the benefit of
srcdir!=builddir.
2002-08-02 Vincent Lefevre <Vincent.Lefevre@loria.fr>
* configure.in:
Don't touch user specified flags (CFLAGS). [patch by Kevin Ryde]
2002-07-30 Vincent Lefevre <Vincent.Lefevre@loria.fr>
* acinclude.m4, mpfr-impl.h, set_str.c:
Better check for strcasecmp and strncasecmp. Bug fixed.
2002-07-28 Vincent Lefevre <Vincent.Lefevre@loria.fr>
* Makefile.am, TODO, comparisons.c, mpfr.h:
Functions mpfr_greater_p, mpfr_greaterequal_p, mpfr_less_p,
mpfr_lessequal_p, mpfr_lessgreater_p, mpfr_equal_p, mpfr_unordered_p.
* prepare, tests/Makefile.am, Makefile.am:
Use AUTOMAKE_OPTIONS = gnu [suggested by Kevin Ryde]
* tests/Makefile.am:
check target -> TESTS = $(check_PROGRAMS) [suggested by Kevin Ryde]
* mpfr-impl.h, strcasecmp.c:
strcasecmp and strncasecmp -> mpfr_strcasecmp and mpfr_strncasecmp
if they are provided by MPFR.
* get_str.c: TMP_MARK missing (patch by Kevin Ryde).
2002-07-26 Vincent Lefevre <Vincent.Lefevre@loria.fr>
* ChangeLog: Update.
* README, README.dev: Update (mainly concerning CVS use).
* TODO, exceptions.c, exp.c, mpfr-impl.h, next.c, setmax.c, setmin.c:
Prototype of mpfr_setmax and mpfr_setmin changed (exponent given).
In mpfr_exp for x ~= 0, add_one_ulp and sub_one_ulp are no longer
used (sub_one_ulp was incorrect). These cases should now be faster.
Small fix in mpfr_nextabove, mpfr_nextbelow and mpfr_nexttoward.
* next.c, setmax.c, setmin.c, sub_one_ulp.c, Makefile.am, TODO, exceptions.c, mpfr-impl.h, mpfr.h, mpfr.texi:
New internal functions mpfr_setmin and mpfr_setmax.
New functions mpfr_nextabove, mpfr_nextbelow, mpfr_nexttoward.
Small fix in mpfr_sub_one_ulp.
2002-07-26 Paul Zimmermann <Paul.Zimmermann@loria.fr>
* get_str.c:
improved the computation of g = ceil((e-1)/log_2(beta)), using two tables
2002-07-25 Vincent Lefevre <Vincent.Lefevre@loria.fr>
* mpfr-impl.h, mpfr.texi, save_expo.c, set_q.c, sqrt_ui.c, sub_ui.c, ui_pow_ui.c, add_ui.c, exceptions.c:
Function mpfr_check_range now propagates the inexact ternary value.
Function mpfr_restore_emin_emax OR's the saved flags with the current
flags, as this is more useful in general.
Macro MPFR_RESTORE_RET removed (no longer useful).
2002-07-24 Vincent Lefevre <Vincent.Lefevre@loria.fr>
* frac.c: Change concerning an assertion, due to GMP limitation.
2002-07-24 Paul Zimmermann <Paul.Zimmermann@loria.fr>
* tests/tout_str.c: gnu indentation
* tests/tgamma.c: reduce range of tests (did take too much time)
* tests/tget_str.c:
added plenty of new cases, now covers all lines of get_str.c
* mpfr.texi: updated documentation of mpfr_get_str
* get_str.c:
completely new version, written by Alain Delplanque and Paul Zimmermann.
It now directly uses mpn_get_str, with subquadratic complexity.
About 3 times faster than previous version in most cases.
2002-07-24 Vincent Lefevre <Vincent.Lefevre@loria.fr>
* frac.c:
Bug fixed: unsigned int variables changed to int to avoid operations
with mixed signed/unsigned variables and unwanted casts.
* Makefile.am, frac.c, mpfr.h, mpfr.texi, tests/Makefile.am, tests/tfrac.c:
Function mpfr_frac and tests added.
* set.c: Bug fixed (0 was forgotten).
* isinteger.c: Optimization: mpfr_trunc no longer used!
* isinteger.c: mpfr_isinteger extended to non-fp numbers and to zero.
* isnum.c: Simpler test.
2002-07-23 Vincent Lefevre <Vincent.Lefevre@loria.fr>
* mul.c: Re-adding mul.c with fixed permissions.
* mul.c:
Temporarily removing mul.c in order to try to fix its permissions.
* mul.c: Fixed permissions.
* exceptions.c, mpfr-impl.h, mpfr.h, mpfr.texi, set_si.c, set_ui.c, tests/texceptions.c:
Function mpfr_check_range improved in the underflow case.
2002-07-22 Vincent Lefevre <Vincent.Lefevre@loria.fr>
* ChangeLog: Update.
2002-07-22 Paul Zimmermann <Paul.Zimmermann@loria.fr>
* dump.c: now dump in base 2
* tests/tget_str.c: forgot one free() call
2002-07-22 Vincent Lefevre <Vincent.Lefevre@loria.fr>
* BUGS: mpfr_pow bug removed.
* pow.c: Reindentation.
* pow.c, tests/tpow.c:
pow.c: bug fixed (in the call to mpfr_can_round).
tpow.c: mpfr_clear added.
* tests/tpow.c: Modified the two tests to make the bug appear.
2002-07-22 Paul Zimmermann <Paul.Zimmermann@loria.fr>
* tests/tpow.c: added two tests
2002-07-19 Vincent Lefevre <Vincent.Lefevre@loria.fr>
* README.dev: Updated note concerning rcs2log.
* TODO: Line mpfr_get_exp / mpfr_set_exp removed.
2002-07-16 Paul Zimmermann <Paul.Zimmermann@loria.fr>
* tests/tget_str.c: added function check_large
2002-07-15 Vincent Lefevre <Vincent.Lefevre@loria.fr>
* config.guess, config.sub:
Update from ftp://ftp.gnu.org/pub/gnu/config/
2002-07-14 Vincent Lefevre <Vincent.Lefevre@loria.fr>
* mpfr-math.h: Add __sparc__ (patch by Nix <nix@esperi.demon.co.uk>).
* TODO: Note about randomized tests.
2002-07-04 Vincent Lefevre <Vincent.Lefevre@loria.fr>
* BUGS: Bug concerning the rounding of pow().
* pow.c:
mpfr_pow() didn't work when the exponent was a negative integer.
* get_z_exp.c:
mpfr_get_z_exp() didn't work when the MPFR number was negative.
* Makefile.am, get_exp.c, mpfr.h, mpfr.texi, set_exp.c:
New functions mpfr_get_exp and mpfr_set_exp.
2002-06-27 Paul Zimmermann <Paul.Zimmermann@loria.fr>
* TODO: removed duplicated entry (thread-safe)
* TODO: added new items
* tests/tpow.c: added special cases
* algorithms.tex: added one reference (nocite)
* algorithms.bib: added one reference
* inp_str.c: fixed bug in return value
* TODO: new additions
* mpfr.texi: added pointer to mpfr_inp_str in mpfr_set_str
2002-06-26 Vincent Lefevre <Vincent.Lefevre@loria.fr>
* ChangeLog: Update.
* exceptions.c, mpfr-impl.h, mul.c, mul_ui.c, print_raw.c, rint.c, round_prec.c, set.c, set_si.c, set_ui.c, set_z.c, sqrt.c, sub1.c, add1.c, add_one_ulp.c, div.c:
MP_LIMB_T_HIGHBIT -> MPFR_LIMB_HIGHBIT.
MPFR is now compatible with GMP 4.1.
2002-06-15 Vincent Lefevre <lefevre@greux.loria.fr>
* TODO: Added: make MPFR thread-safe.
2002-06-14 Paul Zimmermann <zimmerma@greux.loria.fr>
* set_q.c: fixed bug found by Gerardo Ballabio
* tests/tset_q.c:
added one test (bug in mpfr-2.0.1 found by Gerardo Ballabio)
2002-06-13 Paul Zimmermann <zimmerma@greux.loria.fr>
* TODO: added mpfr_modf
2002-06-12 Vincent Lefevre <lefevre@greux.loria.fr>
* TODO: Added modf (to implement).
2002-06-08 Vincent Lefevre <lefevre@greux.loria.fr>
* tests/tmul.c, tests/tadd.c:
check: Apply a hack to the parameter order to make sparc gcc 2.95.2
happy (patch by Kevin Ryde) + static added.
* mpfr.texi: Patch by Kevin Ryde.
* tests/tsqrt.c, tests/tsqrt_ui.c:
Suppress tests if sqrt is not affected by mpfr_set_machine_rnd_mode
(patch by Kevin Ryde).
* ChangeLog: Update.
* README: fdl.texi added.
* Makefile.am, README.dev, fdl.texi, mpfr.texi, texinfo.tex:
Patch by Kevin Ryde (and Vincent Lefevre).
mpfr.texi: Change license to FDL, use @copying per texinfo 4.2.
Use @dircategory, @direntry, @documentdescription.
Move @contents to start of file.
(VERSION, UPDATED): New variables.
(m, GMPtimes, times): New macros.
(Float Arithmetic): Fix html output. Reported by Richard Dawe.
(GNU Free Documentation License): New appendix.
2002-06-06 Vincent Lefevre <lefevre@greux.loria.fr>
* rnd_mode.c:
Use gmp-impl.h to get MPFR_HAVE_FESETROUND (reported by Kevin Ryde).
2002-06-05 Paul Zimmermann <zimmerma@greux.loria.fr>
* ChangeLog: patch for mpfr.texi
* mpfr.texi:
patch from Richard Dawe <richdawe@bigfoot.com> to generate HTML
* tests/Makefile.am, tests/tgamma.c, Makefile.am, gamma.c, mpfr.h, mpfr.texi:
added mpfr_gamma in libmpfr
2002-06-05 Vincent Lefevre <lefevre@greux.loria.fr>
* tests/tests.c, acinclude.m4, mpfr-test.h: Check for isnan.
2002-05-29 Vincent Lefevre <lefevre@greux.loria.fr>
* rint.c, sub_one_ulp.c, add_one_ulp.c, sub1.c, add1.c:
Bug fixed (possible integer overflow).
* exceptions.c: Note added for mpfr_check_range. Bug fixed.
* urandomb.c: Sign wasn't set (reported by Dmitrii Baksheyev).
Types fixed and code clean-up.
* random.c: Types fixed and code clean-up.
2002-05-27 Vincent Lefevre <lefevre@greux.loria.fr>
* tests/tset_si.c, tests/tset_str.c, tests/tset_z.c, tests/tsin.c, tests/tsinh.c, tests/tsqrt_ui.c, tests/tsub.c, tests/tsub_ui.c, tests/tswap.c, tests/ttan.c, tests/ttanh.c, tests/ttrunc.c, tests/tui_pow.c, tests/tui_sub.c, tests/thyperbolic.c, tests/thypot.c, tests/tisnan.c, tests/tlog.c, tests/tlog10.c, tests/tlog1p.c, tests/tlog2.c, tests/tmul.c, tests/tmul_2exp.c, tests/tmul_ui.c, tests/tpow.c, tests/tpow3.c, tests/trandom.c, tests/trint.c, tests/tround_prec.c, tests/tset.c, tests/tset_d.c, tests/tset_f.c, tests/tset_q.c, tests/tatanh.c, tests/tcan_round.c, tests/tcmp.c, tests/tcmp2.c, tests/tcmp_ui.c, tests/tconst_euler.c, tests/tconst_log2.c, tests/tconst_pi.c, tests/tcos.c, tests/tcosh.c, tests/tdiv_ui.c, tests/tdump.c, tests/teq.c, tests/tests.c, tests/texceptions.c, tests/texp.c, tests/texp2.c, tests/texpm1.c, tests/tfactorial.c, tests/tfma.c, tests/tget_str.c, tests/Makefile.am, tests/memory.c, tests/reuse.c, tests/tabs.c, tests/tacos.c, tests/tacosh.c, tests/tadd.c, tests/tadd_ui.c, tests/tagm.c, tests/tasin.c, tests/tasinh.c, tests/tatan.c, TODO, const_log2.c, const_pi.c, mpfr-impl.h, mpfr-test.h:
Patch by Kevin Ryde for memory leak checking + misc declaration fixes.
Code moved from mpfr-test.h to tests.c.
2002-05-14 Vincent Lefevre <lefevre@greux.loria.fr>
* TODO: Ternary flag for mpfr_agm.
* tests/texceptions.c, tests/texp2.c, tests/texpm1.c, tests/tfma.c, tests/tgamma.c, tests/thypot.c, tests/tlog1p.c, tests/tlog2.c, tests/tpow3.c, tests/tset.c, tests/tsinh.c, tests/tsub.c, tests/tswap.c, tests/ttanh.c, tests/ttrunc.c, tests/tui_pow.c, tests/tzeta.c, tests/tacos.c, tests/tacosh.c, tests/tasinh.c, tests/tatanh.c, tests/tcmp_ui.c, tests/tconst_log2.c, tests/tconst_pi.c, tests/tcosh.c, div.c, exceptions.c, gamma.c, generic.c, init.c, init2.c, isinteger.c, mpfi.h, out_str.c, set_si.c, set_str_raw.c, set_ui.c, sub.c, ui_div.c, zeta.c, acos.c, add.c, asin.c, atan.c, cmp2.c, const_euler.c, const_log2.c, const_pi.c:
Copyright line updated.
2002-05-14 Paul Zimmermann <zimmerma@greux.loria.fr>
* TODO: ternary flag for mpfr_agm?
* TODO: update wrt mpfr_set_machine_rnd_mode
* mpfr.texi:
added mathematical description of arithmetico-geometric mean
2002-05-08 Vincent Lefevre <lefevre@greux.loria.fr>
* INSTALL, acinclude.m4:
The problem on a G4 PowerPC was a bug in gcc; this is now tested
in configure (float-conversion bug) and -ffloat-store is used if
need be.
2002-05-06 Vincent Lefevre <lefevre@greux.loria.fr>
* INSTALL: Problem on the G4 PowerPC.
2002-04-30 Paul Zimmermann <zimmerma@greux.loria.fr>
* tests/tpow.c, algorithms.tex, pow.c:
fixed problem (infinite loop) in mpfr_pow for exact powers
* mpfr.texi: fixed errors found by Sylvain Pion
2002-04-27 Vincent Lefevre <lefevre@greux.loria.fr>
* mpfr.texi: not relevant -> undefined.
* mpfr.texi: Some changes concerning the internals and zeros
(including remarks by Kevin Ryde).
2002-04-25 Vincent Lefevre <lefevre@greux.loria.fr>
* acinclude.m4, mpfr-math.h: Check if HUGE_VAL is supported.
* TODO: Changes in mpfr_set_str.
2002-04-25 Paul Zimmermann <zimmerma@greux.loria.fr>
* TODO: update
* mpfr.texi, set_str.c:
mpfr_set_str doesn't require any more a final '\0'
and return the number of characters read
* tests/tset_str.c: modified tests for special values
2002-04-24 Vincent Lefevre <lefevre@greux.loria.fr>
* cmp_abs.c: Description updated.
* mpfr-impl.h, mpfr.h, mpfr.texi:
mpfr_cmp_abs no longer an internal function and described in mpfr.texi.
In mpfr.texi, a @var{} was forgotten.
* cmp_abs.c: mpfr_cmp_abs can now be called on zero numbers.
* mpfr-math.h: Structures are used to get correct alignment.
2002-04-23 Vincent Lefevre <lefevre@greux.loria.fr>
* mpfr-math.h:
_MPFR_INF*_BYTES fix. On alpha, use a "double" for the bytes,
to avoid a mis-conversion on alpha gcc 3.0.2. (Kevin Ryde)
* Makefile.am, div_2si.c, div_2ui.c, exceptions.c, mpfr-impl.h, mul.c, mul_2si.c, powerof2.c, set_z.c, sub1.c, sub_one_ulp.c:
Underflow semantics changed (not tested).
* mul.c: Code simplified due to change in the maximum exponent range.
2002-04-23 Paul Zimmermann <zimmerma@greux.loria.fr>
* algorithms.tex: modifs from Andreas
2002-04-22 Vincent Lefevre <lefevre@greux.loria.fr>
* mpfr-math.h: Union -> array + cast because of the HP compiler.
2002-04-20 Vincent Lefevre <lefevre@greux.loria.fr>
* get_d.c:
Avoid constant floating expression, as this doesn't give the correct
result with gcc on some Alpha machines. (patch by Paul Zimmermann)
2002-04-19 Vincent Lefevre <lefevre@greux.loria.fr>
* mpfr-test.h:
RAND_MAX defined if not already defined (as it should be).
* mpfr-test.h:
Include config.h, for the benefit of test programs not using
gmp-impl.h (Kevin Ryde).
2002-04-19 Paul Zimmermann <zimmerma@greux.loria.fr>
* mpfr-test.h:
added tests in mpfr_test_init for denorms and extended precision
* init.c, init2.c, mpfr.h, mpfr.texi:
mpfr_init and mpfr_init2 now return an int
2002-04-19 Vincent Lefevre <lefevre@greux.loria.fr>
* set_q.c:
Exponent range saved/restored. Returns NaN when the numerator
or the denominator is too large for MPFR.
* sqrt_ui.c, sub_ui.c, ui_div.c, ui_sub.c, add_ui.c, div_ui.c, mul_ui.c, set_si.c, set_ui.c:
Added some assertions (any unsigned long must be representable
in a mp_limb_t).
* cmp_si.c, mpfr-impl.h, set_si.c:
SAFE_ABS changed so that it can be used for any unsigned type.
2002-04-18 Vincent Lefevre <lefevre@greux.loria.fr>
* set_z.c:
Added code to prevent possible integer overflow when the input number
is very large.
* mpfr.h: New values for exponent range.
2002-04-18 Paul Zimmermann <zimmerma@greux.loria.fr>
* tests/tadd.c:
call get_d with rounding mode in check2, to avoid problems near +Inf
* mpfr-test.h: 2147483647 -> INT_MAX
* tests/tadd.c, mpfr-test.h: improved ulp() to deal with infinities
and fixed tadd/check2 to deal with infinities
2002-04-17 Paul Zimmermann <zimmerma@greux.loria.fr>
* mpfr.texi: improved documentation of mpfr_set_precset_prec.
2002-04-16 Paul Zimmermann <zimmerma@greux.loria.fr>
* mpfr.texi: fixed documentation of cosh/sinh/tanh
2002-04-16 Vincent Lefevre <lefevre@greux.loria.fr>
* Makefile.am, cmp_si.c, cmp_ui.c, mpfr.h, mpfr.texi:
mpfr_cmp_ui_2exp and mpfr_cmp_si_2exp rewritten.
Prototype changed.
* acinclude.m4, configure.in:
Use AC_CANONICAL_HOST and $host instead of $OS_TYPE and $MACHTYPE
(patch suggested by Kevin Ryde).
* config.guess, config.sub:
Added files from ftp.gnu.org for automake and AC_CANONICAL_HOST.
2002-04-15 Paul Zimmermann <zimmerma@greux.loria.fr>
* tests/tabs.c, tests/tadd.c, tests/tadd_ui.c, tests/tdiv_ui.c, tests/tout_str.c, tests/tset_d.c, tests/tsub_ui.c, tests/tui_sub.c:
replaced 2.2e-307 by DBL_MIN
2002-04-15 Vincent Lefevre <lefevre@greux.loria.fr>
* README: Typo: Gnu -> GNU.
* VERSION, mpfr.texi: Update for future 2.0.2.
* ChangeLog: Update for mpfr 2.0.1.
* VERSION, mpfr.texi, README.dev:
Back to version 2.0.1, updated documentation.
* README.dev, VERSION: Post-release commit.
* ChangeLog: Update for mpfr 2.0.1.
* cmp_ui.c:
mpfr_cmp_ui_2exp and mpfr_cmp_si_2exp can no longer be called with a NaN.
Misc bugs fixed.
2002-04-15 Paul Zimmermann <zimmerma@greux.loria.fr>
* NEWS: added main changes in version 2.0.1
2002-04-15 Vincent Lefevre <lefevre@greux.loria.fr>
* Makefile.am, README: Update for "make dist".
* tests/tset_q.c, tests/tset_si.c, tests/tset_str.c, tests/tset_z.c, tests/tsin.c, tests/tsin_cos.c, tests/tsinh.c, tests/tsqrt.c, tests/tsqrt_ui.c, tests/tsub.c, tests/tsub_ui.c, tests/tswap.c, tests/ttan.c, tests/ttanh.c, tests/ttrunc.c, tests/tui_div.c, tests/tui_pow.c, tests/tui_sub.c, tests/tzeta.c, tests/tget_d.c, tests/tget_str.c, tests/thyperbolic.c, tests/thypot.c, tests/tisnan.c, tests/tlog.c, tests/tlog10.c, tests/tlog1p.c, tests/tlog2.c, tests/tmul.c, tests/tmul_2exp.c, tests/tmul_ui.c, tests/tout_str.c, tests/tpow.c, tests/tpow3.c, tests/trandom.c, tests/trint.c, tests/tround_prec.c, tests/tset.c, tests/tset_d.c, tests/tset_f.c, tests/tcan_round.c, tests/tcmp.c, tests/tcmp2.c, tests/tcmp_ui.c, tests/tconst_euler.c, tests/tconst_log2.c, tests/tconst_pi.c, tests/tcos.c, tests/tcosh.c, tests/tdiv.c, tests/tdiv_ui.c, tests/tdump.c, tests/teq.c, tests/texceptions.c, tests/texp.c, tests/texp2.c, tests/texpm1.c, tests/tfactorial.c, tests/tfma.c, tests/tgamma.c, tests/tgeneric.c, tests/tabs.c, tests/tacos.c, tests/tacosh.c, tests/tadd.c, tests/tadd_ui.c, tests/tagm.c, tests/tasin.c, tests/tasinh.c, tests/tatan.c, tests/tatanh.c, tests/reuse.c, ui_sub.c, urandomb.c, zeta.c, sub.c, sub1.c, sub_one_ulp.c, sub_ui.c, swap.c, tan.c, tanh.c, uceil_exp2.c, uceil_log2.c, ufloor_log2.c, ui_div.c, ui_pow.c, ui_pow_ui.c, set_f.c, set_inf.c, set_nan.c, set_prc_raw.c, set_prec.c, set_q.c, set_rnd.c, set_si.c, set_str.c, set_str_raw.c, set_ui.c, set_z.c, sin.c, sin_cos.c, sinh.c, sqrt.c, sqrt_ui.c, mul_2si.c, mul_2ui.c, mul_ui.c, neg.c, out_str.c, pow.c, pow_si.c, pow_ui.c, print_raw.c, print_rnd_mode.c, random.c, random2.c, reldiff.c, rint.c, rnd_mode.c, round_prec.c, save_expo.c, set.c, set_d.c, set_dfl_prec.c, gmp_op.c, hypot.c, init.c, init2.c, inp_str.c, isinf.c, isinteger.c, isnan.c, isnum.c, log.c, log10.c, log1p.c, log2.c, minmax.c, mpf2mpfr.h, mpfi.c, mpfi.h, mpfr-impl.h, mpfr-math.h, mpfr-test.h, mpfr.h, mpfr.texi, mul.c, mul_2exp.c, div.c, div_2exp.c, div_2si.c, div_2ui.c, div_ui.c, dump.c, eq.c, exceptions.c, exp.c, exp2.c, exp3.c, exp_2.c, expm1.c, extract.c, factorial.c, fma.c, gamma.c, gammaPiAGMformula.c, generic.c, get_d.c, get_str.c, get_z_exp.c, add1.c, add_one_ulp.c, add_ui.c, agm.c, asin.c, asinh.c, atan.c, atanh.c, cbrt.c, clear.c, cmp.c, cmp2.c, cmp_abs.c, cmp_ui.c, const_euler.c, const_log2.c, const_pi.c, copysign.c, cos.c, cosh.c, dim.c, COPYING, COPYING.LIB, README, acos.c, acosh.c, add.c:
COPYING -> COPYING.LIB and GPL re-added.
* BUGS: Update.
* configure.in: Removed switches -g -O2 as already done by configure.
2002-04-14 Vincent Lefevre <lefevre@greux.loria.fr>
* INSTALL: Update.
* mpfr.texi: Removed useless @iftex...
* TODO: Update.
* set_q.c: When q = 0, +0 is returned.
2002-04-13 Vincent Lefevre <lefevre@greux.loria.fr>
* ChangeLog: Update for the next pre-release.
* tests/tset_str.c, Makefile.am, acinclude.m4, set_str.c, strcasecmp.c:
Support for NaN and Inf (case insensitive) in mpfr_set_str. Tests.
* acinclude.m4: Bug fixed.
* ChangeLog: Update for the next pre-release.
* acinclude.m4, configure.in: Misc changes. Use of AC_CACHE_CHECK.
2002-04-12 Vincent Lefevre <lefevre@greux.loria.fr>
* tests/tconst_log2.c, tests/texp.c, exp3.c, exp_2.c, mpfr-impl.h, exp.c:
Code clean-up.
* ChangeLog: Update for the next pre-release.
* tests/tget_d.c: New tests.
* BUGS, get_d.c: mpfr_get_d* fixed.
* INSTALL, const_log2.c:
Types fixed in const_log2.c (this fixes the tconst_log2 crash).
* README.dev: Added a note about the native SunOS 4 C compiler.
2002-04-11 Vincent Lefevre <lefevre@greux.loria.fr>
* tests/tconst_log2.c: Type fixed.
* set_d.c, BUGS: mpfr_set_d bug fixed, but other bugs still remain...
* print_rnd_mode.c:
NULL was undeclared on some architectures (reported by Torbjorn Granlund).
* configure.in: LDFLAGS changed on HP-UX.
* ChangeLog: Update for the next pre-release.
* tests/tget_d.c: Subnormal test in different rounding modes + fix.
* acinclude.m4, configure.in: Function MPFR_CONFIGS.
* tests/tget_d.c: Tests added.
* BUGS, get_d.c: get_d.c partly rewritten (Paul Zimmermann).
* configure.in: Check for gcc float-conversion bug.
2002-04-10 Vincent Lefevre <lefevre@greux.loria.fr>
* round_prec.c:
Added comment for mpfr_round_raw_generic (about using 1-bit precision).
* mpfr.texi: Update (thanks to Nathalie Revol).
* ChangeLog: Update for the next pre-release.
* tests/tsqrt.c, tests/tsqrt_ui.c, tests/tsub_ui.c, tests/tui_div.c, tests/tui_sub.c, tests/tadd.c, tests/tadd_ui.c, tests/tagm.c, tests/tdiv.c, tests/tdiv_ui.c, tests/texp.c, tests/tget_d.c, tests/tget_str.c, tests/tlog.c, tests/tmul.c, tests/tset_q.c, rnd_mode.c, configure.in:
HAVE_FESETROUND renamed to MPFR_HAVE_FESETROUND to avoid possible
name conflict.
* Makefile.am, srandom.h: Added missing headers in libmpfr_a_SOURCES.
2002-04-09 Vincent Lefevre <lefevre@greux.loria.fr>
* ChangeLog: Update for the next pre-release.
* INSTALL: Possible tconst_log2 crash under Solaris.
* configure.in:
Under OSF, use option -ffloat-store only when the compiler is gcc.
* Makefile.am:
include_HEADERS should contain only mpfr.h and mpf2mpfr.h.
* configure.in: Added code to support fesetround under Solaris.
* INSTALL: "In case of problem" update.
* INSTALL: Old URL removed.
* INSTALL:
Renaming: DIR -> GMPINSTALL, GMPDIR -> GMPBUILD. Bug on IRIX updated.
* INSTALL: Removed note about stack-alloc.h.
* tests/tui_div.c, tests/tui_sub.c, tests/tadd.c, tests/tadd_ui.c, tests/tagm.c, tests/tdiv.c, tests/tdiv_ui.c, tests/texp.c, tests/tget_d.c, tests/tget_str.c, tests/tlog.c, tests/tmul.c, tests/tset_q.c, tests/tsqrt.c, tests/tsqrt_ui.c, tests/tsub_ui.c, configure.in, rnd_mode.c:
Check for fenv.h -> check for fesetround.
* README.dev: Added note concerning patch submission.
2002-04-08 Vincent Lefevre <lefevre@greux.loria.fr>
* mpfr.texi:
Note about overflows. Functions mpfr_{div,mul}_{si,ui} described.
2002-04-07 Vincent Lefevre <lefevre@greux.loria.fr>
* ChangeLog: Update for the next (and last?) pre-release.
* configure.in: Stricter test for HAVE_INFS.
* BUGS: Update.
* INSTALL: Added note about IRIX.
* ChangeLog: Update for the next pre-release.
* tests/tzeta.c, tests/tlog10.c, tests/tmul.c, tests/tmul_2exp.c, tests/tmul_ui.c, tests/trandom.c, tests/tround_prec.c, tests/tset_d.c, tests/tset_q.c, tests/tset_si.c, tests/tset_str.c, tests/tset_z.c, tests/tsin.c, tests/tsin_cos.c, tests/tsqrt.c, tests/tsqrt_ui.c, tests/tsub.c, tests/tsub_ui.c, tests/tswap.c, tests/ttan.c, tests/ttrunc.c, tests/tui_div.c, tests/tui_sub.c, tests/reuse.c, tests/tabs.c, tests/tadd.c, tests/tadd_ui.c, tests/tagm.c, tests/tasin.c, tests/tcmp_ui.c, tests/tconst_log2.c, tests/tconst_pi.c, tests/tcos.c, tests/tdiv.c, tests/tdiv_ui.c, tests/texp.c, tests/texp2.c, tests/tfma.c, tests/tget_d.c, tests/tlog.c, mpf2mpfr.h, mpfr.h, mpfr.texi, zeta.c, agm.c, exp.c, exp_2.c, get_d.c, log.c, log10.c:
mpfr_get_d -> mpfr_get_d1 and mpfr_get_d2 -> mpfr_get_d.
2002-04-06 Vincent Lefevre <lefevre@greux.loria.fr>
* ChangeLog: Update for the next pre-release.
* INSTALL: Update.
2002-04-05 Vincent Lefevre <lefevre@greux.loria.fr>
* INSTALL: New file from Paul.
* Makefile.am: COPYING.LIB removed.
* tests/tui_pow.c, tests/tui_sub.c, tests/tzeta.c, tests/trint.c, tests/tround_prec.c, tests/tset.c, tests/tset_d.c, tests/tset_f.c, tests/tset_q.c, tests/tset_si.c, tests/tset_str.c, tests/tset_z.c, tests/tsin.c, tests/tsin_cos.c, tests/tsinh.c, tests/tsqrt.c, tests/tsqrt_ui.c, tests/tsub.c, tests/tsub_ui.c, tests/tswap.c, tests/ttan.c, tests/ttanh.c, tests/ttrunc.c, tests/tui_div.c, tests/tdiv_ui.c, tests/tdump.c, tests/teq.c, tests/texceptions.c, tests/texp.c, tests/texp2.c, tests/texpm1.c, tests/tfactorial.c, tests/tfma.c, tests/tgamma.c, tests/tgeneric.c, tests/tget_d.c, tests/tget_str.c, tests/thyperbolic.c, tests/thypot.c, tests/tisnan.c, tests/tlog.c, tests/tlog10.c, tests/tlog1p.c, tests/tlog2.c, tests/tmul.c, tests/tmul_2exp.c, tests/tmul_ui.c, tests/tout_str.c, tests/tpow.c, tests/tpow3.c, tests/trandom.c, tests/tacos.c, tests/tacosh.c, tests/tadd.c, tests/tadd_ui.c, tests/tagm.c, tests/tasin.c, tests/tasinh.c, tests/tatan.c, tests/tatanh.c, tests/tcan_round.c, tests/tcmp.c, tests/tcmp2.c, tests/tcmp_ui.c, tests/tconst_euler.c, tests/tconst_log2.c, tests/tconst_pi.c, tests/tcos.c, tests/tcosh.c, tests/tdiv.c, tests/reuse.c, tests/tabs.c, tanh.c, uceil_exp2.c, uceil_log2.c, ufloor_log2.c, ui_div.c, ui_pow.c, ui_pow_ui.c, ui_sub.c, urandomb.c, zeta.c, set_prec.c, set_q.c, set_rnd.c, set_si.c, set_str.c, set_str_raw.c, set_ui.c, set_z.c, sin.c, sin_cos.c, sinh.c, sqrt.c, sqrt_ui.c, srandom.h, sub.c, sub1.c, sub_one_ulp.c, sub_ui.c, swap.c, tan.c, out_str.c, pow.c, pow_si.c, pow_ui.c, print_raw.c, print_rnd_mode.c, random.c, random2.c, reldiff.c, rint.c, rnd_mode.c, round_prec.c, save_expo.c, set.c, set_d.c, set_dfl_prec.c, set_f.c, set_inf.c, set_nan.c, set_prc_raw.c, init.c, init2.c, inp_str.c, isinf.c, isinteger.c, isnan.c, isnum.c, log.c, log10.c, log1p.c, log2.c, minmax.c, mpf2mpfr.h, mpfi.c, mpfi.h, mpfr-impl.h, mpfr-math.h, mpfr-test.h, mpfr.h, mul.c, mul_2exp.c, mul_2si.c, mul_2ui.c, mul_ui.c, neg.c, dim.c, div.c, div_2exp.c, div_2si.c, div_2ui.c, div_ui.c, dump.c, eq.c, exceptions.c, exp.c, exp2.c, exp3.c, exp_2.c, expm1.c, extract.c, factorial.c, fma.c, gamma.c, gammaPiAGMformula.c, generic.c, get_d.c, get_str.c, get_z_exp.c, gmp_op.c, hypot.c, add.c, add1.c, add_one_ulp.c, add_ui.c, agm.c, asin.c, asinh.c, atan.c, atanh.c, cbrt.c, clear.c, cmp.c, cmp2.c, cmp_abs.c, cmp_ui.c, const_euler.c, const_log2.c, const_pi.c, copysign.c, cos.c, cosh.c, COPYING, COPYING.LIB, acos.c, acosh.c:
COPYING.LIB -> COPYING.
* README, README.dev: README.dev added.
2002-04-05 Paul Zimmermann <zimmerma@greux.loria.fr>
* sqrt.c: put back label removed by error
* mpfr-test.h:
removed _FPU_RC_NEAREST ... for x86 (not used any more, now use fenv.h)
* agm.c, sqrt.c:
removed nested TMP_MARK's (problems when configuring gmp with --disable-alloca)
* agm.c: fixed pb with two markers (with --disable-alloca)
2002-04-05 Vincent Lefevre <lefevre@greux.loria.fr>
* shortmul.c: Removed (not used).
2002-04-05 Paul Zimmermann <zimmerma@greux.loria.fr>
* tests/tsqrt.c, tests/tsqrt_ui.c, tests/tsub_ui.c, tests/tui_div.c, tests/tui_sub.c, tests/tadd.c, tests/tadd_ui.c, tests/tagm.c, tests/tdiv.c, tests/tdiv_ui.c, tests/texp.c, tests/tget_d.c, tests/tget_str.c, tests/tlog.c, tests/tmul.c, tests/tset_q.c, configure.in, mpfr-test.h, rnd_mode.c:
use AC_CHECK_HEADERS to check for fenv.h
and AC_CHECK_FUNCS to check for lrand48
2002-04-04 Vincent Lefevre <lefevre@greux.loria.fr>
* README: Added "VERSION" and "prepare" descriptions.
2002-04-04 Paul Zimmermann <zimmerma@greux.loria.fr>
* mpfr.texi: fixed bugs found by Nathalie
2002-04-04 Vincent Lefevre <lefevre@greux.loria.fr>
* ChangeLog: Update for the next pre-release.
* configure.in:
Removed check for extended precision, as no longer used.
2002-04-04 Paul Zimmermann <zimmerma@greux.loria.fr>
* tests/tget_d.c: added check for denormalized numbers
* TODO: added new functions to implement
2002-04-03 Vincent Lefevre <lefevre@greux.loria.fr>
* ChangeLog: Update for the next pre-release.
* configure.in: -ffloat-store is a gcc option.
* configure.in: Added 4th argument to AC_TRY_RUN.
* configure.in: Re-fix.
2002-04-03 Paul Zimmermann <zimmerma@greux.loria.fr>
* configure.in, mpfr-test.h: added check for fpu_control.h
* tests/tadd.c: added missing cast to double
2002-04-02 Vincent Lefevre <lefevre@greux.loria.fr>
* configure.in: [ ] used around error message.
* ChangeLog: Update.
* configure.in: Check BITS_PER_MP_LIMB and BYTES_PER_MP_LIMB.
* sqrtrem.c, Makefile.am, mpfr-impl.h: sqrtrem.c removed.
* ChangeLog: New ChangeLog file (generated by rcs2log).
* configure.in:
Suppress PACKAGE and VERSION definitions for the compiler.
2002-04-01 Paul Zimmermann <zimmerma@greux.loria.fr>
* Configure: old file
2002-03-31 Paul Zimmermann <zimmerma@greux.loria.fr>
* mpfr.texi: more "internal" changes suggested by Vincent
* mpfr.texi: added suggestions from Kevin in "internals"
2002-03-28 Paul Zimmermann <zimmerma@greux.loria.fr>
* tests/tset_d.c: added test for denorms
* set_d.c:
on a 32-bit machine, denormalized numbers with high 32 bits to 0
were flushed to zero
2002-03-27 Paul Zimmermann <zimmerma@greux.loria.fr>
* asin.c: sign of sin(-1) was not set
* tests/tasin.c: added check for asin(-1)
* tests/texp2.c: added one test
* exp2.c: previous fix was completely wrong
* cmp_ui.c:
fixed pb in cmp_si when i = -2^31 (then beware that -1 * i < 0 !!!)
* exp2.c: added check for underflow
2002-03-26 Paul Zimmermann <zimmerma@greux.loria.fr>
* tests/tsqrt_ui.c, tests/tsub_ui.c, tests/ttan.c, tests/tui_div.c, tests/tui_sub.c, tests/Makefile.in, tests/tabs.c, tests/tadd.c, tests/tadd_ui.c, tests/tagm.c, tests/tcmp2.c, tests/tcos.c, tests/tdiv.c, tests/tdiv_ui.c, tests/texp.c, tests/tfma.c, tests/tget_d.c, tests/tget_str.c, tests/tlog.c, tests/tmul.c, tests/tmul_ui.c, tests/tpow.c, tests/tset_d.c, tests/tset_q.c, tests/tsin.c, tests/tsin_cos.c, tests/tsqrt.c:
- use mpfr_test_init to initialize harware floats
- use #ifdef HAVE_INFS when using DBL_NAN, ...
- fixed some problems with wrongly converted f-p values (esp. under IRIX)
* configure.in: use AC_TRY_CPP instead of AC_TRY_RUN for fenv.h
(otherwise fails on Itanium)
* mpfr-test.h:
added function mpfr_test_init to initialize full IEEE behaviour
* fma.c: put back simple algorithm that computes x*y exactly and then
directly calls mpfr_add, to avoid wrong inexact flags
* tests/tset_si.c, tests/tset_q.c: added 2002 in copyright line
* tests/tget_d.c:
fixed problem on x86 (set precision to double to avoid double rounding)
* tests/tdump.c: added 2002 in copyright line
* configure.in:
added check for valid 1/0, denormalized, and extended precision
2002-03-26 Vincent Lefevre <lefevre@greux.loria.fr>
* tests/tget_d.c: New-style comment removed.
2002-03-26 Paul Zimmermann <zimmerma@greux.loria.fr>
* mpfr.texi: added a description of the mpfr_t type in "Internals"
2002-03-26 Vincent Lefevre <lefevre@greux.loria.fr>
* tests/tagm.c, tests/tdiv.c, tests/tlog.c, tests/tmul_2exp.c, tests/tout_str.c, tests/trandom.c, tests/tset_d.c, tests/tset_f.c, tests/tset_si.c, tests/tset_str.c, tests/tset_z.c, tests/tui_div.c:
Patch by Kevin Ryde + misc fixes.
2002-03-25 Paul Zimmermann <zimmerma@greux.loria.fr>
* tests/trandom.c, tests/tset_d.c, tests/tset_f.c, tests/tset_q.c, tests/tset_si.c, tests/tset_str.c, tests/tset_z.c, tests/tsqrt.c, tests/tsqrt_ui.c, tests/tsub_ui.c, tests/tui_div.c, tests/tui_sub.c, tests/tadd.c, tests/tadd_ui.c, tests/tagm.c, tests/tdiv.c, tests/tdiv_ui.c, tests/texp.c, tests/tget_str.c, tests/tlog.c, tests/tmul.c, tests/tmul_2exp.c, tests/tout_str.c:
replaced getpid() by time(NULL)
* set_str_raw.c: MPFR_SIZE and sign were incorrectly set [thanks Kevin]
* tests/tsqrt.c: added check_nan (from Kevin)
* sqrt.c: fixed bug for sqrt(-0) found by Kevin [NaN flag not cleared]
2002-03-22 Vincent Lefevre <lefevre@greux.loria.fr>
* tests/tget_d.c: Error message now copes with extended precision.
2002-03-22 Paul Zimmermann <zimmerma@greux.loria.fr>
* configure.in, mpfr-test.h, mpfr.texi, rnd_mode.c, tests/tget_d.c:
added test in configure for checking rand48 functions (HAVE_RAND48)
and fenv.h (HAVE_FENV)
added mpfr_set_machine_rnd_mode (if fenv.h exists)
replaced TEST by HAVE_FENV
2002-03-22 Vincent Lefevre <lefevre@greux.loria.fr>
* tests/tadd_ui.c, tests/tget_d.c, tests/tmul_2exp.c, tests/trandom.c, tests/tset_d.c, tests/tset_f.c, tests/tset_q.c, tests/tset_si.c, tests/tset_str.c, tests/tsqrt.c, tests/tsqrt_ui.c, tests/tsub_ui.c, tests/tui_div.c, tests/tui_sub.c:
Missing #include.
* set_nan.c: MPFR_RETNAN shouldn't be used as no value is returned.
* set_inf.c:
Regarde 0 as positive rather than negative (though it's better not to use it).
* isinteger.c: Memory leak (patch by Kevin Ryde).
2002-03-21 Paul Zimmermann <zimmerma@greux.loria.fr>
* tests/tdiv_ui.c, tests/texp.c, tests/tget_d.c, tests/tget_str.c, tests/tlog.c, tests/tmul.c, tests/tmul_2exp.c, tests/tmul_ui.c, tests/tout_str.c, tests/tpow.c, tests/trandom.c, tests/trint.c, tests/tset.c, tests/tset_d.c, tests/tset_f.c, tests/tset_q.c, tests/tset_si.c, tests/tset_str.c, tests/tset_z.c, tests/tsqrt.c, tests/tsqrt_ui.c, tests/tsub.c, tests/tsub_ui.c, tests/tui_div.c, tests/tui_sub.c, tests/tabs.c, tests/tadd.c, tests/tadd_ui.c, tests/tagm.c, tests/tcmp2.c, tests/tdiv.c:
replaced rand/lrand48, drand48, srand/srand48 by macros
LONG_RAND, DBL_RAND, SEED_RAND
and time(NULL) by getpid()
* mpfr-test.h: added macros LONG_RAND, DBL_RAND, SEED_RAND
* Makefile.am: added VERSION and mpfr-math.h for "make dist"
2002-03-19 Paul Zimmermann <zimmerma@greux.loria.fr>
* set_inf.c, set_nan.c: new functions
* tests/tcmp.c, tests/tcos.c, tests/tdiv.c, tests/tmul.c, tests/tmul_2exp.c, tests/tmul_ui.c, tests/tpow.c, tests/tsin.c, tests/tsin_cos.c, tests/tsqrt.c, tests/tsub_ui.c, tests/ttan.c, tests/tui_div.c, tests/tui_sub.c, tests/reuse.c, tests/tabs.c, tests/tadd.c, tests/tadd_ui.c:
now use macros DBL_NAN, DBL_POS_INF, DBL_NEG_INF,
and functions mpfr_set_nan, mpfr_set_inf
* mpfr-impl.h: defined macros for 0/0, 1/0, -1/0
* Makefile.am, mpfr.h, mpfr.texi:
added new functions mpfr_set_nan and mpfr_set_inf
2002-03-19 Vincent Lefevre <lefevre@greux.loria.fr>
* VERSION, configure.in:
File VERSION added. Contains the next version (currently 2.0.1).
configure.in updated accordingly.
* tests/tadd.c, get_d.c, mpfr-math.h:
Macros MPFR_DBL_NAN, MPFR_DBL_INFP and MPFR_DBL_INFM.
2002-03-19 Paul Zimmermann <zimmerma@greux.loria.fr>
* tests/tmul_ui.c: MP_LIMB_T_HIGHBIT -> ULONG_HIGHBIT
* tests/tdiv.c: moved code under #ifdef
* tests/tadd.c: moved code under #ifdef TEST
* set_d.c: remove variable sizer (not used)
* cbrt.c: Library GPL -> Lesser GPL
* TODO: updated
* fma.c: changed Nt variable to signed
2002-03-17 Vincent Lefevre <lefevre@greux.loria.fr>
* fma.c: Some changes in the types.
* log.c, log10.c, log2.c: Bugs fixed.
2002-03-17 Paul Zimmermann <zimmerma@greux.loria.fr>
* Makefile.am, mpfr.h, mpfr.texi: added back mpfr_sin_cos
* sin_cos.c: new version (adapted from sin.c)
* tests/ttan.c: added tests for tan(3*Pi/4) and tan(7*Pi/4)
* tan.c: fixed bug for tan(3*Pi/4) [wrong sign]
* tests/tlog10.c: added test for log(10^n)
* log10.c: fixed infinite loop problem for log(10^n)
2002-03-13 Vincent Lefevre <lefevre@greux.loria.fr>
* tests/reuse.c: Fix (patch by Kevin Ryde).
* get_d.c: Do not read the exponent if it has no meaning.
2002-03-12 Vincent Lefevre <lefevre@greux.loria.fr>
* mpfr.texi: mpfr_random update (patch by Kevin Ryde).
* BUGS: 2 more known bugs.
* mpfr.texi: mpfr_a{cos,sin,tan} documentation at a better place.
* acos.c: Some mpfr_clear added (patch by Kevin Ryde).
2002-03-11 Vincent Lefevre <lefevre@greux.loria.fr>
* tests/tget_d.c, TODO, get_d.c:
mpfr_get_d3 partially rewritten (to follow the new specifications).
tget_d.c updated because of changes in get_d.c.
* print_rnd_mode.c, mpfr.texi:
Return a null pointer if rnd_mode is an invalid rounding mode.
2002-03-11 Paul Zimmermann <zimmerma@greux.loria.fr>
* set_si.c: set sign before calling mpfr_check_range
* tests/tset_si.c: stupid typo in previous commit
* exp_2.c: removed expx (not used)
* tests/tset_si.c, set_si.c:
fixed typo (ai [potentially unsigned] replaced by i)
2002-03-11 Vincent Lefevre <lefevre@greux.loria.fr>
* tests/tget_d.c, TODO, get_d.c, get_str.c, mpfr-impl.h, mpfr.h, mpfr.texi:
New mpfr_get_d, mpfr_get_d2, mpfr_get_d3.
2002-03-11 Paul Zimmermann <zimmerma@greux.loria.fr>
* print_rnd_mode.c: added return
2002-03-11 Vincent Lefevre <lefevre@greux.loria.fr>
* set_d.c, Makefile.am, get_d.c: set_d.c split into get_d.c and set_d.c
2002-03-11 David Daney <daney@greux.loria.fr>
* cbrt.c: add cbrt in fonctionnality
2002-03-11 Vincent Lefevre <lefevre@greux.loria.fr>
* BUGS: Bug removed.
2002-03-07 Paul Zimmermann <zimmerma@greux.loria.fr>
* sinh.c: fixed problem when te=ti=1 (i.e. t=0) found by Kevin Ryde
* tests/reuse.c: simplified test4()
2002-03-06 Vincent Lefevre <lefevre@greux.loria.fr>
* BUGS, TODO: Update.
* mpfr.texi: Patch by Kevin Ryde concerning nodes/menus.
2002-03-05 Vincent Lefevre <lefevre@greux.loria.fr>
* tests/reuse.c: Casts fixed.
2002-03-04 Vincent Lefevre <lefevre@greux.loria.fr>
* internal_ceil_log2.c, internal_floor_log2.c, mpz_set_fr.c, uceil_exp2.c, uceil_log2.c, ufloor_log2.c, Makefile.am, get_z_exp.c, internal_ceil_exp2.c:
File renaming.
* tests/tsub_ui.c, tests/tswap.c, tests/ttan.c, tests/ttanh.c, tests/ttrunc.c, tests/tui_div.c, tests/tui_pow.c, tests/tui_sub.c, tests/tzeta.c, tests/tpow.c, tests/tpow3.c, tests/trandom.c, tests/trint.c, tests/tround_prec.c, tests/tset.c, tests/tset_d.c, tests/tset_f.c, tests/tset_q.c, tests/tset_si.c, tests/tset_str.c, tests/tset_z.c, tests/tsin.c, tests/tsin_cos.c, tests/tsinh.c, tests/tsqrt.c, tests/tsqrt_ui.c, tests/tsub.c, tests/texp.c, tests/texp2.c, tests/texpm1.c, tests/tfactorial.c, tests/tfma.c, tests/tgamma.c, tests/tgeneric.c, tests/tget_d.c, tests/tget_str.c, tests/thyperbolic.c, tests/thypot.c, tests/tisnan.c, tests/tlog.c, tests/tlog10.c, tests/tlog1p.c, tests/tlog2.c, tests/tmul.c, tests/tmul_2exp.c, tests/tmul_ui.c, tests/tout_str.c, tests/tagm.c, tests/tasin.c, tests/tasinh.c, tests/tatan.c, tests/tatanh.c, tests/tcan_round.c, tests/tcmp.c, tests/tcmp2.c, tests/tcmp_ui.c, tests/tconst_euler.c, tests/tconst_log2.c, tests/tconst_pi.c, tests/tcos.c, tests/tcosh.c, tests/tdiv.c, tests/tdiv_ui.c, tests/tdump.c, tests/teq.c, tests/texceptions.c, tests/reuse.c, tests/tabs.c, tests/tacos.c, tests/tacosh.c, tests/tadd.c, tests/tadd_ui.c, sqrtrem.c, srandom.h, sub.c, sub1.c, sub_one_ulp.c, sub_ui.c, swap.c, tan.c, tanh.c, ui_div.c, ui_pow.c, ui_pow_ui.c, ui_sub.c, urandomb.c, zeta.c, set_d.c, set_dfl_prec.c, set_f.c, set_prc_raw.c, set_prec.c, set_q.c, set_rnd.c, set_si.c, set_str.c, set_str_raw.c, set_ui.c, set_z.c, sin.c, sinh.c, sqrt.c, sqrt_ui.c, mpz_set_fr.c, mul.c, mul_2exp.c, mul_2si.c, mul_2ui.c, mul_ui.c, neg.c, out_str.c, pow.c, pow_si.c, pow_ui.c, print_raw.c, print_rnd_mode.c, random.c, random2.c, reldiff.c, rint.c, rnd_mode.c, round_prec.c, save_expo.c, set.c, internal_ceil_log2.c, internal_floor_log2.c, isinf.c, isinteger.c, isnan.c, isnum.c, log.c, log10.c, log1p.c, log2.c, minmax.c, mpf2mpfr.h, mpfi.c, mpfi.h, mpfr-impl.h, mpfr-test.h, mpfr.h, eq.c, exceptions.c, exp.c, exp2.c, exp3.c, exp_2.c, expm1.c, extract.c, factorial.c, fma.c, gamma.c, gammaPiAGMformula.c, generic.c, get_str.c, gmp_op.c, hypot.c, init.c, init2.c, inp_str.c, internal_ceil_exp2.c, atanh.c, clear.c, cmp.c, cmp2.c, cmp_abs.c, cmp_ui.c, const_euler.c, const_log2.c, const_pi.c, copysign.c, cos.c, cosh.c, dim.c, div.c, div_2exp.c, div_2si.c, div_2ui.c, div_ui.c, dump.c, acos.c, acosh.c, add.c, add1.c, add_one_ulp.c, add_ui.c, agm.c, asin.c, asinh.c, atan.c:
Copyright line changed.
2002-03-01 Paul Zimmermann <zimmerma@greux.loria.fr>
* AUTHORS: updated
* atan.c, exp_2.c, mpfr.h, mpfr.texi, mpz_set_fr.c, pow.c:
changed name of mpz_set_fr to mpfr_get_z_exp
2002-02-28 Vincent Lefevre <lefevre@greux.loria.fr>
* tests/tabs.c, tests/tadd.c, tests/tdiv.c, tests/tdiv_ui.c:
Removed some <math.h> dependencies.
* tests/tget_d.c: Fixed.
* set_d.c:
mpfr_get_d rewritten (still needs to be fixed when the result is a subnormal).
2002-02-27 Vincent Lefevre <lefevre@greux.loria.fr>
* tests/tget_d.c: mpfr_get_d2 tested.
* TODO: Update.
* tests/tget_d.c, tests/tset_d.c: New tests.
* configure.in: Additional flags for gcc + minor changes.
* get_str.c: Minor update.
2002-02-25 Vincent Lefevre <lefevre@greux.loria.fr>
* mpfr-impl.h, set_d.c:
mpfr_get_d2 prototype changed (mp_exp_t instead of long).
__mpfr_scale2 fixes: checks for integer overflows, signed zeros, exact
rounding for subnormals in the rounding to the nearest mode (problems
due to multiple roundings avoided).
mpfr_get_d2: signed zeros taken into account. This function still needs
to be rewritten (because of multiple roundings).
2002-02-21 Vincent Lefevre <lefevre@greux.loria.fr>
* internal_ceil_exp2.c, internal_ceil_log2.c, internal_floor_log2.c, Makefile.am, agm.c:
_mpfr_ceil_log2, _mpfr_floor_log2, _mpfr_ceil_exp2 in separate files.
2002-02-19 Vincent Lefevre <lefevre@greux.loria.fr>
* get_str.c:
Fixes, code clean-up and some asserts against integer overflows.
Code need to be checked.
2002-02-14 Vincent Lefevre <lefevre@greux.loria.fr>
* const_pi.c, cos.c, cosh.c, exp3.c, exp_2.c, gamma.c, generic.c, get_str.c, sin.c, sinh.c, tanh.c, zeta.c, acos.c, agm.c, atan.c, atanh.c, const_euler.c, const_log2.c:
mpfr_{div,mul}_2exp -> mpfr_{div,mul}_2ui.
* get_str.c:
Partial code clean-up and some asserts against integer overflows (2).
2002-02-13 Vincent Lefevre <lefevre@greux.loria.fr>
* get_str.c:
Partial code clean-up and some asserts against integer overflows.
* mpfr-impl.h, mpfr.h: MP_EXP_T_MAX and MP_EXP_T_MIN defined.
* mpfr-impl.h: Macros IS_POW2 and NOT_POW2.
2002-02-12 Vincent Lefevre <lefevre@greux.loria.fr>
* ui_pow_ui.c: Use mpfr_save_emin_emax and MPFR_RESTORE_RET.
* tests/tdump.c: Update due to changes in mpfr_get_str.
* get_str.c, mpz_set_fr.c, out_str.c:
mpfr_get_str: the returned exponent for 0 is 0 (like in frexp()).
mpz_set_fr.c: comment added.
out_str.c: minor changes.
* BUGS: Update.
* ui_pow_ui.c: Bug fixed and other changes.
* mpfr.texi: NULL -> null pointer and other small changes.
* get_str.c, mpfr.texi:
mpfr_get_str: null pointer returned in case of error, NaN taken into account.
2002-02-11 Vincent Lefevre <lefevre@greux.loria.fr>
* mpfr.texi, set_str.c:
mpfr_set_str partially rewritten to cope with integer overflows.
The rounding code hasn't been fixed yet.
2002-02-08 Vincent Lefevre <lefevre@greux.loria.fr>
* mpfr.texi: Typo.
* set_str.c, mpfr.texi: mpfr_set_str: base must be between 2 and 36.
2002-02-06 David Daney <daney@greux.loria.fr>
* acosh.c: chnage the return values
* tests/thyperbolic.c: Change the test return values
2002-02-06 Vincent Lefevre <lefevre@greux.loria.fr>
* pow.c: Some optimizations.
2002-02-04 Vincent Lefevre <lefevre@greux.loria.fr>
* tan.c, tanh.c, ui_pow.c, ui_sub.c, exp.c, pow_ui.c, sin.c, sinh.c, mul.c, mul_ui.c, pow.c, mpz_set_fr.c:
Misc bug fixes and code clean-up.
2002-02-03 Vincent Lefevre <lefevre@greux.loria.fr>
* mpz_set_fr.c: For the value 0, return __mpfr_emin instead of 0.
2002-02-01 Vincent Lefevre <lefevre@greux.loria.fr>
* div_ui.c, exp.c, exp2.c, expm1.c, hypot.c, log.c, log10.c, log1p.c, log2.c, pow_si.c, acosh.c, agm.c, asinh.c, atanh.c, copysign.c, cos.c, cosh.c, dim.c:
Misc bug fixes and code clean-up.
2002-02-01 Guillaume Hanrot <hanrot@greux.loria.fr>
* pow_si.c: Patch.
2002-01-30 Vincent Lefevre <lefevre@greux.loria.fr>
* tests/trint.c: Bux fixed.
* set_z.c: mpfr_set_z rewritten.
* mpfr.texi:
Update concerning mpfr_round_prec, mpfr_rint, mpfr_ceil, mpfr_floor,
mpfr_round and mpfr_trunc.
* tests/Makefile.am, tests/reuse.c, tests/trint.c:
Tests added (mpfr_trunc, mpfr_floor, mpfr_ceil, mpfr_round).
* rint.c, trunc.c, Makefile.am, mpf2mpfr.h, mpfr.h:
mpfr_rint, mpfr_trunc, mpfr_floor, mpfr_ceil, mpfr_round rewritten.
2002-01-25 Vincent Lefevre <lefevre@greux.loria.fr>
* tests/tgamma.c, tests/tround.c, tests/tround_prec.c, tests/Makefile.am, tests/tacos.c, tests/tasin.c, round.c, round_prec.c, Makefile.am, cos.c, get_str.c, mpfr.h:
mpfr_round -> mpfr_round_prec.
* sqrt.c: Code reformatted.
2002-01-23 Vincent Lefevre <lefevre@greux.loria.fr>
* mpfr-test.h: MAX, MIN, ABS macros undefined before being redefined.
Fix in ABS macro.
2002-01-22 Vincent Lefevre <lefevre@greux.loria.fr>
* tests/tmul_ui.c: Example with high bit set.
* mul_ui.c: Fix (Kevin Ryde).
* mpfr-impl.h, mpfr.h, mul.c, sqrt.c: MPFR_PREC_MAX redefined.
MPFR_INTPREC_MAX defined (internal maximum precision).
Some integer overflow detection.
2002-01-21 Vincent Lefevre <lefevre@greux.loria.fr>
* sqrt_ui.c: Set sign of sqrt(0).
Support for exponent range.
* sqrt.c: can_round type changed: char -> int.
Case sqrt(0) improved.
* sqrt.c: Bug fixes:
* return 1 -> MPFR_RET_NAN
* a MPFR_CLEAR_INF was missing.
2002-01-20 Vincent Lefevre <lefevre@greux.loria.fr>
* mpfr-impl.h, sub_ui.c, add_ui.c: New macro MPFR_RESTORE_RET.
2002-01-18 Vincent Lefevre <lefevre@greux.loria.fr>
* fma.c: Code clean-up (goto suppressed).
* fma.c: Cases 0 * 0 + 0.
* fma.c: Nt: int -> mp_prec_t
* fma.c, tests/tacosh.c: <> changed back to "".
2002-01-18 David Daney <daney@greux.loria.fr>
* tests/tacosh.c: change "" -> <> in headers
* fma.c: Change indendation + replace "" -> <> in header
2002-01-17 Vincent Lefevre <lefevre@greux.loria.fr>
* fma.c: Particular cases rewritten.
* mpfr-test.h:
Test "__hpux", not "hpux". Mask off mrand48 return value to 31 bits
to work around sloppy mpfr #include practices. (Torbjorn Granlund)
2002-01-16 Vincent Lefevre <lefevre@greux.loria.fr>
* div.c: Comments were incorrect.
2002-01-15 Vincent Lefevre <lefevre@greux.loria.fr>
* BUGS: Note concerning mpfr_trunc, mpfr_floor and mpfr_ceil.
2002-01-14 Vincent Lefevre <lefevre@greux.loria.fr>
* div.c: Special cases.
2002-01-12 Vincent Lefevre <lefevre@greux.loria.fr>
* tests/tmul.c, tests/tout_str.c, tests/tpow.c, tests/trandom.c, tests/tset.c, tests/tset_z.c, tests/tsin.c, tests/tsqrt.c, tests/tsqrt_ui.c, tests/tsub.c, tests/tsub_ui.c, tests/ttan.c, tests/tui_div.c, tests/tui_sub.c, tests/tzeta.c, tests/tadd.c, tests/tadd_ui.c, tests/tagm.c, tests/tatan.c, tests/tcmp2.c, tests/tcos.c, tests/tdiv.c, tests/tdiv_ui.c, tests/teq.c, tests/texp.c, tests/tget_str.c, tests/thyperbolic.c, tests/tlog.c, tests/reuse.c, tests/tabs.c, mpfr-test.h, mpfr.h, shortmul.c:
Patches by Kevin Ryde for K&R compilers
and other fixes in prototypes.
2002-01-10 Vincent Lefevre <lefevre@greux.loria.fr>
* tests/tmul.c: Test check_min added.
* tests/tmul.c: Test check_max added.
* algorithms.tex, cmp2.c, log.c: Spelling: "canceled"
2002-01-10 Paul Zimmermann <zimmerma@greux.loria.fr>
* mpfr.h: GMP_PROTO change was already done by Vincent
* mpfr.h: prepare change PROTO -> GMP_PROTO
2002-01-04 Vincent Lefevre <lefevre@greux.loria.fr>
* sub_one_ulp.c: The precision can no longer be 1.
* mpfr.h: __GMP_PROTO defined if not already defined.
* tests/tcmp.c, tests/tcmp2.c, cmp2.c, mpfr-impl.h, sub.c, sub1.c, add.c, agm.c:
Optimization: mpfr_cmp2 now accepts any combination of real arguments
and computes the sign of |b| - |c| (in addition to the number of
cancelled bits); mpfr_add, mpfr_sub, mpfr_sub1, mpfr_agm and some
tests updated to take this change into account.
2001-12-21 Paul Zimmermann <zimmerma@greux.loria.fr>
* tests/tsin.c: added check for sin(3*Pi/2)
* sin.c: fixed bug for sin(3*Pi/2)
2001-12-19 Vincent Lefevre <lefevre@greux.loria.fr>
* set_str_raw.c: Global NaN flag set when result is NaN.
2001-12-19 Paul Zimmermann <zimmerma@greux.loria.fr>
* set_str_raw.c: forgot to clear nan flag for Inf
* mpfr.texi:
changed description of mpfr_cmp to correspond to the implementation:
NaNs are not allowed
* algorithms.tex:
fixed mpfr_cmp2 : there was a bug noticed by Nicolas Magaud and Didier
Bondyfalat for inputs:
100 011 111
100 010 110
where it gave 8 instead of 5.
2001-12-19 Vincent Lefevre <lefevre@greux.loria.fr>
* add1.c, sub1.c: Better comments.
2001-12-10 Paul Zimmermann <zimmerma@greux.loria.fr>
* algorithms.bib, algorithms.tex: added "PI and the AGM"
2001-12-06 Vincent Lefevre <lefevre@greux.loria.fr>
* tests/Makefile.am, tests/tlog10.c, tests/tlog2.c, tests/tlog_base_10.c, tests/tlog_base_2.c:
Files renamed (log in base 2 and 10).
* tests/teuler.c, tests/tlog2.c, tests/tpi.c, tests/Makefile.am, tests/tconst_euler.c, tests/tconst_log2.c, tests/tconst_pi.c:
Files renamed (constants).
* aclocal.m4:
File aclocal.m4 removed, as generated by aclocal (called by prepare).
* Makefile.am, log10.c, log2.c, log_base_10.c, log_base_2.c:
Files log_base_*.c renamed.
* log2.c, pi.c, Makefile.am, const_euler.c, const_log2.c, const_pi.c, euler.c:
Functions (constants) renamed.
* tests/Makefile.in, configure, Makefile.in:
Files configure, Makefile.in, tests/Makefile.in removed.
Use the `prepare' script to generate them.
* BUGS: Removed 2 bugs.
* prepare: Initial release.
2001-12-05 Paul Zimmermann <zimmerma@greux.loria.fr>
* algorithms.tex: added arc-tangent (from Mathieu)
* algorithms.tex: added paragraph on asin and acos from Mathieu Dutour
* tests/Makefile.am, tests/tacos.c: added tacos
* tests/tadd.c: in check5, test NaNs before calling mpfr_cmp
* tests/reuse.c: added acos
* Makefile.am: added acos.c
* acos.c, mpfr.h, mpfr.texi: added acos (from Mathieu Dutour)
* sqrt.c: use now new sqrtrem from gmp-4.0
* tests/tdiv_ui.c: improved test (avoid mpfr_get_d)
* tests/tset_d.c: removed isnan prototype
* rnd_mode.c: added stdlib.h for exit
2001-11-30 Paul Zimmermann <zimmerma@greux.loria.fr>
* tests/tdump.c, dump.c: test NaN before Inf
changed precision to 2 for test
2001-11-30 Vincent Lefevre <lefevre@greux.loria.fr>
* set_prc_raw.c: Cast added.
2001-11-30 Paul Zimmermann <zimmerma@greux.loria.fr>
* tests/tatan.c: added a new test (worst case)
* atan.c: nouvelle version de Mathieu Dutour,
corrigeant certains bugs avec les pires cas de Vincent
2001-11-30 Vincent Lefevre <lefevre@greux.loria.fr>
* set_prec.c: Misc fixes.
* fma.c: Unused variables.
2001-11-30 Paul Zimmermann <zimmerma@greux.loria.fr>
* tests/tsub.c, tests/tsub_ui.c, tests/ttan.c, tests/ttanh.c, tests/ttrunc.c, tests/tui_div.c, tests/tui_pow.c, tests/tui_sub.c, tests/tsinh.c, tests/tsqrt.c, tests/tmul.c, tests/tmul_ui.c, tests/tout_str.c, tests/tpow.c, tests/tpow3.c, tests/tset.c, tests/tset_f.c, tests/tset_si.c, tests/tsin.c, tests/tfma.c, tests/tget_str.c, tests/thypot.c, tests/tlog.c, tests/tlog1p.c, tests/tlog2.c, tests/tlog_base_10.c, tests/tlog_base_2.c, tests/tdiv_ui.c, tests/teuler.c, tests/texp2.c, tests/texpm1.c, tests/tfactorial.c, tests/texp.c, tests/tacosh.c, tests/tadd.c, tests/tasin.c, tests/tasinh.c, tests/tatan.c, tests/tatanh.c, tests/tcos.c, tests/tcosh.c, tests/tdiv.c:
start tests with precision 2 instead of 1
* tests/tabs.c: start from precision 2
* get_str.c:
big rewrite to fix problems when the estimate base exponent is too small
* fma.c: fixed detection of exact cases (in particular 0)
* cos.c: now use MPFR_PREC_MIN
* atan.c: exptol is now of type mp_exp_t
* log2.c: rewritten part with Taylor series
* mpfr.h: changed MPFR_PREC_MIN to 2
* set_prc_raw.c, mpfr.texi: updated wrt MPFR_PREC_MIN/MPFR_PREC_MAX
* mpz_set_fr.c: case x=0 was forgotten
* set_prec.c: now use MPFR_PREC_MIN
* sub1.c: added comment
2001-11-30 Vincent Lefevre <lefevre@greux.loria.fr>
* set_z.c:
mpfr_set_z rewritten to support overflows/underflows and ternary value.
* set_z.c: 0 -> set to +0.
* mul.c: Better sign comparison.
2001-11-29 Vincent Lefevre <lefevre@greux.loria.fr>
* set_si.c, set_ui.c: Use MPFR_SET_POS.
* trunc.c: Bug fixed concerning integer overflows.
2001-11-29 Paul Zimmermann <zimmerma@greux.loria.fr>
* init2.c: added comment
* cos.c: fixed bug for small precision, where r can be >= 1
2001-11-29 Vincent Lefevre <lefevre@greux.loria.fr>
* mul_2exp.c, mul_2si.c, mul_2ui.c, Makefile.am, Makefile.in, div_2exp.c, div_2si.c, div_2ui.c, log.c, mpfr.h:
Functions mpfr_{mul,div}_2{si,ui} added.
Functions mpfr_{mul,div}_2exp still exist for backward compatibility;
they are obsolete and should not be used any longer.
2001-11-28 Vincent Lefevre <lefevre@greux.loria.fr>
* minmax.c: Particular cases (NaN and signed zeros).
* tests/texp2.c, tests/thyperbolic.c, init2.c:
Init variables to NaN instead of 0.
* atan.c: Possible integer overflow fixed.
* asin.c, atan.c: Particular cases fixed.
2001-11-25 Vincent Lefevre <lefevre@greux.loria.fr>
* trunc.c: Overflow support.
* trunc.c: K&R -> ISO C prototype.
* div_2exp.c: mpfr_div_2exp rewritten.
* mul_2exp.c: mpfr_mul_2exp rewritten.
* mul_ui.c: Overflow support.
* add1.c, init2.c, mpfr-impl.h, round.c:
Casts to size_t added (safer and could be required in the future).
2001-11-23 Vincent Lefevre <lefevre@greux.loria.fr>
* mul.c: Minor change.
* mul.c: mpfr_mul partially rewritten:
* Integer overflows almost completely avoided.
* Now supports signed zeros and overflows.
Not tested yet.
2001-11-22 Vincent Lefevre <lefevre@greux.loria.fr>
* round.c:
mpfr_can_round_raw: integer overflows checked and code duplication avoided.
* BUGS: More bugs.
* round.c, mpfr-impl.h, mpfr.h, mpfr.texi:
mpfr_can_round and mpfr_can_round_raw: prototypes changed.
2001-11-21 Vincent Lefevre <lefevre@greux.loria.fr>
* exceptions.c: Bug fixed.
* tests/tdiv.c, tests/texp.c, tests/tsqrt.c, Makefile.am, Makefile.in, add_one_ulp.c, add_ulp.c, div_ui.c, exp.c, mpfr.h, mpfr.texi, set_z.c, sub_one_ulp.c:
mpfr_add_one_ulp and mpfr_sub_one_ulp changed.
* round.c, set_dfl_prec.c, set_rnd.c, init2.c, mpfr.h, mpfr.texi:
Added MPFR_PREC_MIN and MPFR_PREC_MAX.
* init2.c: Error test -> assert.
mp_prec_t -> mp_size_t.
2001-11-20 Vincent Lefevre <lefevre@greux.loria.fr>
* tests/tround.c: Test added.
* round.c, mpfr-impl.h: mpfr_round rewritten.
mpfr_round_raw_generic: NULL changed to 0 as not necessarily defined.
* mpfr-impl.h: Added macro MPFR_SET_ABSSIZE.
* round.c: mpfr_round: Check for overflow.
2001-11-17 Vincent Lefevre <lefevre@greux.loria.fr>
* sub1.c: Some type changes.
2001-11-16 Vincent Lefevre <lefevre@greux.loria.fr>
* add1.c, mpz_set_fr.c: Integer overflows checked.
* mpz_set_fr.c: MPFR_ASSERTN instead of fprintf + exit.
* mpfr-impl.h: GMP assert mechanism: macros changed until GMP is fixed.
2001-11-16 Paul Zimmermann <zimmerma@greux.loria.fr>
* mpfr.texi: version -> 2002
removed executable flag
* tests/thypot.c, tests/tlog.c, tests/tmul_ui.c, tests/tpow.c, tests/tpow3.c, tests/tset_d.c, tests/tset_si.c, tests/tset_str.c, tests/tsqrt.c, tests/tsub.c, tests/tsub_ui.c, tests/ttrunc.c, tests/tui_div.c, tests/tui_pow.c, tests/tui_sub.c, tests/tzeta.c, tests/tabs.c, tests/tadd.c, tests/tatan.c, tests/tcmp2.c, tests/tcos.c, tests/tdiv.c, tests/tdiv_ui.c, tests/teq.c, tests/teuler.c, tests/texceptions.c, tests/texp.c, tests/tfactorial.c, tests/tfma.c, tests/tgeneric.c, mpfr.texi, print_raw.c, sub1.c, Makefile.in, exp_2.c, log.c, mpfr.h:
mpfr_print_raw -> mpfr_print_binary
* init2.c: split from init.c
2001-11-16 David Daney <daney@greux.loria.fr>
* expm1.c, log1p.c, tanh.c: remove math.h
* sinh.c: remve math.h
2001-11-16 Paul Zimmermann <zimmerma@greux.loria.fr>
* tests/tdiv.c: added one test
2001-11-16 David Daney <daney@greux.loria.fr>
* atanh.c: remove math.h
2001-11-16 Paul Zimmermann <zimmerma@greux.loria.fr>
* Makefile.am, init.c: init -> init + init2.
2001-11-16 David Daney <daney@greux.loria.fr>
* asinh.c, acosh.c: remove math.h
2001-11-16 Guillaume Hanrot <hanrot@greux.loria.fr>
* div.c: Ajoute retours chariots dans div.c, etc.
* div.c: if () remplace par if ( ==0) ou if ( != 0)
2001-11-16 Paul Zimmermann <zimmerma@greux.loria.fr>
* tests/Makefile.in, pow.c, pow_si.c, print_raw.c, rnd_mode.c, set_rnd.c, set_str_raw.c, sin.c, sinh.c, sqrt.c, sqrt_ui.c, tan.c, tanh.c, ui_pow.c, Makefile.in, TODO, add_ui.c, asin.c, asinh.c, atanh.c, clear.c, copysign.c, cos.c, cosh.c, dim.c, exp.c, exp2.c, expm1.c, extract.c, factorial.c, fma.c, gmp_op.c, hypot.c, isinteger.c, log1p.c, log2.c, log_base_10.c, log_base_2.c, minmax.c, mul.c:
removed K&R function headers
2001-11-16 Guillaume Hanrot <hanrot@greux.loria.fr>
* tests/tdiv.c: Beuh ?
* inp_str.c, div.c: return -> MPFR_RET, patch d'un leak dans inp_str.c
2001-11-16 Paul Zimmermann <zimmerma@greux.loria.fr>
* mpfr-impl.h: changed to use GMP assert mechanism
2001-11-16 David Daney <daney@greux.loria.fr>
* pow_si.c: remove stdio.h math.h
2001-11-16 Paul Zimmermann <zimmerma@greux.loria.fr>
* cos.c, euler.c: assert -> MPFR_ASSERT
2001-11-16 David Daney <daney@greux.loria.fr>
* pow.c: remove stdio math .h
* isinteger.c: remove stdio.h math.h
2001-11-16 Paul Zimmermann <zimmerma@greux.loria.fr>
* mul_ui.c, sub1.c: ASSERT_ALWAYS -> MPFR_ASSERTN
* Makefile.am: added COPYING.LIB
* COPYING: replaced by GPL
2001-11-16 David Daney <daney@greux.loria.fr>
* factorial.c: remove limits.h
2001-11-16 Paul Zimmermann <zimmerma@greux.loria.fr>
* tests/tout_str.c, tests/tpi.c, tests/tpow.c, tests/tpow3.c, tests/trandom.c, tests/tround.c, tests/tset.c, tests/tset_d.c, tests/tset_f.c, tests/tset_q.c, tests/tset_si.c, tests/tset_str.c, tests/tset_z.c, tests/tsin.c, tests/tsin_cos.c, tests/tsinh.c, tests/tsqrt.c, tests/tsqrt_ui.c, tests/tsub.c, tests/tsub_ui.c, tests/tswap.c, tests/ttan.c, tests/ttanh.c, tests/ttrunc.c, tests/tui_div.c, tests/tui_pow.c, tests/tui_sub.c, tests/tzeta.c, tests/tdiv_ui.c, tests/tdump.c, tests/teq.c, tests/teuler.c, tests/texceptions.c, tests/texp.c, tests/texp2.c, tests/texpm1.c, tests/tfactorial.c, tests/tfma.c, tests/tgamma.c, tests/tgeneric.c, tests/tget_d.c, tests/tget_str.c, tests/thyperbolic.c, tests/thypot.c, tests/tisnan.c, tests/tlog.c, tests/tlog1p.c, tests/tlog2.c, tests/tlog_base_10.c, tests/tlog_base_2.c, tests/tmul.c, tests/tmul_2exp.c, tests/tmul_ui.c, tests/reuse.c, tests/tabs.c, tests/tacosh.c, tests/tadd.c, tests/tadd_ui.c, tests/tagm.c, tests/tasin.c, tests/tasinh.c, tests/tatan.c, tests/tatanh.c, tests/tcan_round.c, tests/tcmp.c, tests/tcmp2.c, tests/tcmp_ui.c, tests/tcos.c, tests/tcosh.c, tests/tdiv.c, set_d.c, set_dfl_prec.c, set_f.c, set_prc_raw.c, set_prec.c, set_q.c, set_rnd.c, set_si.c, set_str.c, set_str_raw.c, set_ui.c, set_z.c, sin.c, sinh.c, sqrt.c, sqrt_ui.c, sqrtrem.c, srandom.h, sub.c, sub1.c, sub_ui.c, swap.c, tan.c, tanh.c, trunc.c, ui_div.c, ui_pow.c, ui_pow_ui.c, ui_sub.c, urandomb.c, zeta.c, log2.c, log_base_10.c, log_base_2.c, minmax.c, mpf2mpfr.h, mpfi.c, mpfi.h, mpfr-impl.h, mpfr-test.h, mpfr.h, mpfr.texi, mpz_set_fr.c, mul.c, mul_2exp.c, mul_ui.c, neg.c, out_str.c, pi.c, pow.c, pow_si.c, pow_ui.c, print_raw.c, print_rnd_mode.c, random.c, random2.c, reldiff.c, rnd_mode.c, round.c, save_expo.c, set.c, div_ui.c, dump.c, eq.c, euler.c, exceptions.c, exp.c, exp2.c, exp3.c, exp_2.c, expm1.c, extract.c, factorial.c, fma.c, gamma.c, gammaPiAGMformula.c, generic.c, get_str.c, gmp_op.c, hypot.c, init.c, inp_str.c, isinf.c, isinteger.c, isnan.c, isnum.c, log.c, log1p.c, acosh.c, add.c, add1.c, add_ui.c, add_ulp.c, agm.c, asin.c, asinh.c, atan.c, atanh.c, clear.c, cmp.c, cmp2.c, cmp_abs.c, cmp_ui.c, copysign.c, cos.c, cosh.c, dim.c, div.c, div_2exp.c:
changed Library GPL to Lesser GPL
* COPYING.LIB: GNU Lesser General Public License, version 2.1
2001-11-16 David Daney <daney@greux.loria.fr>
* ui_pow.c: remove limits.h math.h
2001-11-16 Paul Zimmermann <zimmerma@greux.loria.fr>
* replace_all: now treats all *.h
2001-11-16 David Daney <daney@greux.loria.fr>
* exp2.c: remove the proto, remove math.h
2001-11-16 Paul Zimmermann <zimmerma@greux.loria.fr>
* div_ui.c: removed DEBUG's
* div_ui.c: removed old patch for GMP 2.xx
* urandomb.c, swap.c, eq.c: GNU MP -> MPFR
* add_ulp.c, tests/tout_str.c, tests/tabs.c, tests/tadd_ui.c, tests/tagm.c, tests/tcan_round.c, tests/tcmp.c, tests/tcmp_ui.c, tests/tdiv.c, tests/tdump.c, tests/teq.c, tests/texp.c, tests/tget_str.c, tests/thyperbolic.c, tests/tlog.c, tests/tlog2.c, tests/tmul.c, tests/tpi.c, tests/tpow.c, tests/tset_d.c, tests/tset_f.c, tests/tset_q.c, tests/tset_si.c, tests/tset_str.c, tests/tset_z.c, tests/tsin_cos.c, tests/tsqrt.c, tests/tsqrt_ui.c, tests/tswap.c, tests/ttrunc.c, tests/tui_div.c, tests/reuse.c, tests/tmul_2exp.c, tests/trandom.c:
added year 2001 in copyright line
* acosh.c, div_2exp.c, dump.c, exp3.c, exp_2.c, init.c, log2.c, mpfr-test.h, mpfr.h, mpz_set_fr.c, mul_2exp.c, out_str.c, pow_ui.c, print_rnd_mode.c, random.c, random2.c, reldiff.c, save_expo.c, set_dfl_prec.c, set_prc_raw.c, set_prec.c, sqrtrem.c, sub_ui.c, trunc.c, ui_pow_ui.c, cmp.c, cmp_abs.c, cmp_ui.c, div.c, get_str.c, inp_str.c, log.c, mpf2mpfr.h, mpfr-impl.h, mul_ui.c, round.c, set.c, set_d.c, set_f.c, set_q.c, set_str.c, set_z.c, ui_div.c, ui_sub.c:
added year 2001 in copyright line
removed #if __STDC__
* sin_cos.c: now two separate files cos.c and sin.c
* agm.c, urandomb.c, pi.c, clear.c: added year 2001 in copyright line
* BUGS: updated
* div2.c: old version, removed
* Makefile.am: added isinf and isnum (split from isnan)
* isinf.c, isnum.c: new files (split from isnan.c)
* acosh.c: removed prototype already in mpfr.h
* agm.c: translated french comments to english
* algorithms.tex: added mpfr_sub
* asinh.c: removed prototype already in mpfr.h
* atan.c: added static to local functions
* atanh.c: removed prototype already in mpfr.h
* cmp2.c: 1 -> MP_LIMB_T_ONE
* copysign.c: removed prototype already in mpfr.h
* cos.c: added static to local functions
* cosh.c: removed prototype already in mpfr.h
* div.c, div_ui.c: 1 -> BITS_PER_MP_LIMB
* euler.c: added static to local functions
removed prototype already in mpfr.h
* exp2.c: removed mpfr_exp2_si (not used)
* exp3.c: added static to local functions
translated french comments to english
* exp_2.c: added static to local functions
* expm1.c: translated french comments to english
removed prototype already in mpfr.h
* factorial.c: initialized inexact to 0
* generic.c: used TMP_ALLOC
translated french comments to english
* get_str.c: simplified test
* isnan.c: moved inf_p and number_p to different files
* log1p.c: translated french comments to english
removed prototype already in mpfr.h
* log2.c: added static to local functions
explained threshold
* minmax.c: removed prototypes already in mpfr.h
* mpfr.h: does not include stdio.h any more
* mpz_set_fr.c: added stdio.h
* add_ulp.c, mul.c, mul_ui.c, print_raw.c, round.c, set_z.c, sqrt.c, trunc.c:
1 -> BITS_PER_MP_LIMB
1 << (BITS_PER_MP_LIMB - 1) -> MP_LIMB_T_HIGHBIT
* out_str.c: removed french comment
* pi.c: added static to local functions
* pow_si.c: removed prototype already in mpfr.h
* print_raw.c: 1 -> BITS_PER_MP_LIMB
translated french comments to english
added static to local functions
* random.c, random2.c: 1 -> BITS_PER_MP_LIMB
* reldiff.c: removed french comment
* round.c: 1 -> BITS_PER_MP_LIMB
translated french comments to english
* set_d.c: 1 -> BITS_PER_MP_LIMB
added static to local functions
* set_z.c: 1 -> BITS_PER_MP_LIMB
* sinh.c: removed prototype already in mpfr.h
* sqrt.c: 1 -> BITS_PER_MP_LIMB
* sqrtrem.c: 1 -> BITS_PER_MP_LIMB
added static to local functions
* sub1.c: 1 -> BITS_PER_MP_LIMB
* tanh.c: removed prototype already in mpfr.h
* trunc.c: 1 -> BITS_PER_MP_LIMB
* ui_pow.c: removed proto already in mpfr.h
* urandomb.c: 1 -> MP_LIMB_T_ONE
* tests/reuse.c, tests/tcos.c, tests/tdump.c, tests/teuler.c, tests/texp.c, tests/tlog2.c, tests/tpi.c, tests/tpow.c, tests/tset_q.c, tests/tset_z.c, tests/tsin.c, tests/tswap.c, tests/ttan.c:
added stdio.h
2001-11-15 Vincent Lefevre <lefevre@greux.loria.fr>
* add.c, add1.c, sub.c, sub1.c, Makefile.am, Makefile.in:
add.c -> add.c & add1.c
sub.c -> sub.c & sub1.c + some changes.
2001-11-13 Paul Zimmermann <zimmerma@greux.loria.fr>
* mpfr.texi: iff the results are exact -> iff the result is exact
2001-11-10 Vincent Lefevre <lefevre@greux.loria.fr>
* add.c, cmp.c, cmp_abs.c, exceptions.c, neg.c, round.c, save_expo.c, set.c, set_si.c, set_ui.c:
GNU coding style. K&R function headers removed.
* mpfr-impl.h: MP_LIMB_T_ONE defined.
mp_size_unsigned_t defined.
Important bugs fixed (in particular when int has fewer than 32 bits).
Still unavoidable possible bugs due to the fact that mp_size_t is signed.
2001-11-09 David Daney <daney@greux.loria.fr>
* tests/tgamma.c: add tests file for gamma
* gammaPiAGMformula.c: add gamma function an other version
* gamma.c: add gamma function
2001-11-09 Paul Zimmermann <zimmerma@greux.loria.fr>
* mpfr.texi: mis a` jour valeur de retour de mpfr_tan
2001-11-09 Vincent Lefevre <lefevre@greux.loria.fr>
* mpfr.texi: Some -'s missing in floating-point.
2001-11-08 Paul Zimmermann <zimmerma@greux.loria.fr>
* mpfr.texi: modifs suite aux remarques de Nathalie
2001-11-08 David Daney <daney@greux.loria.fr>
* mpfr.h: remove some name of variables
2001-11-08 Vincent Lefevre <lefevre@greux.loria.fr>
* cmp2.c, pow2.c: cmp2.c: Integer overflows checked.
* isinteger.c, mpfr.h, pow.c, Makefile.am, Makefile.in: Update.
* mpfr.h: Fix.
2001-11-08 David Daney <daney@greux.loria.fr>
* mpfr.h: suppress variable name in dim min max
* isinteger.c: export isinteger in the file isinteger.c
* pow_si.c: exporte pow_si from pow2.c to pow_si.c
* pow.c: rename pow2.c in pow.c (source for mpfr_pow)
* ui_pow_ui.c: add ui_pow_ui.c (initially in pow.c)
* pow_ui.c: add pow_ui.c file (initially in pow.c)
2001-11-08 Vincent Lefevre <lefevre@greux.loria.fr>
* cmp2.c, mpfr-impl.h: mpfr_cmp2: return type changed to mp_prec_t.
2001-11-08 David Daney <daney@greux.loria.fr>
* tests/reuse.c: add function test4 for 3 input test + fma tests
2001-11-08 Vincent Lefevre <lefevre@greux.loria.fr>
* mpfr.h: Macros added.
* add.c: MP_LIMB_T_MAX instead of (mp_limb_t) -1 (a little nicer...).
2001-11-06 Vincent Lefevre <lefevre@greux.loria.fr>
* round.c: Code clean-up.
2001-11-05 Vincent Lefevre <lefevre@greux.loria.fr>
* exceptions.c: Prototypes for K&R C.
* round.c: mpfr_round_raw_generic prototype fixed.
2001-11-01 David Daney <daney@greux.loria.fr>
* asin.c: clear xp for Nan Inf or 0 are returned
* tests/thyperbolic.c: clear variable if an error is return
* atanh.c: clear x for Nan inf 0 return
* asinh.c: clear x for Nan Inf 0 return
* expm1.c: clear te
2001-11-01 Vincent Lefevre <lefevre@greux.loria.fr>
* tests/tpow.c: Added prototype.
* add.c: Bug fixed.
2001-11-01 Paul Zimmermann <zimmerma@greux.loria.fr>
* tests/tfma.c: fixed MLK's
* pow2.c: fixed MLK's in mpfr_isinteger
* tests/tpow3.c: fixed MLK's
* tests/tui_pow.c: fixed missing mpfr_clear's
* tests/tsin.c: added missing mpfr_clear
* tests/tsub.c: added clear's in bug_ddefour
* tests/tgeneric.c: added mpfr_clear's
* tests/tdiv.c: fixed MLK's
2001-10-31 Paul Zimmermann <zimmerma@greux.loria.fr>
* set_str_raw.c: fixed MLK for Inf or Nan
* tests/tadd.c: fixed MLK in check_case_2
2001-10-31 David Daney <daney@greux.loria.fr>
* mpfr.texi: rename factorial -> fac_ui
2001-10-30 Fabrice Rouillier <rouillie@greux.loria.fr>
* tests/Makefile.in, Makefile.in, gmp_op.c, mpfr.h:
Change mpfr_<op>_mpz to mpfr_<op>_z
Change mpfr_<op>_mpq to mpfr_<op>_q
where <op> is mul,div,add,sub
2001-10-30 David Daney <daney@greux.loria.fr>
* factorial.c: correct factorial -> fac_ui in comments
* tests/tfactorial.c: rename tfactorial -> fac_ui
* factorial.c, mpfr.h: rename factorial -> fac_ui
2001-10-27 Vincent Lefevre <lefevre@greux.loria.fr>
* add.c: Bug fixed.
2001-10-26 Paul Zimmermann <zimmerma@greux.loria.fr>
* tests/tadd_ui.c, tests/tsub_ui.c: drand -> drand48
* tests/tdiv.c: put MAX_PREC back to 100
* tests/tpow.c: added test for inexact flag
* div_ui.c: use MPFR_RET_NAN and MPFR_RET
* div.c: removed MPFR_DEBUG_LEVEL definition
* mpfr.texi: mpfr_set_q and mpfr_abs now return an int
mpfr_pow_ui and mpfr_ui_pow_ui now implement exact rounding
updated the documentation of the mpfr_*pow* functions
removed some internal functions
* pow.c: implemented exact rounding (but no ternary flag)
2001-10-26 David Daney <daney@greux.loria.fr>
* hypot.c: add some flags
* fma.c:
mixed version beetwen DD and Pau => (gestion des flag inexacte dirige)
* tests/tfma.c: rien
2001-10-26 Paul Zimmermann <zimmerma@greux.loria.fr>
* tests/tdiv.c: MAX_PREC included
* set_q.c: implemented inexact flag
2001-10-26 Guillaume Hanrot <hanrot@greux.loria.fr>
* div.c: Clearing high part of rem2.
2001-10-26 Fabrice Rouillier <rouillie@greux.loria.fr>
* Makefile.am: adds gmp_op.c
2001-10-26 Paul Zimmermann <zimmerma@greux.loria.fr>
* mpfr.h: mpfr_set_q now returns an int
* tests/tset_q.c: added test for inexact flag
2001-10-26 Fabrice Rouillier <rouillie@greux.loria.fr>
* gmp_op.c:
Adds the file gmp_op.c containing the implementations of operations between
mpfr and mpz/mpq data
2001-10-26 David Daney <daney@greux.loria.fr>
* hypot.c: err <0 => is now tester
2001-10-26 Guillaume Hanrot <hanrot@greux.loria.fr>
* div.c:
Patch for bits shifted out when the high word of the quotient is nonzero.
Induced error on inexact flag (and hence on rounding in some cases).
2001-10-26 David Daney <daney@greux.loria.fr>
* copysign.c: add copysign.c
2001-10-26 Paul Zimmermann <zimmerma@greux.loria.fr>
* tests/tdiv.c: added one test
2001-10-26 David Daney <daney@greux.loria.fr>
* dim.c: simplify dim
* tests/thypot.c: add exact flag
* pow2.c: err => long int
2001-10-26 Paul Zimmermann <zimmerma@greux.loria.fr>
* tests/tset.c: added one test
* log1p.c: cosmetic changes
* round.c: can_round return 0 for b=0
2001-10-26 David Daney <daney@greux.loria.fr>
* exp2.c: err => long int
* tests/Makefile.am: add thypot
* log_base_10.c, log_base_2.c: err => long int
* Makefile.am: add coopysign
* mpfr.h: add copysign
* expm1.c: correct mp_prec_t err => long int
* log1p.c: correst mp_prec_t err => long int
2001-10-26 Fabrice Rouillier <rouillie@greux.loria.fr>
* Makefile.in, mpfr.h, mpfr.texi:
Add multiplication/division/addition/substraction by mpz and mpq
2001-10-26 Paul Zimmermann <zimmerma@greux.loria.fr>
* tests/tadd.c: added two tests
fixed bug in generic tests (one more bit is needed to get an exact result)
* add.c: fixed pb with exact results not detected (ck was < 0)
2001-10-26 Guillaume Hanrot <hanrot@greux.loria.fr>
* tests/tfma.c: Rien.
* div.c:
Patch for the computation of the u_lo + r part of the remainder when u_lo = 0.
2001-10-26 Paul Zimmermann <zimmerma@greux.loria.fr>
* tests/tui_div.c, tests/tsub.c, tests/tdiv_ui.c, tests/tadd.c:
added test for inexact flag
* sub.c: fixed pbs with inexact flag
* mpfr.texi: now mpfr_div and mpfr_ui_div return an int
* mpfr.h, ui_div.c: implemented ternary flag in mpfr_ui_div
* log_base_2.c: removed unnecessary CLEAR_FLAGS
used MPFR_RET_NAN
* tests/tlog_base_2.c: reduced number of tests
* log_base_10.c: removed unnecessary CLEAR_FLAGS
* tests/reuse.c: improved mpfr_compare
fixed wrong function name for mpfr_log2
* div_ui.c: rewritten to implement ternary inexact flag
* tests/tfma.c: fixed generic test (pb with double rounding)
* tests/tdiv.c: increased MAX_PREC
2001-10-25 Guillaume Hanrot <hanrot@greux.loria.fr>
* acosh.c: Changed the type of err from mp_prec_t (unsigned) to int.
* tests/Makefile.in, tests/tdiv.c: Added tests for inexact flag.
* Makefile.in, algorithms.tex, configure, div.c:
Patch for even rounding.
2001-10-25 David Daney <daney@greux.loria.fr>
* log_base_2.c, log_base_10.c: rien
2001-10-25 Vincent Lefevre <lefevre@greux.loria.fr>
* tests/reuse.c: Warning avoided.
2001-10-25 Paul Zimmermann <zimmerma@greux.loria.fr>
* tests/Makefile.am: added tfma
* tests/tfma.c: slong -> t
* fma.c: nouvelew version (without loop)
2001-10-25 David Daney <daney@greux.loria.fr>
* pow2.c, tests/reuse.c: rien
* tests/reuse.c: change
2001-10-25 Vincent Lefevre <lefevre@greux.loria.fr>
* add.c: Bug fixed.
2001-10-25 David Daney <daney@greux.loria.fr>
* pow2.c: correct bugs with reuse
* tests/reuse.c: test for log2 log10 pow
2001-10-25 Guillaume Hanrot <hanrot@greux.loria.fr>
* mpfr.h, div.c: La division nouvelle est arrivee.
2001-10-25 Paul Zimmermann <zimmerma@greux.loria.fr>
* tests/tadd.c: ajoute' nouveau test
2001-10-25 Vincent Lefevre <lefevre@greux.loria.fr>
* add.c: Bug fixed.
2001-10-25 Guillaume Hanrot <hanrot@greux.loria.fr>
* mpfr-impl.h, round.c:
round_raw, round_raw2 -> round_raw_generic. Macros to simulate previous
behaviour. Even rounding returns +- MPFR_EVEN_INEX.
2001-10-25 Paul Zimmermann <zimmerma@greux.loria.fr>
* log_base_10.c: fixed pb with mpfr_log10(a, a) with a=-Inf
* tests/tadd.c: added two tests
* tests/tcmp.c: added one test
2001-10-25 David Daney <daney@greux.loria.fr>
* tests/reuse.c: add log2 and log10
* log_base_10.c: correction for reuse
* log_base_2.c: coorection for reuse
2001-10-25 Paul Zimmermann <zimmerma@greux.loria.fr>
* tests/texceptions.c: test file for testing exceptions
2001-10-25 Vincent Lefevre <lefevre@greux.loria.fr>
* add.c: mpfr_add1 completely rewritten. Overflows are checked.
The ternary value should now be supported (but it hasn't been tested yet).
2001-10-25 David Daney <daney@greux.loria.fr>
* fma.c: new version
2001-10-25 Paul Zimmermann <zimmerma@greux.loria.fr>
* tests/tmul_ui.c: added one test
* tests/tgeneric.c:
add possibility to define a random function (default is mpfr_random)
to get random variables in specific ranges
* tests/tatanh.c, tests/tasinh.c, tests/tacosh.c: now use tgeneric.c
* tests/Makefile.am: added texceptions
* mpfr.texi: documented exception mechanism (with Vincent Lefe`vre)
* tests/tfactorial.c: changed stupid test (was computing only 200!)
* factorial.c: implemented inexact flag
* exceptions.c: 1999 -> 2001
* add.c: check overflow
* tests/tui_sub.c: added two tests
* sub.c: implemented overflow/underflow
2001-10-25 David Daney <daney@greux.loria.fr>
* atanh.c: correct atanh(INF)=INF exact
* tests/thyperbolic.c: correct test inf for atanh
2001-10-25 Paul Zimmermann <zimmerma@greux.loria.fr>
* mpfr.texi: added warning for mpfr_set_d
2001-10-25 David Daney <daney@greux.loria.fr>
* tests/thyperbolic.c:
correct bug in tests file (test of atanh for + or - Inf)
2001-10-25 Paul Zimmermann <zimmerma@greux.loria.fr>
* tests/Makefile.am: added tadd_ui (forgotten?)
* tests/tadd_ui.c: added special test
* add.c:
fixed bug in rounding part when rounding towards 0 (infinite loop due to bn<an)
* tests/tasinh.c: added one special test
2001-10-24 David Daney <daney@greux.loria.fr>
* minmax.c: correct the Nan case
* dim.c: add the function mpfr_dim
* minmax.c: add function mpfr_min and mpfr_max
* tests/tasinh.c, tests/tatanh.c: correct these tesats files
* acosh.c, asinh.c, atanh.c, cosh.c, sinh.c, tanh.c: correct some bugs
2001-10-24 Paul Zimmermann <zimmerma@greux.loria.fr>
* tests/Makefile.am: added EXTRA_DIST= tgeneric.c
2001-10-24 David Daney <daney@greux.loria.fr>
* tests/Makefile.am: remove tfma
* tests/tfma.c: add tfma
* acosh.c: acosh revue et corrige...+beau
2001-10-23 David Daney <daney@greux.loria.fr>
* mpfr.h: add mpfr_log10
* Makefile.am: add log_base_10
* tests/Makefile.am: add tlog_base_10
* tests/tlog_base_10.c: add test file for log_base_10 function
* log_base_10.c: add log_base_10
* mpfr.texi: correct a bug in mpfr_log10 section
* mpfr.texi: add help of log10 + fma
* log_base_2.c: correct particular cases
* log_base_2.c: improve the clear flags
* tests/tpow3.c: correction dans l'entete
2001-10-21 Vincent Lefevre <lefevre@greux.loria.fr>
* tests/tdiv.c, tests/reuse.c: Some changes to avoid warnings.
* div.c: Bug fixed (char -> int).
2001-10-19 Vincent Lefevre <lefevre@greux.loria.fr>
* tests/Makefile.in, Makefile.in: Update.
* add_ui.c, sub_ui.c:
Bugs fixed concerning the "inexact" ternary value.
2001-10-19 David Daney <daney@greux.loria.fr>
* tests/Makefile.am: suppress thypot tgeneric
* tests/Makefile.am: suppress sample
2001-10-19 Paul Zimmermann <zimmerma@greux.loria.fr>
* mpfr.h: void -> int as return value for mpfr_add_ui
* add_ui.c: added ternary flag
* mpfr.texi: void -> int for mpfr_add and mpfr_add_ui
2001-10-19 David Daney <daney@greux.loria.fr>
* tests/thypot.c: add test for hypot
* tests/Makefile.am: add some test
* Makefile.am: add some functions
* mpfr.h: add some proto
* tests/tpow3.c: add test file for pow
* mpfr.texi: add the help for pow and pow_si
* pow2.c: add the function pow and pow_si
2001-10-19 Paul Zimmermann <zimmerma@greux.loria.fr>
* tests/tsub.c: added two tests for 0-c and c-0 with prec(c) > prec(a)
2001-10-19 Vincent Lefevre <lefevre@greux.loria.fr>
* neg.c:
Removed #include <stdio.h>, "return 0;" replaced by "MPFR_RET(0);".
* mpfr-impl.h, mpfr.h, sub.c, add.c:
mpfr_add1 and mpfr_sub1 prototypes moved to mpfr-impl.h (to detect clashes).
Bug fix concerning the inexact ternary value in mpfr_sub.
mpfr_add now returns an int (inexact ternary value unsupported if true add).
* Makefile.in: Update.
* set_si.c: Underflow/overflow check.
* mpfr-impl.h: Documentation updated.
* set_ui.c: Comment added.
* set.c: MPFR_RET(0) replaced by MPFR_RET_NAN.
* mpfr-impl.h: Macro MPFR_RET_NAN.
2001-10-18 Vincent Lefevre <lefevre@greux.loria.fr>
* round.c: Code clean-up in mpfr_round_raw (well... IMHO).
2001-10-18 David Daney <daney@greux.loria.fr>
* ui_pow.c: take in account of CHAR_BIT in ui_pow
2001-10-18 Paul Zimmermann <zimmerma@greux.loria.fr>
* sqrt.c: cast to mp_limb_t was missing
2001-10-18 Vincent Lefevre <lefevre@greux.loria.fr>
* acosh.c, asinh.c, atanh.c, factorial.c:
BITS_PER_CHAR replaced by the standard CHAR_BIT.
2001-10-18 Guillaume Hanrot <hanrot@greux.loria.fr>
* div.c: *** empty log message ***
2001-10-18 David Daney <daney@greux.loria.fr>
* tests/tui_pow.c: add test of ui_pow
* mpfr.texi: add the help of ui_pow
* ui_pow.c: add the function pow(unsign long int, mpfr_t)
2001-10-18 Vincent Lefevre <lefevre@greux.loria.fr>
* configure, configure.in: Improved configure.in.
configure generated by Autoconf 2.52.
2001-10-18 David Daney <daney@greux.loria.fr>
* exp2.c: ajout du flag inexact
2001-10-18 Vincent Lefevre <lefevre@greux.loria.fr>
* configure:
fixed and improved check for gmp.h/gmp-impl.h/config.h/gmp-mparam.h/longlong.h
and corresponding error message
2001-10-18 David Daney <daney@greux.loria.fr>
* mpfr.texi: add the help on log2
* tests/tlog_base_2.c: add the test file of the log2 (log in base 2)
* log_base_2.c: ajout de log2 (log en base 2)
* tanh.c: correst tanh(0)
2001-10-18 Paul Zimmermann <zimmerma@greux.loria.fr>
* tests/tset_si.c: added two more tests
* set_si.c:
wrong sign passed to mpfr_can_round (mp_limb_t may be unsigned)
2001-10-18 David Daney <daney@greux.loria.fr>
* sinh.c: correct a bug for sinh(Inf)
2001-10-17 David Daney <daney@greux.loria.fr>
* tanh.c: correct syntax of tanh.c
* sinh.c: correct an error
* cosh.c: correct few things
* cosh.c: little patch for cosh
* tests/texpm1.c: add the test function of expm1
* tests/tlog1p.c: add the test of the function log1p
* expm1.c: add the function expm1
* log1p.c: add the function log1p
* mpfr.texi: add to mpfr.texi log1p and expm1
* exp2.c: actualisation de exp2.c
* exp2.c: actualisation de exp2
2001-10-17 Guillaume Hanrot <hanrot@greux.loria.fr>
* tests/Makefile.in, tests/tdiv.c: New tests in tdiv.c.
* div.c, div2.c:
New division in div.c, old one renamed in mpfr_div2. Remains to implement
exact/inexact flag. Should not be *that* hard.
2001-10-16 David Daney <daney@greux.loria.fr>
* algorithms.tex: ajout de functions pow, fma, hypot etc etc
2001-10-16 Paul Zimmermann <zimmerma@greux.loria.fr>
* Makefile.am: added fma.c
* mpfr.h: added prototypes for mpfr_fma and mpfr_hypot
* hypot.c: small changes for inexact flag
* fma.c: added some cases for Inf
implement (partly) inexact flag
2001-10-16 David Daney <daney@greux.loria.fr>
* hypot.c: ajout hypot
* fma.c: ajout de fma
2001-10-16 Vincent Lefevre <lefevre@greux.loria.fr>
* sub.c: Comment: // --> /* ... */
2001-10-15 Paul Zimmermann <zimmerma@greux.loria.fr>
* tests/tgeneric.c: generic test file
* tests/reuse.c:
added cast to (void*) for new functions returning an int
* tests/tabs.c: added test for inexact flag
* tests/tcos.c: now use tgeneric.c
added more tests
* tests/tcosh.c, tests/texp.c, tests/texp2.c: now use tgeneric.c
* tests/thyperbolic.c:
fixed test of return values for infinities: foo(+/-Inf) is *exact*
* tests/tlog.c: now use tgeneric.c
* tests/tset.c: now also try with negative numbers
* tests/tsin.c, tests/tsinh.c, tests/ttan.c, tests/ttanh.c:
now use tgeneric.c
* cos.c, cosh.c: implement ternary inexact flag
* div_2exp.c: implement inexact flag
* exp.c, exp2.c: implement ternary inexact flag
* exp3.c: implement inexact flag
* exp_2.c, log.c: implement ternary inexact flag
* mpfr.h: return type is now int for mpfr_mul_2exp and mpfr_div_2exp
* mpfr.texi: return type is now int for more functions
* mul_2exp.c: implement inexact flag
* random.c: sign was not set
* round.c: rewritten completely mpfr_can_round_raw
* set.c: documented mpfr_set4
* set_prec.c: return non-zero if malloc failed
* set_q.c: cosmetic changes
* sin.c, sinh.c: implement ternary inexact flag
* sqrt_ui.c: avoid one variable
* tan.c, tanh.c: implement ternary inexact flag
* agm.c: cosmetic changes
2001-10-12 David Daney <daney@greux.loria.fr>
* algorithms.tex:
correction d'erreurs sur les notations + correction de la regle 9
2001-10-12 Paul Zimmermann <zimmerma@greux.loria.fr>
* mpfr-impl.h: fixed MPFR_ASSERT
documented MPFR_ASSERTN and MPFR_ASSERTD
* tests/tset_f.c: added test for mpfr_init_set_f prototype
* tests/tmul_ui.c: added test for inexact flag
corrected a wrong test
* tests/tadd.c: cosmetic change
* tests/Makefile.am:
added tsub_ui (did exist but forgotten in Makefile) and tset (new file)
* tests/tset.c: test file for mpfr_set, initial version
* mpfr.texi: void -> int as return value for several functions
and explained the ternary return value
* ui_sub.c, set_f.c: implemented inexact flag
* mpfr.h:
void -> int as return value for new functions implementing inexact flag
* set_d.c: implemeted inexact flag in mpfr_set_d
* round.c: implemented inexact flag in mpfr_round
* neg.c: implemented inexact flag
* mul_ui.c: completely rewritten
* mul.c: computation of inexact flag now directly uses mpfr_round_raw
* mpfr-impl.h: added 'if' in MPFR_ASSERT to avoid compiler warning
* add.c:
put initial value in variables which may be used without being initialized
* TODO: updated things done, added Rounding section
2001-10-11 David Daney <daney@greux.loria.fr>
* algorithms.tex: ajout de log1p et expm1
2001-10-11 Paul Zimmermann <zimmerma@greux.loria.fr>
* tests/tatan.c: reduced number of random tests (took too much time)
* tests/tsub.c: added random tests for inexact flag
* sub.c, sub_ui.c: implemented inexact flag
* tests/tui_sub.c, tests/tsub_ui.c: added random tests for inexact flag
2001-10-11 David Daney <daney@greux.loria.fr>
* algorithms.tex: ajout du log generic et de fma
2001-10-11 Paul Zimmermann <zimmerma@greux.loria.fr>
* sqrt.c: inexact flag was wrong in some cases
* tests/tsqrt.c: added random tests for inexact flag
* tests/tasin.c: reduced number of loops per precision from 100 to 10
(test was too long)
* configure:
improved check for gmp-impl.h/config.h/gmp-mparam.h/longlong.h
and corresponding error message
* INSTALL:
stack-alloc.h no longer needed (will be included in gmp-impl.h)
* mpfr.texi:
stack-alloc.h is no longer needed (will be included in gmp-impl.h)
2001-10-09 Paul Zimmermann <zimmerma@greux.loria.fr>
* algorithms.tex: added proof of rules
* tests/tadd.c: fixed buggy test
2001-10-05 Paul Zimmermann <zimmerma@greux.loria.fr>
* add.c:
fixed bug for b + d where b=2^900+2^500+2^110, d=2^900-2^500-2^110
2001-10-03 Paul Zimmermann <zimmerma@greux.loria.fr>
* set_d.c: fixed bug in mpfr_set_d on 64-bit machines
2001-09-28 Paul Zimmermann <zimmerma@greux.loria.fr>
* set_d.c:
fixed a few problems in mpfr_set_d for sizer < MPFR_LIMBS_PER_DOUBLE
* algorithms.bib: added paper of Brent and McMillan
* tests/texp.c: does not call compare_exp2_exp3 when argc=4
* TODO: added one item
* mpfr.h, mpfr.texi, set_prec.c:
now mpfr_set_prec returns 1 instead of producing an error in case prec=0
2001-09-27 David Daney <daney@greux.loria.fr>
* algorithms.tex: New version with new generic function + / * etc
2001-09-20 Vincent Lefevre <lefevre@greux.loria.fr>
* BUGS, INSTALL, README: BUGS updated.
2001-09-13 Vincent Lefevre <lefevre@greux.loria.fr>
* tests/tabs.c, tests/tadd.c, tests/tadd_ui.c, tests/tcmp.c, tests/tcos.c, tests/tmul_ui.c, tests/trandom.c, tests/tsin.c, tests/tsub_ui.c, tests/ttan.c:
Prototype changes.
* dump.c, set_str.c, set_str_raw.c: <strings.h> -> <string.h> (ISO C).
* configure, configure.in, mpfr-impl.h:
GCC option -Wno-implicit removed and prototype added to mpfr-impl.h
2001-09-12 Vincent Lefevre <lefevre@greux.loria.fr>
* tests/Makefile.in, tests/Makefile.am:
INCLUDES in Makefile.am: -I$(top_srcdir) and @INCLUDES@ swapped.
This defines the following precedence for the tests:
1) MPFR directories
2) User-defined directory
3) GMP include directory
This allows the user to override the GMP longlong.h file with the
gcc-3 one, by using: INCLUDES="-I.../include" ./configure ...
* tests/tset_si.c: Tests added (in particular, inex value).
* set_si.c: Bug fixed.
2001-09-11 Vincent Lefevre <lefevre@greux.loria.fr>
* mpfr-impl.h: MPFR_RET: definition changed to avoid warning.
* set_ui.c, mpfr.h, set.c, set_si.c:
Inexact ternary value for mpfr_set4, mpfr_set_ui and mpfr_set_si.
* mpfr-impl.h: Macro SAFE_ABS.
* exceptions.c, mpfr-impl.h:
Inexact ternary value and flag for mpfr_set_underflow, mpfr_set_overflow
and mpfr_check_range.
* mpfr-impl.h, mpfr.h, set.c:
Macro MPFR_RET added. Ternary value for mpfr_set4.
* exceptions.c, mpfr.h: New flags.
2001-09-10 Vincent Lefevre <lefevre@greux.loria.fr>
* tests/Makefile.in, Makefile.in, div.c, mpfr-impl.h, mpfr.texi, mul.c, mul_ui.c, round.c, set.c, set_f.c, set_si.c, set_ui.c, sqrt.c:
Parameter added to mpfr_round_raw: pointer to inexact ternary value.
2001-09-10 Guillaume Hanrot <hanrot@greux.loria.fr>
* set_d.c: Zqwiuyt
* set_d.c: Zorgs.
* set_d.c: Gleurbs.
* set_d.c: Patch grotesque.
* set_d.c: Patch for the case SIZE(r) < MPFR_LIMBS_PER_DOUBLE.
2001-09-10 Paul Zimmermann <zimmerma@greux.loria.fr>
* tests/ttan.c: test file for mpfr_tan
* tests/tsin.c: fixed a few typos
* tests/reuse.c: added mpfr_tan
* tests/Makefile.am: added ttan
* algorithms.tex: added the tangent
* Makefile.am: added tan.c
* mpfr.h: added mpfr_tan
* tan.c: tangent function
2001-09-07 Paul Zimmermann <zimmerma@greux.loria.fr>
* sin_cos.c:
removed mpfr_sin and mpfr_cos (now separate implementations)
* mpfr.h: removed sin_cos
* algorithms.tex: added sine and cosine
* Makefile.am: removed sin_cos, added sin and cos
* mpfr.texi: removed mpfr_sin_cos
* tests/reuse.c: removed sin_cos, added sin and cos
* tests/Makefile.am: removed tsin_cos, added tsin and tcos
* tests/tcos.c, tests/tsin.c: test files for mpfr_cos and mpfr_sin
* sin.c: new implementation of mpfr_sin, using mpfr_cos
* cos.c: new (faster) implementation of mpfr_cos
2001-09-06 Vincent Lefevre <lefevre@greux.loria.fr>
* exceptions.c: Fix: flags set in mpfr_set_{under,over}flow().
* sub.c: Cases where the result is 0 fixed.
Integer overflow checked in mpfr_sub.
* Makefile.am, Makefile.in, add.c:
In add.c: use mpfr_cmp_abs instead of mpfr_cmp3; x - x fixed for GMP_RNDD.
* cmp_abs.c: Compare the absolute values of two nonzero FP numbers.
2001-09-05 Vincent Lefevre <lefevre@greux.loria.fr>
* cmp.c, mpfr.h: mpfr_cmp3 changed and integer overflows checked.
2001-09-05 Paul Zimmermann <zimmerma@greux.loria.fr>
* TODO: added efficiency item
2001-09-03 Vincent Lefevre <lefevre@greux.loria.fr>
* add.c: Cases [+-]0 + [+-]0 fixed (depending on the rounding mode).
2001-08-29 Vincent Lefevre <lefevre@greux.loria.fr>
* set.c: Optimization + overflow support.
* add.c, mpfr-impl.h: Case +0 + -0 fixed.
2001-08-29 Paul Zimmermann <zimmerma@greux.loria.fr>
* tests/tadd.c: added one test
* tests/tmul_ui.c: another test from Norbert
* mul_ui.c: another fix (final copy when xsize > ysize was wrong)
2001-08-28 Paul Zimmermann <zimmerma@greux.loria.fr>
* tests/tadd.c: added several tests for case (1b)
* mul_ui.c: another fix (previous one was incomplete)
* tests/tmul_ui.c: added one more test (from Norbert)
2001-08-28 Vincent Lefevre <lefevre@greux.loria.fr>
* add.c: Bug fixed.
* add.c: Bug fixed and update to check the exponents.
2001-08-27 Paul Zimmermann <zimmerma@greux.loria.fr>
* tests/tdiv_ui.c: added test for 53 <= xprec, yprec <= 128
* tests/tmul_ui.c: added multiple tests for 53 <= xprec, yprec <= 128
* mul_ui.c: was completely wrong for ysize > xsize
* algorithms.tex:
added faster formula in exp(-8*n) for Euler's constant
2001-08-25 Vincent Lefevre <lefevre@greux.loria.fr>
* mpfr-impl.h: Assertion support with debug level.
* add_ui.c, exceptions.c, mpfr-impl.h, mpfr.h, save_expo.c, sub_ui.c, Makefile.am, Makefile.in:
Some support for exponent change and exceptions.
2001-08-23 Paul Zimmermann <zimmerma@greux.loria.fr>
* mpfr-impl.h: added constant ALPHA (for mpfr_const_euler)
* tests/Makefile.in, Makefile.in: added euler/teuler
* tests/Makefile.am: added teuler
* Makefile.am: added euler.c
* add.c: fixed pb with c2 = c2old << dif with dif negative
* sub.c: fixed bug for (2^53+4) - 1
* tests/tmul_ui.c: added new test from Norbert Mueller
* mul_ui.c: fixed pb: sh becomes "negative"
* algorithms.tex: included Euler's constant
* algorithms.bib: bibtex file for algorithms.tex
* tests/teuler.c: test file for mpfr_const_euler
* euler.c: computation of Euler's constant 0.577...
* tests/tsub.c: added missing prototype
* mpfr.h: mpfr_const_euler returns an int
* mpfr.h, mpfr.texi: added mpfr_const_euler
2001-08-22 Vincent Lefevre <lefevre@greux.loria.fr>
* tests/tadd.c: Tests added.
* sub.c: Bugs fixed (particular cases).
* add.c: "mant(c) != 1/2" test was broken.
* tests/tadd.c: check fixed. Check added: 2^53 + 1 --> 2^53.
* tests/Makefile.in, Makefile.in: Update.
2001-08-21 Paul Zimmermann <zimmerma@greux.loria.fr>
* tests/tdiv_ui.c: added one test
* div_ui.c: fixed stupid bug when dif < 0
2001-08-14 Paul Zimmermann <zimmerma@greux.loria.fr>
* mpfr.h: added mpfr_asin
* tests/tget_str.c: added missing cast
* mpfr.texi: added mpfr_asin
* tests/tasin.c: test file for mpfr_asin
* asin.c: arc-sine, contributed by Mathieu Dutour
* tests/reuse.c: added mpfr_asin
* tests/tatan.c: new name for file tarctan.c
* tests/tarctan.c: renamed to tatan.c
* tests/Makefile.am: renamed tarctan.c into tatan.c
added tasin.c
* Makefile.am: renamed arctan.c to atan.c
added asin.c
* atan.c: new name for file arctan.c
* arctan.c: moved to atan.c
* add.c: low significant bit is in ap[0] and not in ap[an-1] !!!
2001-08-13 Vincent Lefevre <lefevre@greux.loria.fr>
* mpfr-impl.h: Cleaner MPFR_SET_SAME_SIGN.
* mpfr-impl.h:
Macros MPFR_SET_SAME_SIGN, MPFR_INIT and MPFR_INIT1 changed to expressions.
2001-08-10 Vincent Lefevre <lefevre@greux.loria.fr>
* set_ui.c, set_z.c, set_si.c: Bugs fixed (wrong types).
* mpfr.h: Macros mpfr_init_set_* changed to expressions.
* Makefile.in: Makefile.in update.
2001-07-06 Paul Zimmermann <zimmerma@greux.loria.fr>
* tests/tset_str.c: edited wrt GNU style
* get_str.c:
fixed stupid bug: ceil(a/b) isn't (a+b-1)/a but simply a/b for a negative!
* sub.c: fixed array bound write (bn < an + cancel1 + 1)
* mpfr-impl.h:
macros MPFR_NOTZERO and MPFR_ISZERO did not work properly with 64-bit words
2001-06-29 Paul Zimmermann <zimmerma@greux.loria.fr>
* get_str.c: fixed bug for output base 2^k
* tests/tget_str.c: added one test
* algorithms.tex: added a section for the exponential
* tests/tdiv_ui.c, div_ui.c: fixed bug when dividend is 0
2001-06-28 Paul Zimmermann <zimmerma@greux.loria.fr>
* exp_2.c: moved TMP_FREE
* TODO: added 2 things
2001-06-27 Paul Zimmermann <zimmerma@greux.loria.fr>
* Makefile.am: added mpfr.info to files to remove for "make distclean"
2001-06-23 Vincent Lefevre <lefevre@greux.loria.fr>
* tests/Makefile.am, tests/Makefile.in, Makefile.am, Makefile.in:
Non-existent C source references removed.
* mpfr-impl.h: Macros MPFR_INIT and MPFR_INIT1 fixed.
2001-06-18 Paul Zimmermann <zimmerma@greux.loria.fr>
* agm.c, sqrt.c: nested double TMP_DECL's
2001-06-14 David Daney <daney@greux.loria.fr>
* tests/Makefile.in, tests/reuse.c, tests/tarctan.c, tests/tfactorial.c, tests/Makefile.am, sin_cos.c, ui_sub.c, Makefile.am, Makefile.in, arctan.c, mpfr.h, out_str.c:
A few patches.
2001-06-07 Paul Zimmermann <zimmerma@greux.loria.fr>
* mpfr.h, mpfr.texi, sin_cos.c: added mpfr_sin and mpfr_cos
corrected in the documentation some exact values
2001-06-01 Paul Zimmermann <zimmerma@greux.loria.fr>
* mpfr.texi: removed 2 tabs
* mpfr.texi: added change explaining the LGPL with non-free programs
2001-05-31 Guillaume Hanrot <hanrot@greux.loria.fr>
* mul_ui.c: Patch for the case b = 0 or c = 0.
2001-05-23 Guillaume Hanrot <hanrot@greux.loria.fr>
* tests/tsub.c: Added DDefour's bug.
2001-05-22 Guillaume Hanrot <hanrot@greux.loria.fr>
* sub.c: Patch in the case MPFR_PREC(b) > MPFR_PREC(a)+cancel.
2001-05-10 Vincent Lefevre <lefevre@greux.loria.fr>
* tests/Makefile.in, Makefile.in, mpfr.texi: fixed bug in mpfr.texi
2001-05-10 David Daney <daney@greux.loria.fr>
* mpfr.texi:
correction du bug donne par vincent + ajout des aides des fonctions hyperbolic
2001-05-09 David Daney <daney@greux.loria.fr>
* mpfr.texi: *** empty log message ***
2001-04-20 Paul Zimmermann <zimmerma@greux.loria.fr>
* log.c: log(0) now returns 0 (exact infinity)
2001-04-18 Paul Zimmermann <zimmerma@greux.loria.fr>
* log.c: fixed pbs with NaN/Inf
* sub.c:
fixed new bug found by Nathalie Revol (case when add_one_ulp produces a carry)
* tests/tsub.c: added new bug found by Nathalie Revol
* sub.c: fixed bug for 1.0000... - 0.000001 for rounding up or nearest
2001-04-17 Nathalie Revol <revol@greux.loria.fr>
* log.c: Case where argument < 0 included, NR 17-04-2001
2001-04-12 Paul Zimmermann <zimmerma@greux.loria.fr>
* tests/tui_sub.c: added new (special) tests
* tests/tsub.c: test file for mpfr_sub
* tests/Makefile.am: added tsub
2001-04-06 David Daney <daney@greux.loria.fr>
* exp.c: change old exp2 (conflict with 2^x) to exp_2
2001-04-05 Paul Zimmermann <zimmerma@greux.loria.fr>
* tests/tcmp2.c: 0 -> GMP_RNDN
* cmp2.c:
check apart the case c=0 (otherwise some low significant limbs may be
non zero, which may produce a wrong result)
* exp.c, tests/texp.c: mpfr_exp2 -> mpfr_exp_2
2001-04-05 David Daney <daney@greux.loria.fr>
* mpfr.h: reactualise .h
* tests/thyperbolic.c: change header
* tests/reuse.c: change reuse to suppress factorial
* tests/Makefile.am: suppress of timing in makefile
* exp_2.c: add the old exp2 function and file renamed by exp_2
* Makefile.am: change makefile for new functions
* tests/Makefile.am:
change make file test for hyperbolic function exp2 and factorial
* tests/tacosh.c, tests/tasinh.c, tests/tatanh.c, tests/ttanh.c, tests/tcosh.c, tests/tsinh.c:
add new test file for hyperbolic function
* tests/thyperbolic.c, tests/texp2.c, tests/tfactorial.c:
add test file for new function
* exp2.c, factorial.c: add function
* acosh.c, asinh.c, atanh.c, sinh.c, tanh.c: new file function
* cosh.c: new function file
2001-04-05 Paul Zimmermann <zimmerma@greux.loria.fr>
* Makefile.in: new version with cmp2.c
* mul.c:
fixed pb with inexact flag when 'int' and 'mp_limb_t' has different sizes
2001-04-05 David Daney <daney@greux.loria.fr>
* tests/tcmp_ui.c, cmp_ui.c: fixed bug for mpfr_cmp_ui (Inf, 0)
* tests/tset_si.c, set_ui.c:
fixed bug for mpfr_set_ui (x, 0) [was giving -0]
2001-04-03 Paul Zimmermann <zimmerma@greux.loria.fr>
* algorithms.tex: added algorithm for mpfr_cmp2
* Makefile.am: added cmp2.c
* cmp2.c: fixed bug when diff_exp >= BITS_PER_MP_LIMB
* tests/tcmp2.c:
added new test for worst cases: 1 - 1/2^i and (1 + 1/2^i) - 1/2^i
* mpfr-impl.h: changed return value of mpfr_cmp2
* cmp2.c: new file for mpfr_cmp2
* cmp.c: moved mpfr_cmp2 to separate file cmp2.c
* tests/tcmp2.c:
added several tests, and a routine that generates worst cases
* trunc.c: two changes suggested by Kevin Ryde
2001-04-02 Paul Zimmermann <zimmerma@greux.loria.fr>
* Makefile.in: new version from new Makefile.am
2001-03-27 Paul Zimmermann <zimmerma@greux.loria.fr>
* tests/tadd.c: added new test
* cmp.c: fixed new bug in mpfr_cmp2 found by Fabrice
2001-03-21 Paul Zimmermann <zimmerma@greux.loria.fr>
* tests/tcmp2.c: added new test
* cmp.c: fixed bug found by Nathalie Revol
2001-03-20 Paul Zimmermann <zimmerma@greux.loria.fr>
* TODO: added 2 items
* tests/tcmp_ui.c: added test for mpfr_cmp_ui (-0, 0)
* out_str.c: now prints -0 for -0
2001-03-19 Nathalie Revol <revol@greux.loria.fr>
* cmp_ui.c: Comparison between 0- and 0 now returns 0, NR 19-03-2001
2001-03-16 Vincent Lefevre <lefevre@greux.loria.fr>
* tests/reuse.c: added cast to avoid a warning
2001-03-13 Paul Zimmermann <zimmerma@greux.loria.fr>
* tests/tmul.c: added tests for inexact return value
* mul.c: tiny bug in inexact value determination
* mpfr.h, mpfr.texi, mul.c: mpfr_mul now returns an int
2001-03-09 Paul Zimmermann <zimmerma@greux.loria.fr>
* algorithms.tex: description of algorithms
* TODO: reorganized
2001-03-08 Paul Zimmermann <zimmerma@greux.loria.fr>
* TODO: added few things
* Makefile.am, mpfr.h: added arc-tangent
* tests/Makefile.am: added tarctan
* tests/reuse.c: added test to mpfr_arctan
* tests/tarctan.c: added header
* tests/tarctan.c: test file for mpfr_arctan
* arctan.c: removed math.h
* arctan.c:
arctangent function (contributed by Mathieu Dutour, done slight changes)
* mpfr.texi: added Mathieu Dutour in contributors
* mpfr.texi: added mpfr_arctan
* tests/tcan_round.c: added one test
* round.c:
fixed bug in mpfr_can_round_raw, when err > bn*BITS_PER_MP_LIMB
* tests/tset_str.c: now tset_str <number> <prec> is possible
2001-03-06 Paul Zimmermann <zimmerma@greux.loria.fr>
* out_str.c: fixed bug for Infinity (was testing zero before)
2001-03-01 Paul Zimmermann <zimmerma@greux.loria.fr>
* set_d.c: replaced (mp_limb_t) 4294967295 by CNST_LIMB(0xFFFFFFFF)
2001-02-22 Paul Zimmermann <zimmerma@greux.loria.fr>
* set_d.c: forgot to declare q in mpfr_get_d2 when BITS_PER_MP_LIMB=64
2001-02-21 Paul Zimmermann <zimmerma@greux.loria.fr>
* set_str.c: removed fprintf() when unexpected end of string
* mpf2mpfr.h: added undef's to avoid warnings at compilation
2001-02-19 Paul Zimmermann <zimmerma@greux.loria.fr>
* mpfr.texi: removed mpfr_set_machine_rnd_mode
2001-02-18 Paul Zimmermann <zimmerma@greux.loria.fr>
* tests/tset_d.c, tests/tset_f.c, tests/tset_q.c, tests/tset_si.c, tests/tset_str.c, tests/tset_z.c, tests/tsin_cos.c, tests/tsqrt.c, tests/tsqrt_ui.c, tests/tswap.c, tests/ttrunc.c, tests/tui_div.c, tests/tui_sub.c, tests/reuse.c, tests/tabs.c, tests/tadd.c, tests/tagm.c, tests/tcan_round.c, tests/tcmp.c, tests/tcmp2.c, tests/tcmp_ui.c, tests/tdiv.c, tests/tdiv_ui.c, tests/tdump.c, tests/teq.c, tests/texp.c, tests/tget_str.c, tests/tlog.c, tests/tlog2.c, tests/tmul.c, tests/tmul_2exp.c, tests/tmul_ui.c, tests/tout_str.c, tests/tpi.c, tests/tpow.c, tests/trandom.c:
changed "int main(..)" to two lines
* get_str.c: now initialize str_is_null correctly
* tests/tround.c: added more tests
* round.c: don't change MPFR_SIZE when allocated size is enough
* mpfr.texi: updated specification of mpfr_sgn
* mpfr.h: changed definition of mpfr_sgn to get rid of MPFR_NOTZERO
* out_str.c: size of freed block by __gmp_free_func was wrong
* tests/Makefile.am: added tisnan and tget_d
* isnan.c: fixed bug for Inf (recognized as an ordinary number)
* tests/tget_d.c, tests/tisnan.c: new test file
2001-02-16 Paul Zimmermann <zimmerma@greux.loria.fr>
* agm.c: check overflow in _mpfr_ceil_exp2
2001-02-15 Paul Zimmermann <zimmerma@greux.loria.fr>
* mpfr-test.h: added prototype for Ulp
* isnan.c: changed _d to _p, added mpfr_number_p
* round.c:
changed MPN_COPY into MPN_COPY_INCR/MPN_COPY_DECR in mpfr_round_raw
* tests/tsin_cos.c: added tests for one of arguments NULL
* mpfr-impl.h: moved mpfr_sgn to mpfr.h (defined in manual)
* mpz_set_fr.c: use MPZ_REALLOC
* mpfr.h, set_str.c: added const to 2nd argument of mpfr_set_str
* Makefile.am: added set_ui.c
* set_ui.c, set_si.c: added cast to "unsigned long" for ai = ABS(i)
moved mpfr_set_ui to separate file
* mpfr.texi, get_str.c:
now when str==NULL return a block which is exactly strlen(str)+1 bytes long
* add.c, agm.c, exp2.c, exp3.c, generic.c, log2.c, pi.c, print_raw.c, set_d.c, sin_cos.c, sub.c:
fixed problems with old K&R compilers (_PROTO missing)
2001-02-08 Paul Zimmermann <zimmerma@greux.loria.fr>
* TODO: added more items
2001-01-23 Paul Zimmermann <zimmerma@greux.loria.fr>
* mpfr-test.h: fixed ulp computation
2001-01-19 Paul Zimmermann <zimmerma@greux.loria.fr>
* tests/tlog.c:
changed behaviour for "tlog N": prints only differences with increasing ulps
* set_d.c:
fixed pb in mpfr_get_d2 for 64-bit machines: in q + res/MP_BASE_AS_DOUBLE,
q seems first to be cast into a double, which gives more than one ulp of
error
2001-01-18 Paul Zimmermann <zimmerma@greux.loria.fr>
* mpfr.h: added guard to prevent multiple inclusion
* cmp.c: fixed bug in mpfr_cmp2 (found on the IA64)
2001-01-11 Paul Zimmermann <zimmerma@greux.loria.fr>
* tests/tset_str.c: added tests for 0 in mpfr_set_str_raw
* set_str_raw.c: fixed bug for +0000E0
* sqrtrem.c: incorporated changes from Kevin/Torbjorn for GMP 3.2
* sin_cos.c:
truncate the last uk (when the precision is not a power of 2)
* set_str_raw.c: _mp_allocate_func -> _gmp_allocate_func
* set_prec.c: _mp_reallocate_func -> _gmp_reallocate_func
* set_dfl_prec.c:
__gmp_default_fp_bit_precision -> __mpfr_default_fp_bit_precision
* round.c: _mp_xxx_func -> _gmp_xxx_func
* random.c: removed mpfr_srandom
* print_raw.c: _mp_xxx_func -> _gmp_xxx_func
* out_str.c: sprintf -> fprintf
_mp_free_func -> _gmp_free_func
* mpz_set_fr.c: _mp_reallocate_func -> __gmp_reallocate_func
* mpfr.texi:
added paragraph on NaN and infinities, docu on mpfr_nan_d and mpfr_inf_d
removed mpfr_srandom
some renamings
* mpfr.h: removed srandom
__gmp_default_fp_bit_precision -> __mpfr_default_fp_bit_precision
added protocols for mpfr_get_default_prec, mpfr_nan_d and mpfr_inf_d
* log.c: removed superfluous TMP_FREE(marker)
* inp_str.c, init.c, get_str.c, generic.c:
_mp_xxx_func -> _gmp_xxx_func
* dump.c, clear.c: _mp_free_func -> _gmp_free_func
* isnan.c: functions to check for NaN and infinities
* Makefile.am: added isnan.c, removed srandom.h
* TODO: added two items from Kevin
* TODO: add 2 items
* NEWS: 0.4 -> 1.0
2001-01-05 Paul Zimmermann <zimmerma@greux.loria.fr>
* tests/tlog.c: added one test for large operands
* agm.c: fixed bug in _mpfr_ceil_exp2 (underflow when exp < -1022)
2000-12-22 Paul Zimmermann <zimmerma@greux.loria.fr>
* TODO: remove what was done
* README: added mpfr-test.h
* AUTHORS: added Vincent
* NEWS, INSTALL: 1.1 -> 2001
* get_str.c: cast for _mpfr_floor_log2 was on the wrong side
* tests/tpow.c: added one test
* agm.c: simplified _mpfr_floor_log2
* pow.c: code was wrong for infinity
* log.c: only editing
* tests/tlog.c: added special() cases
* log2.c:
removed #if 0 (on Alpha with cc the enclosed code was still used
since the # was not in the first column)
* INSTALL: changes for version 1.1
* tests/texp.c: added one test (exp2 vs exp3)
* exp2.c: changed c from mp_limb_t into unsigned long in mpfr_exp2_aux2
(otherwise bugs on IRIX -n32)
* tests/tpow.c: added one test
* pow.c: fixed wrong combination of conditions for Infinity
* tests/tcmp2.c: added mpfr-test.h for MIPS
2000-12-22 Guillaume Hanrot <hanrot@greux.loria.fr>
* tests/Makefile.in: Modified macro calls
2000-12-22 Paul Zimmermann <zimmerma@greux.loria.fr>
* tests/tset_str.c:
added cast (int) to random() to avoid warning on Solaris
* tests/tset_str.c: added <string.h>
* sqrtrem.c:
tiny change at the end of main routine (suggested by Guillaume)
* tests/tcmp2.c: added one test
* tests/tadd.c: added two more tests
* sub.c:
fixed bug when c does not overlap with a, b is negative and GMP_RNDN
* mpfr-impl.h, mpfr.h:
moved prototypes for mpfr_set4 and mpfr_cmp3 to mpfr.h
* cmp.c: fixed bug in mpfr_cmp2 when d=0 and lots of bits match
* NEWS, INSTALL: updated for version 1.1
2000-12-21 Paul Zimmermann <zimmerma@greux.loria.fr>
* tests/tpow.c: test file for power functions
* tests/reuse.c: test file for in-place operations
* tests/tdiv.c, tests/tdiv_ui.c, tests/texp.c, tests/tget_str.c, tests/tlog.c, tests/tmul.c, tests/tout_str.c, tests/tsqrt.c, tests/tsqrt_ui.c, tests/tui_div.c, tests/tui_sub.c:
unsigned char (or int) -> mp_rnd_t
* tests/tagm.c: unsigned char -> mp_rnd_t
* tests/tadd.c: unsigned int -> mp_rnd_t
* print_raw.c, reldiff.c, set_d.c, sin_cos.c, sqrt.c, sqrt_ui.c, sub.c, sub_ui.c, tests/tcmp.c, tests/tcmp2.c, tests/tcmp_ui.c, tests/tdump.c, tests/teq.c, tests/tmul_ui.c, tests/trandom.c, tests/ttrunc.c, trunc.c, ui_div.c, ui_sub.c, add.c, add_ui.c, agm.c, cmp.c, cmp_ui.c, div.c, div_ui.c, exp.c, exp2.c, exp3.c, get_str.c, inp_str.c, log.c, log2.c, out_str.c, pi.c, pow.c:
k2r -> ansi style
removed #include <math.h> by defining auxiliary functions
fixed several tiny remaining bugs with NaN/Inf
* mpfr.texi: updated description of mpfr_cmp* and mpfr_sin_cos
* mpfr.h: added MPFR_SIGN
* mpfr-impl.h: added MPFR_CLEAR_NAN
MPFR_RESET_INF -> MPFR_CLEAR_INF
moved MPFR_SIGN to mpfr.h
added prototypes for log2/isqrt/cuberoot functions
* tests/Makefile.am: added reuse, tcmp2, teq, tpow, trandom, ttrunc
* tests/tui_sub.c, tests/tui_div.c: removed isnan(), ...
* tests/tsqrt_ui.c: removed gmp-impl.h, isnan(), ...
* tests/tsqrt.c: removed gmp-impl, isnan(), ...
* tests/tsin_cos.c: removed cputime stuff
* tests/tset_z.c: k&r -> ansi style
* tests/tout_str.c: removed isnan() decl.
* tests/tmul.c: MINNORM -> mpfr-test.h
* tests/tlog.c: removed isnan() decl.
* tests/tget_str.c: k&r -> ansi style
* tests/texp.c: ulp -> mpfr-test.h
* tests/tdiv_ui.c: removed isnan() declaration
* tests/tdiv.c: now use MINNORM and MAXNORM
* tests/tagm.c: max, min -> macros
* tests/tadd.c: added new tests
* mpfr-test.h: added MINNORM, MAXNORM, MIN, MAX, ABS
2000-12-20 Guillaume Hanrot <hanrot@greux.loria.fr>
* tests/texp.c, tests/tset_str.c: A few basic patches.
* rnd_mode.c: Added support for PPC/Linux
* mpfr-test.h: Patch for wrong prototype.
* tests/tout_str.c, tests/tset_q.c, tests/tset_str.c, tests/tset_z.c, tests/tsin_cos.c, tests/tsqrt.c, tests/tsqrt_ui.c, tests/tui_div.c, tests/tui_sub.c, tests/Makefile.in, tests/tadd.c, tests/tagm.c, tests/tcmp.c, tests/tdiv.c, tests/tdiv_ui.c, tests/texp.c, tests/tget_str.c, tests/tlog.c, tests/tmul.c, configure, cputime.h, mpfr-test.h, Makefile.am, Makefile.in:
Added prototypes for all test files.
2000-12-18 Vincent Lefevre <lefevre@greux.loria.fr>
* set_z.c, add_ulp.c, extract.c, mpz_set_fr.c, set_d.c, set_q.c:
Warnings suppressed on Alpha/OSF1.
2000-12-18 Paul Zimmermann <zimmerma@greux.loria.fr>
* Makefile.am: added mpfr-test.h
* aclocal.m4: back to 1.3
* mpfr-test.h: auxiliary test files
* tests/mpfr-test.h: moved to main directory
* tests/mpfr-test.h: auxiliary test functions
* tests/tmul_2exp.c, tests/tmul_ui.c, tests/tout_str.c, tests/tset_d.c, tests/tset_si.c, tests/tset_str.c, tests/tsqrt.c, tests/tsqrt_ui.c, tests/tui_div.c, tests/tui_sub.c, set_prc_raw.c, set_prec.c, set_q.c, set_si.c, set_str.c, set_str_raw.c, set_z.c, sin_cos.c, sqrt.c, sqrt_ui.c, sqrtrem.c, sub.c, sub_ui.c, swap.c, tests/Makefile.in, tests/tabs.c, tests/tadd.c, tests/tagm.c, tests/tcmp.c, tests/tdiv.c, tests/tdiv_ui.c, tests/tget_str.c, tests/tlog.c, tests/tmul.c, trunc.c, ui_div.c, ui_sub.c, urandomb.c, exp3.c, extract.c, generic.c, get_str.c, init.c, log.c, log2.c, mpfr-impl.h, mpfr.h, mpfr.texi, mpz_set_fr.c, mul.c, mul_2exp.c, mul_ui.c, neg.c, out_str.c, pi.c, pow.c, print_raw.c, random.c, random2.c, round.c, set.c, set_d.c, set_f.c, Makefile.in, aclocal.m4, add.c, add_ui.c, add_ulp.c, agm.c, clear.c, cmp.c, cmp_ui.c, configure, div.c, div_2exp.c, div_ui.c, dump.c, eq.c, exp.c, exp2.c:
changed name of mpfr struct fields: _mp_d -> _mpfr_d
(to detect conflicts with mpf)
fixed a few problems in non-STDC headers
moved definitions of mpfr-impl.h to mpfr-test.h and created a real mpfr-impl.h
2000-12-15 Paul Zimmermann <zimmerma@greux.loria.fr>
* tests/Makefile.am: removed tzeta
* mpfr.texi: explained how to enter NaN/Inf with mpfr_set_str_raw
* Makefile.am: removed zeta.c
* zeta.c: added 'to do' for NaN/Inf flags
* urandomb.c: clear NaN/Inf flags of result
* ui_sub.c: improved indentation
* ui_div.c, trunc.c: adapted to NaN/Inf
* sub_ui.c: nothing (only better indenting)
* sub.c: adapted to NaN/Inf
removed warnings
* sqrt_ui.c: adapted to NaN/Inf
* generic.c, sin_cos.c: removed warnings
* sqrt.c: clear NaN/Inf flags in normal case
* set_z.c, set_str_raw.c: adapted to NaN/Inf
* mpfr.h: added prototype for mpfr_srandom
* random.c:
now uses directly mpn_random, to avoid all problems with include files
* tests/tsin_cos.c: added 4 tests
* ui_sub.c, ui_div.c, sub_ui.c, sqrt_ui.c, sqrt.c: _mp_d -> MPFR_MANT
* set_str_raw.c, set_prec.c, round.c, print_raw.c, mpz_set_fr.c:
added error message when memory allocation fails
* log.c: _mp_d -> MPFR_MANT
* inp_str.c: added error message when memory allocation fails
* init.c: 0 -> NULL
* get_str.c: added error message when memory allocation fails
* generic.c: added error message if memory allocation fails
* exp2.c: _mp_d -> PTR
* eq.c, div.c: _mp_d -> MPFR_MANT
* agm.c: _mp_prec -> MPFR_PREC
_mp_d -> MPFR_MANT
* mpf2mpfr.h, mpfr.h: added mpfr_swap
* mpfr.h: removed MPFR_SET_IS_FP (not used)
2000-12-15 Guillaume Hanrot <hanrot@greux.loria.fr>
* mul.c, pow.c, init.c, log.c, mpfr.h: A few patches.
2000-12-15 Vincent Lefevre <lefevre@greux.loria.fr>
* mpfr.h: MPFR_CHANGE_SIGN modified to avoid a possible side effect.
2000-12-15 Paul Zimmermann <zimmerma@greux.loria.fr>
* set_f.c: warning: x is a MPF not a MPFR!
2000-12-15 Guillaume Hanrot <hanrot@greux.loria.fr>
* random.c: Modification of the order of includes in random.c
2000-12-15 Vincent Lefevre <lefevre@greux.loria.fr>
* tests/Makefile.in, Makefile.in, configure, configure.in:
Added some warning flags for GCC.
2000-12-15 Guillaume Hanrot <hanrot@greux.loria.fr>
* srandom.h: Header file for srandom()
* exp.c, exp2.c, mpfr.h, pow.c, random.c, add_ulp.c:
Patches for compiler warnings.
* mul_ui.c, pi.c, random.c, random2.c, set_d.c, set_f.c, set_q.c, set_si.c, set_str.c, set_str_raw.c, set_z.c, sub_ui.c, ui_div.c, ui_sub.c, urandomb.c, zeta.c, add_ui.c, cmp.c, cmp_ui.c, div.c, get_str.c, log2.c, mpz_set_fr.c:
Yet another patch for include files.
* set_z.c, sin_cos.c, sqrt.c, sub.c, sub_ui.c, swap.c, trunc.c, ui_div.c, ui_sub.c, urandomb.c, zeta.c, log2.c, mpz_set_fr.c, mul.c, mul_2exp.c, mul_ui.c, neg.c, out_str.c, pi.c, print_raw.c, print_rnd_mode.c, random.c, random2.c, reldiff.c, round.c, set.c, set_d.c, set_dfl_prec.c, set_f.c, set_prc_raw.c, set_prec.c, set_q.c, set_rnd.c, set_si.c, set_str.c, set_str_raw.c, add_ui.c, add_ulp.c, agm.c, clear.c, cmp.c, cmp_ui.c, div.c, div_2exp.c, div_ui.c, dump.c, eq.c, exp.c, exp2.c, exp3.c, extract.c, get_str.c, init.c, inp_str.c, log.c:
Permutation of includes to avoid warnings due to careless multiple definition
of ULONG_MAX.
2000-12-14 Vincent Lefevre <lefevre@greux.loria.fr>
* mul_ui.c, set.c, set_f.c: Bug fixed concerning the flags.
* set_str.c:
Bugs fixed (in case char is signed and accented characters are given).
* random.c: Include "urandom.h". Old code removed.
* reldiff.c, set.c, set_d.c, set_f.c, set_q.c, set_si.c:
Take into account Inf, Nans ; clear the flags of the return variable
in most function calls.
* random.c: Use urandom().
* random.c, random2.c, reldiff.c:
Take into account Inf, Nans ; clear the flags of the return variable
in most function calls.
2000-12-14 Guillaume Hanrot <hanrot@greux.loria.fr>
* random.c: Yet another random patch.
* random.c: Replaced random by rand.
2000-12-13 Paul Zimmermann <zimmerma@greux.loria.fr>
* div.c: fixed pb with mp_ptr vs mp_srcptr
2000-12-13 Guillaume Hanrot <hanrot@greux.loria.fr>
* tests/tmul_2exp.c, tests/tmul_ui.c, tests/tout_str.c, tests/tsin_cos.c, tests/tsqrt.c, tests/tsub_ui.c, tests/tui_div.c, tests/tui_sub.c, tests/Makefile.in, tests/tadd_ui.c, tests/tdiv.c, tests/tmul.c:
Take into account Inf, Nans ; clear the flags of the return variable
in most function calls. Tests updated accordingly
* pi.c, pow.c, set_d.c, sub_ui.c, ui_div.c, ui_sub.c, Makefile.in, eq.c, generic.c, inp_str.c, log.c, log2.c, mpfr.h, mul.c, mul_ui.c:
Take into account Inf, Nans ; clear the flags of the return variable
in most function calls.
2000-12-13 Paul Zimmermann <zimmerma@greux.loria.fr>
* sin_cos.c: check that we can round the cosine too
2000-12-12 Paul Zimmermann <zimmerma@greux.loria.fr>
* exp3.c: removed TIMING stuff
ensures prec_x >= 0
* exp2.c: we need m >= 2 in mpfr_exp2_aux2
* sub_ui.c: forgot TMP_MARK(marker)
* sqrt.c, sqrt_ui.c: forgot TMP_MARK(marker) or free'd in wrong order
* set_f.c, ui_div.c, ui_sub.c: forgot TMP_MARK(marker)
* mpf2mpfr.h: fixed mpf_reldiff, mpf_urandomb and mpf_t
* INSTALL: added stack-alloc.h when --disable-alloca
2000-12-11 Vincent Lefevre <lefevre@greux.loria.fr>
* out_str.c, set_d.c: out_str.c: <string.h> included
set_d.c: (0./0.) instead of sqrt(-1) for NaN (doesn't need <math.h>)
set_d.c: () added for macros Infp and Infm
2000-12-07 Paul Zimmermann <zimmerma@greux.loria.fr>
* tests/tcmp.c:
shortened string in mpfr_set_str_raw which was greater than precision
* set_d.c:
replaced isnan/isinf/math.h (not portable, for example isinf does not exist
on Sparc) by new macros from mpfr.h
* set_str_raw.c, mpfr.texi:
added an error message when the mantissa is larger than the precision
(in mpfr_set_str_raw)
* mpfr.h:
added macros to recognize doubles that are NaNs and infinities
(isinf is not portable and requires math.h)
* div.c:
in case the destination precision is less than that of the operands,
and the 1st iteration fails, increase directly the precision to the maximum
of that of the operands, otherwise divisions by 1.0 may need lots of
iterations
* add.c: added 'return' after dealing with infinities
* TODO: added wish from JC Fauge`re
2000-12-05 Paul Zimmermann <zimmerma@greux.loria.fr>
* init.c, mpfr.texi:
mpfr_init/mpfr_init2 initialize to 0 (compatibility with mpf)
* cmp.c:
fixed bug in mpfr_cmp2 when return value is k*BITS_PER_MP_LIMB-1
* tests/tcmp.c: added new test for mpfr_cmp2
* mpfr.h: now ABSSIZE uses only 29 bits
2000-12-04 Paul Zimmermann <zimmerma@greux.loria.fr>
* mpfr.texi:
added some explanations how to free the memory space allocated by mpfr_get_str
* sqrt.c:
fixed one bug found by N. Mueller (MPFR_ABSSIZE(u) was used instead of usize)
* tests/tsqrt.c: added one more test from N. Mueller
2000-12-01 Paul Zimmermann <zimmerma@greux.loria.fr>
* exp3.c, sin_cos.c: cleaned calls to mpfr_extract
* TODO: added new line
* init.c: added error message when _mp_allocate_func returns 0
* mpfr.h: added header for mpfr_extract
* extract.c: - documented what function does
- cleaned code
- added header about license...
* agm.c, exp2.c, exp3.c, get_str.c, log2.c, mpfr.h, pi.c, pow.c, sin_cos.c:
replaced log(2.0) by LOG2 [first step in getting rid of math.h]
* mpfr.h: added extern "C" { ... } for inclusion in C++
removed old KARATSUBA threshold for gmp 2.0.2
* tests/tcmp.c, TODO, cmp.c:
fixed bug in mpfr_cmp3 (when b=0, s not taken into account)
* tests/Makefile.am, Makefile.am: added swap/tswap
* tests/tswap.c: test file for new function mpfr_swap
* swap.c, mpfr.texi: added new function mpfr_swap
* tests/tround.c, tests/tset_d.c, tests/tset_f.c, tests/tset_q.c, tests/tset_si.c, tests/tset_str.c, tests/tset_z.c, tests/tsqrt.c, tests/tsqrt_ui.c, tests/tsub_ui.c, tests/ttrunc.c, tests/tui_div.c, tests/tui_sub.c, tests/tzeta.c, tests/Makefile.in, tests/tabs.c, tests/tadd.c, tests/tadd_ui.c, tests/tagm.c, tests/tcan_round.c, tests/tcmp.c, tests/tcmp2.c, tests/tcmp_ui.c, tests/tdiv.c, tests/tdiv_ui.c, tests/tdump.c, tests/teq.c, tests/texp.c, tests/tget_str.c, tests/tlog.c, tests/tlog2.c, tests/tmul.c, tests/tmul_2exp.c, tests/tmul_ui.c, tests/tout_str.c, tests/tpi.c, tests/trandom.c, set_str_raw.c, set_z.c, sqrt.c, sqrt_ui.c, sqrtrem.c, sub.c, sub_ui.c, ui_div.c, ui_sub.c, zeta.c, mpz_set_fr.c, mul.c, mul_2exp.c, mul_ui.c, neg.c, out_str.c, pi.c, pow.c, print_raw.c, print_rnd_mode.c, random.c, reldiff.c, rnd_mode.c, round.c, set.c, set_d.c, set_dfl_prec.c, set_f.c, set_prc_raw.c, set_prec.c, set_q.c, set_rnd.c, set_si.c, set_str.c, add.c, add_ui.c, add_ulp.c, agm.c, clear.c, cmp.c, cmp_ui.c, div.c, div_2exp.c, div_ui.c, exp.c, exp2.c, exp3.c, generic.c, get_str.c, init.c, log.c, log2.c, mpfi.c, mpfr-impl.h, mpfr.h:
changed copyright to Free Software Foundation
* TODO: added possible bug in mpfr_get_str
* init_set.h: now all is in mpfr.h
* sin_cos.c:
return value was wrong for input non-zero (should return 1 = inexact)
* mpfr.texi: fixed/improved doc. of mpfr_sin_cos and mpfr_urandomb
* mpfr.h: removed macro for mpfr_init_set_str_raw
* mpfr.h: added prototype for mpfr_sin_cos
* sqrt.c: sign of result was not correctly (re)set
* tests/tsqrt.c: added test to check sign of square root
2000-11-29 Paul Zimmermann <zimmerma@greux.loria.fr>
* sin_cos.c:
gained a factor of 2 in most cases (replaced initial constant factor=2
for additional bits for cos(x) by log(n))
* tests/Makefile.am: added tsin_cos
* sub.c: fixed potential problem in mpfr_sub1 (k=0 and kc<0)
* tests/tsin_cos.c: test file for sin/cos
2000-11-28 Paul Zimmermann <zimmerma@greux.loria.fr>
* sub.c:
forgot cast to int before comparison between imax (can be negative) and an
* cmp.c: returned value was one too small in case d=1
* tests/tadd.c: added new test from N. Mueller
* set_d.c: added return for case of infinities
* mpfr.h: added macro MPFR_RESET_INF
* set_d.c: don't forget to reset infinity flag if set!
* cmp.c:
fixed bug in mpfr_cmp2: wrong limb considered after cp[cn--] when
cp[cn] was not 111...111
* sub.c: fixed bug when imax>an
2000-11-27 Paul Zimmermann <zimmerma@greux.loria.fr>
* mpfr.h: added macro MPFR_IS_ZERO
2000-11-21 Guillaume Hanrot <hanrot@greux.loria.fr>
* tests/tabs.c, tests/tadd.c, tests/tadd_ui.c, tests/tagm.c, tests/tcan_round.c, tests/tcmp.c:
Infinis, premiere tentative (tests)
* round.c, set.c, set_d.c, set_str_raw.c, sin_cos.c, sqrt.c, sub.c, zeta.c, div.c, div_ui.c, dump.c, eq.c, exp.c, exp2.c, exp3.c, extract.c, generic.c, get_str.c, log.c, mpfr.h, mpz_set_fr.c, mul.c, mul_ui.c, out_str.c, pow.c, print_raw.c, reldiff.c, add.c, add_ulp.c, agm.c, cmp.c, cmp_ui.c, configure:
Infinis, premiere tentative.
2000-11-13 Paul Zimmermann <zimmerma@greux.loria.fr>
* TODO: added one remark from GH
* mpfr.texi: removed mpfr_cmp2
2000-11-13 Guillaume Hanrot <hanrot@greux.loria.fr>
* Makefile.in, aclocal.m4: Added support for Inf. Modified zeta.
2000-10-26 Paul Zimmermann <zimmerma@greux.loria.fr>
* TODO: protection of macros done
* replace_all: shell-script to replace xxx by yyy in all source files
* tests/tadd.c, tests/teq.c, tests/tmul_ui.c, tests/tset_si.c, tests/tset_str.c, tests/ttrunc.c:
protected macros: xxx -> MPFR_xxx
* trunc.c, ui_div.c, ui_sub.c, urandomb.c, zeta.c, print_raw.c, random.c, random2.c, reldiff.c, round.c, set.c, set_d.c, set_f.c, set_prc_raw.c, set_prec.c, set_q.c, set_si.c, set_str.c, set_str_raw.c, set_z.c, sin_cos.c, sqrt.c, sqrt_ui.c, sub.c, sub_ui.c, exp.c, exp2.c, exp3.c, extract.c, generic.c, get_str.c, init.c, log.c, log2.c, mpfi.c, mpfr.h, mpfr.texi, mpz_set_fr.c, mul.c, mul_2exp.c, mul_ui.c, neg.c, out_str.c, pi.c, Makefile.in, add.c, add_ui.c, add_ulp.c, agm.c, clear.c, cmp.c, cmp_ui.c, div.c, div_2exp.c, div_ui.c, eq.c:
protected all macros: xxx -> MPFR_xxx
2000-10-24 Paul Zimmermann <zimmerma@greux.loria.fr>
* mpfi.h: fichier d'include pour mpfi.c
* mpfi.c: interval arithmetic level (1st version)
* TODO: added two suggestions from Ben Hinkle
2000-10-19 Guillaume Hanrot <hanrot@greux.loria.fr>
* tests/Makefile.in: Bof.
* .pure, mmpfr, mpfr.h: Suppression de vieilleries.
* mpfr.h: 1 << 31 -> ((unsigned int)1) << 31.
* dump.c, log.c, round.c, set_d.c, set_str.c:
Correction de prototypes faux dans le cas ou on n'est pas -D__STDC__.
2000-10-02 Paul Zimmermann <zimmerma@greux.loria.fr>
* exp3.c, extract.c, generic.c, print_raw.c, set_str_raw.c:
malloc -> *_mp_allocate_func or TMP_ALLOC
* round.c, set_d.c, set_prc_raw.c, set_prec.c, urandomb.c, exp2.c, init.c, mpfr.h:
mpfr_t -> mpfr_ptr or mpfr_srcptr
2000-09-29 Paul Zimmermann <zimmerma@greux.loria.fr>
* tests/texp2.c: removed -> all is in texp.c
* tests/texp.c: added comparison between exp2 and exp3
* exp3.c:
take also the target precision into account for the guard bits
* exp2.c: new faster version with O(n^(1/3)*M(n)) algorithm
* exp.c:
adjusted exp2-exp3 threshold for new faster version of mpfr_exp2
* Makefile.am: added mpz_set_fr.c
* tests/Makefile.am: added tdump
* get_str.c: fixed pb for op=0 (added \0 at the end of string)
* dump.c: use strlen to determine memory to free
* tests/tdump.c: test file for mpfr_dump
* Makefile.am: removed karasqrt.c, added sqrtrem.c
* mpfr.h: kara_sqrtrem -> mpn_sqrtrem_new
* karasqrt.c: now replaced by new code in sqrtrem.c
* sqrt.c: now uses new code mpn_sqrtrem_new
* sqrtrem.c: new version of fast MPN square root
(should be integrated in a future release of GNU MP)
2000-09-28 Paul Zimmermann <zimmerma@greux.loria.fr>
* tests/tadd.c: added another example from N. Mueller
* sub.c: fixed another ABW bug
* sub.c: fixed two Array Bound Writes
* add.c: fixed one Array Bound Read (to_nearest, bp=cp and k>=cn)
* tests/tadd.c: added 2 new tests from Norbert Mueller
2000-09-27 Paul Zimmermann <zimmerma@greux.loria.fr>
* tests/tadd.c: added new test
* sub.c: fixed Array Bound Write
2000-09-20 Paul Zimmermann <zimmerma@greux.loria.fr>
* mpfr.texi: added some words about the inclusion of mpfr.h
* TODO: we need to better protect macros
* Makefile.am: removed MPFR_OBJECTS (does not work)
* Makefile.am: added $(MPFR_OBJECTS) in libmpfr_a_LIBADD
* Makefile.in: added $(MPFR_OBJECTS) in libmpfr_a_DEPENDENCIES
* mpfr.texi: added contributions from Emmanuel Jeandel and Thom Mulders
* AUTHORS: added Thom Mulders
* shortmul.c: routines for naive/fast short multiplication,
contributed by Thom Mulders (ETH Zu"rich)
2000-09-19 Paul Zimmermann <zimmerma@greux.loria.fr>
* tests/tdiv_ui.c: added new test for overlapping x, y
* div_ui.c: fixed problem when x=y
2000-09-14 Paul Zimmermann <zimmerma@greux.loria.fr>
* tests/tadd.c: added pb from Norbert Muller
* sub.c: fixed SEGV (mpn_lshift doesn't seem to like src_size=0)
* tests/Makefile.am:
now prints "failed" when test file doesn't return 0
2000-08-29 Paul Zimmermann <zimmerma@greux.loria.fr>
* div.c: replaced mpn_divrem by mpn_tdiv_qr for gmp 3 or later
and avoid copy of one operand when possible
* INSTALL: updated (make check, make install)
* README: described each file
* NEWS: News for version 1.0
2000-08-25 Paul Zimmermann <zimmerma@greux.loria.fr>
* get_str.c: fixed bug for 0.9999999999...
* tests/tout_str.c: added test for 0.99999999999999999
2000-08-24 Paul Zimmermann <zimmerma@greux.loria.fr>
* TODO: added mpfr_swap
* log2.c:
now store last computed value together with last rounding mode
2000-08-23 Paul Zimmermann <zimmerma@greux.loria.fr>
* mpfr.texi: target ps -> mpfr.ps
* Makefile.am: added $(srcdir) to trunc.c for sub-directory compilation
2000-08-16 Paul Zimmermann <zimmerma@greux.loria.fr>
* sin_cos.c: removed some memory leaks
* generic.c: solved memory leaks with T[i] and qtoj[i]
* TODO: updated (done autoconf, faster mpfr_exp, sin/cos)
* INSTALL: updated for version 1.0
* mpfr.texi: COPYING.LIB -> COPYING
* COPYING: renamed back (wanted for "make dist")
* COPYING.LIB: renamed back to COPYING (wanted for "make dist")
* COPYING.LIB: GNU Library General Public License
* COPYING: renamed to COPYING.LIB, according to mpfr.texi
* log2.c: result was free'd twice when good=1
* AUTHORS: put information about authors
* configure: PACKAGE and VERSION are not defined any more
* mpfr.texi: gmp-mparam.h is required too
* Makefile.am: IRIX make does not recognize $< (MISCFLAGS)
* configure.in: do not define PACKAGE and VERSION in AM_INIT_AUTOMAKE,
this avoids conflicts with GMP 3.1 config.h
[thanks to Kevin Ryde]
* mpfr.texi: updated for GMP 3.1
* set_d.c: MP_BASE_AS_DOUBLE already defined in gmp-impl.h
* exp3.c: nb_terms[0] was not initialized
* log2.c:
fixed some FNH (free not in heap) problems for binary splitting method
(prec >= 30000)
* Makefile.in: gmp.info -> mpfr.info
* Makefile.in:
set_dfl_rnd.* -> set_rnd.* (to avoid conflict with set_dfl_prec.* on DOS 8.3)
* tests/Makefile: now automatically generated by configure
* div_ui.c: added if (__GNU_MP_VERSION < 3) for mpn_divrem_1-bug patch
* Makefile.am: set_dfl_rnd -> set_rnd
* set_rnd.c:
new name of set_dfl_rnd.c (avoids clash with set_dfl_prec.c on DOS 8.3)
* set_dfl_rnd.c:
renamed to set_rnd.c (otherwise truncates like set_dfl_prec.c on
a DOS 8.3 filesystem)
* mpfr.texi: setfilename: gmp.info -> mpfr.info
* tests/Makefile.am: replaced path for libmpfr.a by $(top_builddir)
test files are now in check_PROGRAMS instead of bin_PROGRAMS (they don't need
to be installed)
* tests/tadd.c, tests/tset_si.c:
replaced back BITS_PER_MP_LIMB by mp_bits_per_limb
(not important in test files)
* mpfr.h:
replaced macros for mpfr_init_set_si by "do { ... } while (0)" so
they'll work in an if/else like
if (foo)
mpfr_init_set_si (f, -123, GMP_RNDN);
else
bar ();
[thanks to Kevin Ryde]
* tests/Makefile, tests/tadd.c, tests/tset_si.c, print_raw.c, set_si.c, sqrt.c, sub.c, add.c, cmp.c, cmp_ui.c, div_ui.c, exp2.c, mpf2mpfr.h, mul.c:
replaced mp_bits_per_limb by BITS_PER_MP_LIMB (constant)
2000-08-14 Paul Zimmermann <zimmerma@greux.loria.fr>
* Makefile.in: added mpf2mpfr.h
* tests/tadd.c: define check2 only with -DTEST
* mpfr.texi:
updated for new configure from Emmanuel Jeandel, to GMP 3.xxx
and removed errors with texinfo
* rnd_mode.c: solaris --> __sparc__
* rnd_mode.c, tests/tui_div.c, tests/tui_sub.c, tests/Makefile, tests/tabs.c, tests/tadd.c, tests/tadd_ui.c, tests/tcmp2.c, tests/tdiv.c, tests/tset_d.c, tests/tsqrt.c, tests/tsqrt_ui.c, tests/tsub_ui.c:
ifdef IRIX64 -> ifdef __mips
* Makefile.in: IRIX/make does not understand $< : expanded to trunc.c
* rnd_mode.c: use standard macro for Alpha
2000-07-13 jeandel <jeandel@greux.loria.fr>
* INSTALL: autoconf options described
* tests/Makefile.in: timestamp modified
* configure: timestamp changed
* tests/Makefile.am, Makefile.am, Makefile.in: nothing to say
* acinclude.m4, aclocal.m4: Timestamp
* tests/Makefile.in, Makefile.am, Makefile.in: Small bug fixed
* configure, configure.in: Timestamp modified ?
* tests/Makefile.in, Makefile.in: Timestamp modified
* configure, configure.in: Nothing
* tests/Makefile.am, tests/Makefile.in: New release
* tests/Makefile.am, tests/Makefile.in, Makefile.am, Makefile.in:
Bugs fixed
* tests/Makefile.in: Bug fixed
* mpfr.texi: sin_cos added
* log2.c, pi.c: New algorithm, new wrapper
2000-07-12 Paul Zimmermann <zimmerma@greux.loria.fr>
* tests/tround.c: replaced 0 by GMP_RNDN
* div.c: fixed (hopefully) bug for 1/1 in precision 32, 64, ...
* tests/tdiv.c: added test for 1/1 in precision 32 or 64
2000-07-11 Paul Zimmermann <zimmerma@greux.loria.fr>
* tests/tlog.c: use mpfr_print_rnd_mode now
2000-07-11 jeandel <jeandel@greux.loria.fr>
* INSTALL, Makefile.in, configure, configure.in:
Bug Fixed, and installation guide made
* Makefile.am, configure, configure.in: Fixed bug
* Makefile.am, Makefile.in: Bug Fixed with Solaris make
* extract.c: strings.h added
* tests/Makefile.in, Makefile.in: Deps included
* tests/Makefile.am, tests/Makefile.in: Bug Fixed
* tests/Makefile.in: Bug fixed
* tests/Makefile.am: Bug Fixed
* tests/Makefile.am, tests/Makefile.in, Makefile.am, Makefile.in, acinclude.m4, aclocal.m4, configure, configure.in, install-sh, missing, mkinstalldirs, texinfo.tex:
First Release
* COPYING.LIB: *** empty log message ***
* COPYING, ChangeLog: First Release
* AUTHORS: First release
* README: First Release
* NEWS: *** empty log message ***
* Configure: Added sin_cos
* sin_cos.c, generic.c: First Release
2000-06-29 jeandel <jeandel@greux.loria.fr>
* extract.c: Memory problems fixed
* exp3.c: Memory Leaks Fixed
2000-06-29 Paul Zimmermann <zimmerma@greux.loria.fr>
* mpfr.h: added prototype for mpfr_sub_ui
* init.c: now use mpfr macros
* sub.c: be careful not to call mpn_sub_n/mpn_sub_1 with a size 0
* clear.c: fixed to free an entire number of limbs
* tests/tsub_ui.c: test file for sub_ui
2000-06-28 jeandel <jeandel@greux.loria.fr>
* Configure: mpfr_exp3 and mpfr_extract added to Makefile
* extract.c, exp.c, exp2.c, exp3.c: First Release
2000-06-21 Paul Zimmermann <zimmerma@greux.loria.fr>
* tests/tsqrt_ui.c:
distinguish between mpfr failure and difference with sqrt()
* tests/tsqrt.c: ensures random numbers given to sqrt() are positive
* rnd_mode.c: adapted for freebsd
* mpfr-impl.h:
modified drand to avoid false NaNs (makes SEGV under FreeBSD)
* Configure: added entry for FreeBSD, removed -pedantic option
* tests/tui_sub.c: added one test
* tests/tadd.c: added new tests
* mpfr.h: added prototype for mpfr_set_prec_raw
* TODO: removed work done
* sub.c: fixed several bugs
* add.c:
merged different roundings in case diff_exp<PREC(a), dif<=PREC(c)
* tests/trandom.c: removed printf for argc=1
* tests/tui_sub.c, tests/tadd_ui.c: added one test
* Configure: make ceil.o,floor.o,trunc.o depend on trunc.c
2000-06-20 Guillaume Hanrot <hanrot@greux.loria.fr>
* tests/ttrunc.c, tests/trandom.c, tests/tout_str.c, tests/teq.c, tests/tdiv_ui.c:
Various patches for leaks, UMR and (one) BUS.
2000-06-19 Guillaume Hanrot <hanrot@greux.loria.fr>
* tests/tmul_2exp.c, tests/tset_str.c:
This patch suppresses a few mem leaks.
* tests/tcmp_ui.c, tests/tsqrt.c: Suppressed memory leaks.
* div.c, mul_ui.c, sqrt.c:
Patch for 1 << (BITS_PER_MP_LIMB - x) when x is 0 (produces inexact results
on PPCs).
2000-06-16 Paul Zimmermann <zimmerma@greux.loria.fr>
* tests/trandom.c: arguments of gmp_randinit were in wrong order
2000-06-16 Guillaume Hanrot <hanrot@greux.loria.fr>
* eq.c: Patch in the case when n_bits is a multiple of 32.
2000-06-16 Paul Zimmermann <zimmerma@greux.loria.fr>
* tests/tabs.c: added patch to get denorms on IRIX64
* tests/tadd.c:
put instruction to get denormalized numbers on IRIX64 out of #ifdef TEST
* div.c: fixed bug occurring on LinuxPPC (1 << 32)
* tests/tdiv.c: added one test (bug on LinuxPPC)
* tests/tset_str.c: added one test
* trunc.c: fixed several problems
* tests/ttrunc.c: added more tests
2000-06-16 Guillaume Hanrot <hanrot@greux.loria.fr>
* round.c:
Patches for the case where the precision is a multiple of the word size.
2000-06-16 Paul Zimmermann <zimmerma@greux.loria.fr>
* sub.c: fixed another bug
* tests/tadd.c, tests/tui_sub.c: added one test
* mpfr.h: added prototype for mpz_set_fr
* log.c: improved choice of initial precision
* Configure, mpz_set_fr.c:
added mpz_set_fr (conversion from mpfr to mpz)
* tests/tround.c: added return type 'int' for main
2000-06-15 Guillaume Hanrot <hanrot@greux.loria.fr>
* Configure: Added TESTFLAGS to the main Makefile. Added ttrunc.
* trunc.c: Minor patch (put to 0 the nonsignificant bits).
* mpfr.h: Added declaration of trunc, ceil, floor.
* tests/ttrunc.c: Tests for trunc, ceil, floor.
* Configure:
Added TESTFLAGS variable to the compile instruction, for use as
make "TESTFLAGS=-DTEST"
2000-06-15 Paul Zimmermann <zimmerma@greux.loria.fr>
* tests/teq.c: 1 -> (mp_limb_t) 1 [pb on 64-bit machines]
reduced number of tests to 1000
2000-06-15 Guillaume Hanrot <hanrot@greux.loria.fr>
* tests/trandom.c:
Display of statistics is only toggled if a number of tests to be performed
is given. Shameful hack, but is getopt really portable ?
* Configure: Added trandom, teq
* mpfr.h: Added random2, urandomb
* tests/tmul_2exp.c: Added div_2exp to the (very rough) test.
* tests/trandom.c:
Very basic statistical tests for random, random2, urandomb.
* random.c: Patch for random (libc's random() is on 31 bits only)
* tests/teq.c: Test for mpfr_eq.
* eq.c:
Patch a few incoherences of eq.c wrt the manual + adapt to mpfr usual semantics
2000-06-07 Paul Zimmermann <zimmerma@greux.loria.fr>
* cputime.h: header file providing cputime() function
* tests/texp2.c: test file comparing mpfr_exp and mpfr_exp2
* exp2.c: O(n^(1/3)*log(n)) algorithm using Brent's method
and Brent-Kung's O(sqrt(t)) algorithm to evaluate
a power series of order t [exact rounding not yet finished]
2000-05-29 Paul Zimmermann <zimmerma@greux.loria.fr>
* round.c: fixed bug in mpfr_round (wrong sign)
* round.c:
fixed bug in mpfr_round: did not check allocated space was large enough
* tests/tcmp_ui.c: main -> int main
* rnd_mode.c:
added #ifdef TEST: if not defined (default), then function
mpfr_set_machine_rnd_mode is not defined
* tests/tlog.c, tests/tmul.c, tests/tout_str.c, tests/tset_q.c, tests/tui_div.c, tests/tui_sub.c, tests/tcmp.c, tests/tdiv.c, tests/tdiv_ui.c, tests/texp.c, tests/tget_str.c, tests/tabs.c, tests/tadd_ui.c:
added #ifdef TEST to disable comparison with machine arithmetic
by default (i.e. calls to mpfr_set_machine_rnd_mode)
* sqrt.c: removed longlong.h (not needed)
* set.c: now deals with NaN
* round.c: RND_MODE -> rnd_mode
* mpfr.h: mpfr_init is now a function (no more a macro)
* init.c: printf -> fprintf
added mpfr_init as function
* mpf2mpfr.h: changed (x) -> x
fixed several typos
* div.c: removed printf
2000-05-26 Paul Zimmermann <zimmerma@greux.loria.fr>
* tests/tagm.c: added ifdef TEST
* tests/tsqrt.c: removed debug line
* tests/tui_sub.c: added one test
* tests/tadd.c: added 2 new tests
* add.c: little change
* sub.c: more changes
* tests/tsqrt.c: added ifdef TEST
* tests/tset_f.c: does not use machine rounding mode any more
* tests/tsqrt_ui.c, tests/tget_str.c: added ifdef TEST
* tests/tadd.c: added 7 new tests
* tests/tui_sub.c: fixed typo in printf format
* add.c, sub.c: fixed several rounding problems
* sub.c:
rewritten case dif<=0 and PREC(b)>PREC(a) (merged all roundings)
* tests/tadd.c: removed DEBUG, VERBOSE ifdef's
* sub.c:
fixed (hopefully) the case dif<=0, PREC(b)>PREC(a), directed rounding
* sub.c: replaced (mp_limb_t)1 by macro ONE
fixed bug for GMP_RNDN with overlap=1
* add.c: removed misplaced comment
* tests/tadd.c: added one test
* tests/tadd.c: does not use rnd_mode.c by default
* add.c: removed unused label
* add.c: fixed more tiny bugs
2000-05-25 Paul Zimmermann <zimmerma@greux.loria.fr>
* tests/tsqrt_ui.c: use mpfr_print_rnd_mode now
* tests/tui_sub.c: added one test
* tests/tadd_ui.c, tests/tadd.c: added more tests
* add_ui.c: removed TMP_ALLOC stuff
* sub.c: fixed new bug when a <- b - c with tiny c
* sub.c:
fixed bug in a <- b-c when c very small but does not overlap with a
* random2.c:
removed 'inline' (does not compile on Alpha with gcc 2.8.1)
* tests/tdiv.c, tests/tget_str.c, tests/tout_str.c:
added include file unistd.h
* tests/tcmp_ui.c: fixed warning with long arguments
* inp_str.c, set_str.c: initial version
* tests/tset_str.c: added tests for mpfr_set_str
* tests/tcmp.c: now returns 0 if all works
* pow.c: changed to return the error in ulps
* mpfr.texi: added new functions mpfr_set_str and mpfr_inp_str
* mpfr.h: added prototypes for set_str, inp_str
changed return value for mpfr*pow*
* mpf2mpfr.h: separated functions with/without rounding argument
* Configure: added tabs
* Configure: added set_str.o and inp_str.o
2000-05-24 Paul Zimmermann <zimmerma@greux.loria.fr>
* sub_ui.c: initial version
* Configure: added rule for sub_ui.o
* Configure: use only one file (trunc.c) for ceil, floor, trunc
* ceil.c, floor.c:
now use trunc.c for all 3 functions (ceil, floor, trunc)
* trunc.c: added ifdef to avoid warning at compilation
* reldiff.c: removed unused variable
* mpfr.h: fixed output type for mpfr_ui_div
* urandomb.c: removed 3rd argument (use PREC(rop) instead)
added include longlong.h
* set_prc_raw.c: stupid typo: ABSSIZE -> ABSSIZE(x)
* tests/tdiv.c: change due to new semantics of mpfr_init_set* macros
* set_prc_raw.c:
now makes an error when precision too large wrt allocated space
* mpfr.texi: added new implemented functions
* mpfr.h: - added macro for mpfr_sgn
- removed argument 'p' in mpfr_init_set* macros for compatibility with mpf
* mpf2mpfr.h: updated wrt new functions
* Configure: added sub_ui
* Configure: added new test files
* tests/tui_div.c, tests/tui_sub.c, tests/tadd_ui.c, tests/tsqrt_ui.c, tests/tset_q.c:
new test files
* tests/tadd.c: added new tests
* tests/tabs.c: improved tests
* reldiff.c, ui_sub.c, add_ui.c, sqrt_ui.c, ui_div.c:
new functions (compatibility with mpf)
* set.c: added 4th arg (was missing in non-stdc def)
* mpfr.texi: added new functions (compatibility with mpf)
* mpfr.h: added several prototypes
* add.c: fixed remaining bug (case overlap=5, dif>0)
* Configure: added add_ui, sqrt_ui, ui_div, ui_sub, reldiff
2000-05-21 Guillaume Hanrot <hanrot@greux.loria.fr>
* Configure, ceil.c, floor.c, trunc.c:
Compatibility mpf/mpfr, second part. Ceil, floor, trunc. Yet untested.
* mpf2mpfr.h: Include file for compatibility module mpf -> mpfr.
* Configure, dump.c, eq.c, random2.c, set_prc_raw.c, urandomb.c:
Compatibility with mpf. WARNING: THESE FUNCTIONS ARE UNTESTED IN THEIR PRESENT
FORM. THEY *DO* COMPILE HOWEVER.
2000-05-18 Paul Zimmermann <zimmerma@greux.loria.fr>
* tests/tzeta.c: removed unused variables
* tests/tmul_2exp.c: removed ';'
* tests/tround.c, tests/tcmp_ui.c: added return
* tests/tset_f.c:
added calls to mpf[r]_clear, and rewrote to avoid memory leaks
* tests/tget_str.c: added calls to free
* mpfr.h: corrected comment about field mp_size
2000-05-12 Paul Zimmermann <zimmerma@greux.loria.fr>
* tests/tout_str.c: added tests for negative numbers
* tests/tget_str.c: added one test
* get_str.c: fixed pb with rounding of negative numbers
2000-05-11 Paul Zimmermann <zimmerma@greux.loria.fr>
* mpfr.texi: added mpfr_abs
* tests/tabs.c: test file for mpfr_abs
* mpfr.h: added mpfr_abs (macro using mpfr_set4)
* TODO: updated wrt done/new tasks
2000-05-05 Paul Zimmermann <zimmerma@greux.loria.fr>
* tests/tsqrt.c: added two tests
* tests/tset_d.c: split mpfr_init2 into mpfr_init and mpfr_set_prec
* Configure: removed karadiv.o
* karasqrt.c:
replaced mpn_divrem_n by mpn_divrem (efficient in GMP 3.0)
* karadiv.c: not needed any more with GMP 3.0
* div.c:
removed mpn_divrem_n stuff, now that Burnikel/Ziegler algorithm is in GMP 3.0
* tests/tout_str.c, tests/tget_str.c: added one test
2000-05-04 Paul Zimmermann <zimmerma@greux.loria.fr>
* get_str.c: completely rewritten (changed semantics)
* sub.c: initialized variable bh to avoid warning at compilation
* mpfr.h: added prototype for mpfr_set_default_rounding_mode
* cmp_ui.c: fixed pb in mpfr_cmp_ui_2exp for i=0
* TODO: updated according to meeting from May 4, 2000
* INSTALL: updated for AIX
* rnd_mode.c, Configure: updated for AIX (thanks to Gerardo Ballabio)
2000-05-02 Paul Zimmermann <zimmerma@greux.loria.fr>
* tests/tcmp.c: added one test
* cmp.c: fixed bug found by G. Ballabio for b=0 and 0<c<1
* INSTALL: added info for GMP2 vs GMP3
2000-04-19 Paul Zimmermann <zimmerma@greux.loria.fr>
* Configure: added -ffloat-store for Alpha/OSF
* cmp.c: added cast to mp_limb_t (bug on Alpha in tadd with -O2)
* tests/tcmp2.c: added one test
* karasqrt.c: removed #if 0
* div_ui.c: swapped gmp-impl.h and longlong.h for GMP 3.0
2000-04-14 Paul Zimmermann <zimmerma@greux.loria.fr>
* tests/tset_si.c: added more tests
* set_si.c: fixed pb when target precision is less than integer length
* add.c: fixed problem not solved so far, i.e. when adding round bit
produces a change of exponent
2000-04-13 Paul Zimmermann <zimmerma@greux.loria.fr>
* tests/texp.c: fixed computation of ulps
* round.c: removed variable xrw in mpfr_round_raw (not used)
* mul_ui.c: replaced 1st my by my+sh in mpfr_round_raw call
* tests/tmul_ui.c: added 2 more tests
2000-04-13 Guillaume Hanrot <hanrot@greux.loria.fr>
* mul_ui.c:
Correction d'un bug quand le carry contient tous les bits significatifs.
2000-02-11 Paul Zimmermann <zimmerma@greux.loria.fr>
* tests/tzeta.c: improved indentation
mpfr_pi -> mpfr_const_pi
* tests/tset_z.c: added one test
* tests/tpi.c: mpfr_pi -> mpfr_const_pi
* tests/tmul_ui.c: use mpfr_cmp_ui instead of SIGN
* tests/tlog2.c: mpfr_log2 -> mpfr_const_log2
* tests/texp.c: mpfr_pi -> mpfr_const_pi
* Configure: added -O2 compilation flag
added set_q
* set_q.c: convert rational (mpz_q) to floating-point (mpfr_t)
* TODO: removed things which were done
* add.c, agm.c: unsigned char -> mp_rnd_t
SIGN -> MPFR_SIGN
* clear.c:
use PREC() macro instead of _mp_prec, and corrected size to free
* cmp.c, cmp_ui.c: SIGN -> MPFR_SIGN
* div.c: unsigned char -> mp_rnd_t
SIGN -> MPFR_SIGN
added non standard C header
* div_2exp.c: unsigned char -> mp_rnd_t
* div_ui.c, exp.c, get_str.c: unsigned char -> mp_rnd_t
SIGN -> MPFR_SIGN
* init.c: unsigned long int -> mp_prec_t
* log.c: unsigned char -> mp_rnd_t
SIGN -> MPFR_SIGN
* log2.c: renamed to mpfr_const_log2
unsigned char -> mp_rnd_t
* mpfr.h: unsigned char -> mp_rnd_t
SIGN -> MPFR_SIGN
unsigned long int -> mp_prec_t
* mpfr.texi: unsigned char -> mp_rnd_t
unsigned long int -> mp_prec_t
* mul.c: unsigned char -> mp_rnd_t
SIGN -> MPFR_SIGN
* mul_2exp.c: unsigned char -> mp_rnd_t
* mul_ui.c, neg.c: unsigned char -> mp_rnd_t
SIGN -> MPFR_SIGN
* out_str.c: unsigned char -> mp_rnd_t
* pi.c: renamed to mpfr_const_pi
unsigned char -> mp_rnd_t
* pow.c: unsigned char -> mp_rnd_t
added non standard C header
* print_raw.c: SIGN -> MPFR_SIGN
* print_rnd_mode.c: unsigned char -> mp_rnd_t
* random.c: added non standard C header
* rnd_mode.c: unsigned char -> mp_rnd_t
* round.c: unsigned char -> mp_rnd_t
SIGN -> MPFR_SIGN
unsigned long int -> mp_prec_t
* set.c, set_d.c: unsigned char -> mp_rnd_t
SIGN -> MPFR_SIGN
* set_dfl_prec.c: unsigned long int -> mp_prec_t
* set_dfl_rnd.c: har -> mp_rnd_t
* set_f.c: unsigned char -> mp_rnd_t
SIGN -> MPFR_SIGN
* set_prec.c: unsigned long int -> mp_prec_t
* set_si.c, set_z.c, sqrt.c, sub.c: unsigned char -> mp_rnd_t
SIGN -> MPFR_SIGN
* zeta.c: changed rounding mode to mp_rnd_t
2000-02-04 Paul Zimmermann <zimmerma@greux.loria.fr>
* tests/tmul.c:
now distinguish between true mpfr errors and possible errors from libm.a
* tests/texp.c: now use print_rnd_mode
* TODO: added suggestion from JP Merlet
* Configure: added print_rnd_mode.c
* tests/tset_f.c: added more tests
* set_f.c: fixed bug(s) found by Jean-Pierre Merlet
* mpfr.h: changed prototype of mpfr_set_f (takes now only 3 arguments)
2000-02-03 Paul Zimmermann <zimmerma@greux.loria.fr>
* Configure: added karasqrt.o
* mpfr.h: added prototype for kara_sqrtrem
added redefinition of KARATSUBA_MUL_THRESHOLD (if not defined)
removed definition of LOG_MP_BITS_PER_LIMB (was not used)
* karasqrt.c: changed return type to mp_size_t and included mpfr.h
* karadiv.c:
moved definition of KARATSUBA_MUL_THRESHOLD (if not defined) to mpfr.h
* karasqrt.c: implements Katatsuba square root
* sqrt.c: now use kara_sqrtrem instead of mpn_sqrtrem
* div_ui.c: fixed bug when high limb of quotient is zero
2000-02-02 Paul Zimmermann <zimmerma@greux.loria.fr>
* tests/tadd.c: added one test [did fail on alpha]
* sub.c: added cast to mp_limb_t in front of 1<<sh
* karadiv.c: modified to be compatible with gmp-2.0.2
* INSTALL: added further sqrt pb on alpha
* div_ui.c: swapped longlong.h and gmp-impl.h (pb on alpha)
* tests/tadd.c:
added test for bug in sub.c found by JP Merlet on Solaris
* sub.c: fixed mpn_rshift which could have 0 as shift argument
(caused bug in exp on Solaris found by JP Merlet)
* exp.c: moved debug messages to stdout
2000-02-01 Paul Zimmermann <zimmerma@greux.loria.fr>
* mpfr.h: added prototype for mpn_divrem_n (Burnikel-Ziegler algorithm)
* div.c:
use mpn_divrem_n (Burnikel-Ziegler algorithm) instead of mpn_divrem
when rsize=rrsize
* Configure: added karadiv.c (to be removed when incorporated in GMP)
* karadiv.c: Burnikel-Ziegler division
2000-01-31 Paul Zimmermann <zimmerma@greux.loria.fr>
* tests/texp.c: added further examples from V. Lefe`vre
1999-12-16 Paul Zimmermann <zimmerma@greux.loria.fr>
* Configure: added macri VERSION for target dist
* tests/tlog.c: added new tests from V. Lefe`vre
* tests/tdiv.c: improved interface: tdiv N for doing N random tests
* tests/tcmp2.c: added one test
* sub.c: DEBUG2 -> DEBUG
* log.c: added debug instructions
* cmp.c: fixed nasty bug in mpfr_cmp2 (case cc=1)
* add.c: replaced printf by fprintf for error
1999-12-10 Paul Zimmermann <zimmerma@greux.loria.fr>
* tests/tlog.c: added new tests for large input
* log.c: fixed bug for large input
* log.c: rewritten the error analysis:
- now analyzes the cancellation a posteriori
- takes into account errors from rounding and initial approximation
* tests/tlog.c: added tests from Vincent Lefe`vre
* set_str_raw.c:
no warning any more for negative exponent (thanks to V. Lefe`vre)
1999-12-08 Paul Zimmermann <zimmerma@greux.loria.fr>
* exp.c: fixed bug found by V. Lefe`vre (when n<0, we have to compute
an upper bound of log(2) instead of a lower bound)
* tests/texp.c: added new test (bug found by V. Lefe`vre)
1999-12-07 Paul Zimmermann <zimmerma@greux.loria.fr>
* TODO: added suggestion from V. Lefe`vre
* TODO: added several remarks from Vincent Lefe`vre
* mpfr.texi: corrected many typos found by Vincent Lefe`vre
1999-11-27 Paul Zimmermann <zimmerma@greux.loria.fr>
* mpfr.texi, mul.c: removed executable rights
* INSTALL: improved GMP link (thanks to Vincent Lefe`vre)
added pointer to Alpha-Linux f-p problems
* tests/tset_d.c: removed executable right on file
1999-10-20 Paul Zimmermann <zimmerma@greux.loria.fr>
* tests/tcmp2.c: put back test for x=y
* tests/tcmp2.c: modified to avoid y=-0.0
* tests/tcmp2.c: modified test procedure to return 53 when x=y
* cmp.c: mpfr_cmp2(b,c) now returns PREC(b) if b=c, even if c=0
* tests/tsqrt.c: added one test
* INSTALL: added test under Cygwin
* Configure: $make -> $MAKE
* tests/tset_z.c, tests/texp.c, tests/tlog.c, tests/tset_si.c, tests/tcmp2.c:
removed *rand48 prototypes (pb under Cygwin)
* tests/tagm.c: removed *rand48 prototypes
* tests/tadd.c: removed lrand48 prototype (pb under Cygwin)
* rnd_mode.c:
added rounding instructions for Cygnus compiler under Windows
* mpfr.h: added dummy *rand48 functions for CYGWIN
* INSTALL: added info about gmp-mparam.h
* Configure: incorporated data for CYGWIN
1999-10-15 Paul Zimmermann <zimmerma@greux.loria.fr>
* tests/tsqrt.c: added one test
* tests/tsqrt.c, tests/tdiv.c, tests/tmul.c:
added boundary cases from paper from Michael Parks
1999-10-14 Paul Zimmermann <zimmerma@greux.loria.fr>
* mul_ui.c: now set sign correctly
* tests/tmul_ui.c: added test to check sign is correctly set
* tests/texp.c: added worst case for arg. reduction
* exp.c: fixed bug when initial approx. floor(x/log(2)) is too large
1999-10-08 Paul Zimmermann <zimmerma@greux.loria.fr>
* rnd_mode.c:
now use macros for Linux case, and added ifdef for _ISOC9X_SOURCE
* Configure: changed target dist to create archive in a directory
1999-10-07 Paul Zimmermann <zimmerma@greux.loria.fr>
* Configure: added targets doc and dist
* INSTALL: added documentation and contact for problems
* INSTALL: file for installation of mpfr
* tests/tout_str.c, tests/tlog.c: added more tests
* get_str.c: now deal with 0 and fixed bug on 64-bit machine
* sqrt3.c: moved to sqrt.c
* sqrt.c: now use directly mpn_sqrtrem (previously sqrt3.c)
* mpfr.texi: updated prototypes of mpfr_div/mpfr_sqrt
* mpfr.h: removed div3 and sqrt3
* log.c: div3 -> div
* div3.c: moved to div.c
* div.c: replaced implementation using Goldschmidt's algorithm
by that using directly mpn_divrem (previously div3.c)
* agm.c: sqrt3 -> sqrt
* Configure: removed div3 and sqrt3
* COPYING.LIB: GNU Library Public License
1999-08-31 Paul Zimmermann <zimmerma@greux.loria.fr>
* set_z.c: removed printf statement
* set_z.c: added ABS for SIZ(z) when z<0
* get_str.c: removed special 'exact' stuff for n=0
* mpfr.h: fixed prototype of random
1999-07-30 Paul Zimmermann <zimmerma@greux.loria.fr>
* mpfr.texi: replaced GNU MPFR by MPFR (not yet the GNU label)
* add_ulp.c, add.c, zeta.c, sub.c, sqrt3.c, sqrt.c, set_z.c, set_str_raw.c, set_si.c, set_prec.c, set_f.c, set_dfl_rnd.c, set_dfl_prec.c, set_d.c, set.c, round.c, rnd_mode.c, random.c, print_rnd_mode.c, print_raw.c, pow.c, pi.c, out_str.c, neg.c, mul_ui.c, mul_2exp.c, mul.c, mpfr.h, mpfr-impl.h, log2.c, log.c, init_set.h, init.c, get_str.c, exp.c, div_2exp.c, div_ui.c, div3.c, div.c, cmp_ui.c, cmp.c, clear.c, agm.c, tests/tset_si.c, tests/tset_f.c, tests/tset_d.c, tests/tround.c, tests/tpi.c, tests/tmul_ui.c, tests/tout_str.c, tests/tmul_2exp.c, tests/tmul.c, tests/tlog2.c, tests/tlog.c, tests/tget_str.c, tests/texp.c, tests/tdiv_ui.c, tests/tdiv.c, tests/tcmp_ui.c, tests/tcmp2.c, tests/tcmp.c, tests/tcan_round.c, tests/tagm.c, tests/tadd.c, tests/tset_str.c, tests/tset_z.c, tests/tsqrt.c, tests/tzeta.c:
added copyright notice
1999-07-09 Paul Zimmermann <zimmerma@greux.loria.fr>
* tests/tset_z.c: added one test with prec=160
* pi.c: error term is N+1 and not N
* set_z.c: fixed bug in case sh=0
1999-07-08 Paul Zimmermann <zimmerma@greux.loria.fr>
* round.c:
completely rewritten mpfr_can_round_raw, which costs now O(1)
--- or more probably O(log n) --- instead of O(n)
1999-07-07 Paul Zimmermann <zimmerma@greux.loria.fr>
* tests/tcmp.c: changed mpfr_init2 to mpfr_set_prec
* tests/tlog.c: added one test
* sub.c: added prototype for mpfr_add1
* tests/tcan_round.c: added mpfr_clear
1999-07-07 Guillaume Hanrot <hanrot@greux.loria.fr>
* sqrt3.c: sqrt3 now returns an exact / inexact flag.
* mpfr.h: sqrt3 now returns an exact/inexact flag.
1999-07-07 Paul Zimmermann <zimmerma@greux.loria.fr>
* set_str_raw.c: fix UMR (missing 0 terminating string)
* init.c: put initialization of exponent back (avoids some UMRs)
* get_str.c: fixed array bound write bug
* tests/tsqrt.c: added one test
* tests/tout_str.c:
added several tests, and does not print on stdout when no argument
* get_str.c: fixed several bugs
1999-07-07 Guillaume Hanrot <hanrot@greux.loria.fr>
* tests/tget_str.c:
Added an example which causes an ABW in mpz_get_str.
1999-07-07 Paul Zimmermann <zimmerma@greux.loria.fr>
* tests/tout_str.c:
moved drand to mpfr-impl.h and added test in large precision
* Configure: added tout_str
1999-07-07 Guillaume Hanrot <hanrot@greux.loria.fr>
* sqrt3.c: Problem with the exponents in the destructive case.
1999-07-07 Paul Zimmermann <zimmerma@greux.loria.fr>
* div3.c: more changes from G. Hanrot
* tests/tcmp2.c: use now drand48 instead of drand
* random.c:
simply set to zero the non-significant bits, don't call mpfr_round_raw
* div3.c: upgrade from bug fixes from Guillaume Hanrot
* pi.c: stores now last computed value together with its rounding mode
* tests/tsqrt.c: checks now destructive version
1999-07-07 boldo <boldo@greux.loria.fr>
* tests/tagm.c, tests/tlog.c: changes on random
* log.c: using div3
* agm.c: using sqrt3
1999-07-06 Guillaume Hanrot <hanrot@greux.loria.fr>
* Configure: HPUX support, 2nd try.
* div3.c, sqrt3.c:
Patch for the (very seldom encountered) case of even rounding.
1999-07-06 Paul Zimmermann <zimmerma@greux.loria.fr>
* tests/tset_f.c, tests/tset_si.c, tests/tset_str.c:
added def. for random/srandom, which do not exist under HPUX
* pi.c: store now computed values
* log2.c: _mpfr_log2_* -> __mpfr_log2_*
* rnd_mode.c: merged machine rounding instructions for Sun and HP
* random.c: patch for HPUX (no random function)
* Configure: added print_rnd_mode
* mpfr.h: fixed prototype of mpfr_print_rnd_mode
* mpfr-impl.h: improved ulp to deal with case a=0.0
* tests/tlog.c: added return 0 to main
1999-07-06 Guillaume Hanrot <hanrot@greux.loria.fr>
* div3.c: Forgotten casts.
* Configure: Added sqrt3 + tentative support for Alpha linux.
* sqrt3.c:
The word added when the exponent is odd was sometimes unitialized.
* sqrt3.c: Initial version.
* mpfr.h: Added mpfr_sqrt3.
1999-07-06 Paul Zimmermann <zimmerma@greux.loria.fr>
* mpfr.texi: added several functions, and updated others
* mpfr.h: changed prototype of mpfr_log
* log.c: returns now an int instead of void
* init.c: removed initialization of exponent
* exp.c: special case for exp(0)
* tests/texp.c: added test for exp(0)
1999-07-06 Guillaume Hanrot <hanrot@greux.loria.fr>
* Configure: config.in -> ./config.in
1999-07-05 boldo <boldo@greux.loria.fr>
* agm.c: new, quick & clean
1999-07-05 Paul Zimmermann <zimmerma@greux.loria.fr>
* tests/tlog.c: added two tests and converted to double's
1999-07-05 boldo <boldo@greux.loria.fr>
* tests/tlog.c: more checking ways
1999-07-05 Paul Zimmermann <zimmerma@greux.loria.fr>
* tests/tsqrt.c:
distinguishes now between true errors and differences with libm.a
(which may fail too)
* tests/tmul.c: removed mpf stuff in check
* tests/tset_d.c: added some mpfr_clear's
* tests/tset_si.c: changed defs of random/srandom to work on Alpha
* tests/tadd.c: mpfr_init2 -> mpfr_set_prec in check64
* mpfr-impl.h: added function dbl
* mpfr.h: added prototypes for mpfr_cmp3 and mpfr_set4
* neg.c:
use mpfr_set4 now (no modification of const parameters any more)
* round.c: return 0 in mpfr_can_round_raw
* set.c: introduced auxiliary function mpfr_set4
* set_si.c:
fixed possible bug (testing sign of unsigned long) in mpfr_mul_ui
* div3.c: replaced PREC(r) by prec (which was defined but not used)
* tests/tdiv_ui.c: moved drand and ulp to mpfr-impl
* tests/tlog.c: moved ulp to mpfr-impl.h
and used input routine 'dbl' in some tests
* tests/texp.c:
modified one test to avoid rounding from double input routines
* cmp.c:
introduced auxiliary function mpfr_cmp3(x,y,sign) to compare x and sign*y
* tests/tdiv.c: moved drand and ulp to mpfr-impl.h
* sub.c:
mpfr_sub now calls directly mpfr_add1/mpfr_sub1 (no modification of
const parameters any more)
* tests/tcmp.c: moved drand to mpfr-implh.h
* add.c:
use mpfr_cmp3 instead of mpfr_cmp (avoids warning due to modification of
const parameters)
* tests/tget_str.c: moved drand to mpfr-impl.h and removed warnings
* zeta.c: use the result of mpfr_can_round
* tests/tadd.c: moved drand and ulp to mpfr-impl.h
* tests/tset_d.c: moved drand to mpfr-impl.h
* tests/tmul.c: moved drand to mpfr-impl and removed warnings
* mpfr-impl.h: added include of math.h
* tests/tsqrt.c: moved drand and ulp to mpfr-impl.h
* mpfr-impl.h: include file for mpfr developers only
* tests/tcmp2.c: long -> int in drand
* tests/tadd.c: adapted drand to sizeof(long)=64
* Configure: config.in -> ./config.in (otherwise don't work under IRIX)
* tests/tdiv_ui.c: removed warnings
* div_ui.c: patch for GMP bug when UDIV_NEEDS_NORMALIZATION=1
1999-07-02 Guillaume Hanrot <hanrot@greux.loria.fr>
* div3.c: Correction of a typo.
1999-07-02 Paul Zimmermann <zimmerma@greux.loria.fr>
* div_ui.c: fixed horrible hack yp[-1]
1999-07-02 Guillaume Hanrot <hanrot@greux.loria.fr>
* Configure:
Support of IRIX64 (n32/64 modes) plus cosmetic modifications.
1999-07-02 Paul Zimmermann <zimmerma@greux.loria.fr>
* tests/tlog.c: added one test, and adapted to ANSI C
1999-07-02 Guillaume Hanrot <hanrot@greux.loria.fr>
* Configure: Yet Another Backslash Forgotten...
* div3.c:
Bug le plus stupide de tous les temps corrige. Ca marchait sous Solaris...
1999-07-02 Paul Zimmermann <zimmerma@greux.loria.fr>
* tests/tagm.c: added one test and removed warnings
1999-07-02 Guillaume Hanrot <hanrot@greux.loria.fr>
* mpfr.h: Added mpfr_div3.
* Configure: Added div3.c
1999-07-02 Paul Zimmermann <zimmerma@greux.loria.fr>
* add.c: fixed bug when sizeof(long) <> sizeof(mp_limb_t)
and removed DEBUG2 stuff
* tests/tadd.c: added one test, and removed warnings
1999-07-02 Guillaume Hanrot <hanrot@greux.loria.fr>
* div3.c: Added div3.c, initial release.
* Configure: Patch of the patch :)
* Configure:
Pattern matching rules in tests Makefile for non-GNU make (eg Solaris)
1999-07-02 Paul Zimmermann <zimmerma@greux.loria.fr>
* tests/tdiv.c:
adapted to enable denormalized numbers on IRIX64, added one test and
removed warnings
* round.c, mpfr.h:
changed type of 3rd arg. 'neg' of mpfr_can_round_raw from char to int
(pb with signed char's on some machines, e.g. IRIX64)
* tests/tsqrt.c:
adapted to IRIX64 (enable denorm. numbers) and removed warnings
* tests/tcmp2.c:
adapted to IRIX64 (enable denormalized numbers) and removed warnings
* tests/tadd.c:
adapted to IRIX64 (no denormalized by default) and removed warnings
* set_si.c: unsigned long -> mp_limb_t
1999-07-02 boldo <boldo@greux.loria.fr>
* tests/tlog.c: unused variables
* log.c: unused variable
1999-07-02 Paul Zimmermann <zimmerma@greux.loria.fr>
* set_d.c:
added ifdef to avoid warning "unused variable" on 64-bit machine
* rnd_mode.c: added def. of swapRM to avoid warning on IRIX64
* print_raw.c, round.c: 1UL -> ((mp_limb_t) 1)
* round.c: changed type of mask to mp_limb_t in mpfr_round_raw2
* tests/tset_d.c: adapted for denormalized on IRIX64
now test NaNs too
1999-07-01 Guillaume Hanrot <hanrot@greux.loria.fr>
* cmp.c:
Due to the representation of 0 it might have happened that 0 != 0.
* sqrt.c: Patch mpfr_set -> MPN_COPY
* div.c: Patch when prec < 32.
1999-07-01 Paul Zimmermann <zimmerma@greux.loria.fr>
* set_d.c: fixed bugs for 64-bit machines
* round.c: added casts to mp_limb_t
* mul_ui.c: added cast to mp_limb_t for shifts
1999-07-01 boldo <boldo@greux.loria.fr>
* tests/tlog.c: prints nothing is everything is allright
* agm.c: memory gestion
* log.c: one single bug
* tests/tlog.c: more bad cases
1999-07-01 Paul Zimmermann <zimmerma@greux.loria.fr>
* tests/texp.c: added some certified tests
* tests/tmul_ui.c: added one test to check that 1*y = y
1999-07-01 Guillaume Hanrot <hanrot@greux.loria.fr>
* div.c:
Patch of an MLK due to multiple initialization of the same variables without
freeing them inbetween.
* div.c: Same as in sqrt (allocation problem).
1999-07-01 Paul Zimmermann <zimmerma@greux.loria.fr>
* mul_ui.c: fixed bug due to shift=0 in mpn_rshift
1999-07-01 Guillaume Hanrot <hanrot@greux.loria.fr>
* sqrt.c: (Temporary) patch for memory gestion in sqrt.c
1999-07-01 Paul Zimmermann <zimmerma@greux.loria.fr>
* sqrt.c: mpfr_init -> mpfr_init2
* sqrt.c: initialize temporary variables with current precision
1999-06-30 Guillaume Hanrot <hanrot@greux.loria.fr>
* clear.c: Unbelievably stupid bug fixed.
* round.c:
Two patches : one for an UMR which actually had no effect, one for an FNH in
old code..
1999-06-30 boldo <boldo@greux.loria.fr>
* tests/tlog.c: new bug
* tests/tagm.c: there were some conflicts
* tests/tlog.c: ther were some conflicts
* log.c, agm.c: memory gestion
1999-06-29 Paul Zimmermann <zimmerma@greux.loria.fr>
* tests/tzeta.c: replaced outputs by direct comparison when no argument
* tests/tlog.c: modified to do only certified test when no argument
* tests/tagm.c:
modified to do only tests with precomputed values when no argument
* get_str.c: does exact rounding only for n=0
1999-06-29 Jean-Luc Remy <remy@greux.loria.fr>
* Configure: added zeta/tzeta
* mpfr.h: added prototypes for mpfr_exp and mpfr_zeta
* zeta.c: computes Riemann function Zeta(s)
first version: only works for s=2 with PREC(result)=53 and rnd_mode=nearest
* tests/tzeta.c: test file for mpfr_zeta
* mpfr.h: added prototype for mpfr_set_default_prec
* zeta2.c: file renamed zeta.c
* zeta2.c:
first version: computes Zeta(2) with fixed precision 53 bits and round
to nearest
1999-06-29 Guillaume Hanrot <hanrot@greux.loria.fr>
* round.c:
Patch in the case when the number of bits is a multiple of the word size.
* mul.c: Patch in the case when the low words of the product are zero.
1999-06-28 Paul Zimmermann <zimmerma@greux.loria.fr>
* round.c: changed arguments of mpfr_round_raw (continued)
* set.c, round.c, mul_ui.c, random.c, mul.c, mpfr.texi, mpfr.h:
changed arguments of mpfr_round_raw (now uses precision instead of size)
* tests/tpi.c: modified wrt warnings at compilation
* mpfr.texi: modified description of mpfr_get_str for n_digits=0
* get_str.c: now performs an exact output when n_digits=0
1999-06-28 Guillaume Hanrot <hanrot@greux.loria.fr>
* set_si.c: Yet another corrected prototype.
1999-06-25 Guillaume Hanrot <hanrot@greux.loria.fr>
* mpfr.h, set_z.c, sqrt.c, sub.c, set_f.c, set_si.c, set_str_raw.c, round.c, set.c, set_d.c, random.c, rnd_mode.c, pow.c, print_raw.c, print_rnd_mode.c, neg.c, out_str.c, pi.c, mul.c, mul_2exp.c, mul_ui.c, get_str.c, log.c, log2.c, div_2exp.c, div_ui.c, exp.c, cmp_ui.c, div.c, add_ulp.c, agm.c, cmp.c, add.c:
Prototypes et quelques causes de warnings corriges.
* Configure: Modifs cosmetiques.
* set_str.c: Fichier vide.
1999-06-25 Paul Zimmermann <zimmerma@greux.loria.fr>
* tests/tlog2.c: do not print anything when no argument
* get_str.c, out_str.c:
use GMP allocate/free functions instead of malloc/free
* tests/tcan_round.c: do not print anything on stdout
* set_str_raw.c: put correctly sign with macro CHANGE_SIGN
1999-06-25 Guillaume Hanrot <hanrot@greux.loria.fr>
* Configure:
Ajoute la dependance de libmpfr.a pour le Makefile des tests.
1999-06-25 Paul Zimmermann <zimmerma@greux.loria.fr>
* set_d.c: correctly handle case sizer=1 in mpfr_set_d
* round.c: corrected allocated size in mpfr_round
* Configure: make clean does not remove config.in any more
1999-06-25 Guillaume Hanrot <hanrot@greux.loria.fr>
* tests/tagm.c:
Correction d'un UMR en inversant le while (sans incidence tres probablement).
1999-06-25 Paul Zimmermann <zimmerma@greux.loria.fr>
* tests/tadd.c: added four tests
* set_d.c:
adapted mpfr_set_d to case where allocated limbs > significant limbs
* sub.c: fixed bug for b=2^n and c very small
1999-06-25 Guillaume Hanrot <hanrot@greux.loria.fr>
* add.c: Some limbs of the result where not set to zero as they should.
1999-06-25 Paul Zimmermann <zimmerma@greux.loria.fr>
* tests/tset_si.c: added prototypes, and errors to stderr
* tests/tset_i: binary file -> remove it
* mul_ui.c:
use PREC(x) instead of ABSSIZE(x) to get number of significant limbs
adapted to different numbers of significant limbs for x and y
* round.c: fixed pbs with ABSSIZE(x) wrt PREC(x) in mpfr_round
* tests/tget_str.c:
added pointer to exponent, removed test with sprintf
* get_str.c: removed DEBUG stuff
* set_si.c:
use PREC(x) instead of ABSSIZE(x) to get the number of significant limbs
* tests/tset_si.c: do 10^6 tests if no argument
1999-06-25 Guillaume Hanrot <hanrot@greux.loria.fr>
* Configure: J'avais oublie -g...
* Configure: Ajoute des flags de paranoiaque schizophrene.
1999-06-25 Paul Zimmermann <zimmerma@greux.loria.fr>
* tests/texp.c: now prints nothing with no argument
* Configure: added texp and tdiv_ui
* tests/tdiv_ui.c: test file for div_ui, initial revision
* log.c: commented out "avant arrondi..."
* agm.c: clear res1/res2
1999-06-25 Guillaume Hanrot <hanrot@greux.loria.fr>
* add.c: Patches an ABR.
* sub.c: Patch of an ABR.
* pow.c: Patch in the case n = 0.
* out_str.c: Patch for a memory leak.
1999-06-25 Paul Zimmermann <zimmerma@greux.loria.fr>
* tests/tsqrt.c: added two tests for exact roots
* sqrt.c: removed DEBUG stuff and fixed pb with exact root and GMP_RNDZ
1999-06-25 Guillaume Hanrot <hanrot@greux.loria.fr>
* cmp.c: Correction d'un ABR.
1999-06-25 Paul Zimmermann <zimmerma@greux.loria.fr>
* tests/tpi.c: added test for prec=53 bits, removed output for argc==1
1999-06-25 Guillaume Hanrot <hanrot@greux.loria.fr>
* tests/tcan_round.c: Initial revision.
1999-06-24 Guillaume Hanrot <hanrot@greux.loria.fr>
* sub.c, add.c: Patched an Array Bound Read.
* round.c:
Corrected an Array Bound Read when all the bits are significative.
1999-06-24 Paul Zimmermann <zimmerma@greux.loria.fr>
* tests/tcmp_ui.c: i -> s in tests on mpfr_cmp_si
* cmp_ui.c: fixed pb in mpfr_cmp_si_2exp (case b=0 or i=0)
* cmp.c: & -> &&
* tests/tadd.c, tests/tcmp.c, tests/tset_str.c:
removed 3rd arg. of mpfr_set_prec
* add.c: treats case b=c in mpfr_sub(a,b,c)
* set_prec.c: removed 3rd argument in mpfr_set_prec
reallocates only when more limbs are needed
* exp.c, log2.c: removed 3rd arg. of mpfr_set_prec
* div.c: added some mpfr_clear's that were missing
* div.c: removed 3rd argument from mpfr_set_prec
* sqrt.c, get_str.c: removed 3rd argument of mpfr_set_prec
* mpfr.h:
changed prototype of mpfr_set_prec (no rounding mode needed any more)
* tests/tset_str.c: added test for case of missing exponent
and if one argument, print it as a double
* set_str_raw.c:
fixed bug when exponent was missing (wrong result when part before
binary point is not zero)
* tests/tlog.c: added tests from JM Muller and V Lefevre
1999-06-23 Paul Zimmermann <zimmerma@greux.loria.fr>
* round.c: corrected bad case in mpfr_can_round_raw where rnd1=GMP_RNDN
and err is a multiple of BITS_PER_MP_LIMB (was modifying an
extra limb perhaps not allocated)
1999-06-23 boldo <boldo@greux.loria.fr>
* log.c: qq bugs d'arrondis
1999-06-23 Paul Zimmermann <zimmerma@greux.loria.fr>
* Configure: added exp and div_ui
* tests/texp.c:
added test of exp(Pi*sqrt(163)/3)-640320 [texp 0.0 prec]
* tests/texp.c: test file for mpfr_exp, initial revision
* tests/tmul.c: added two tests
* tests/tset_str.c: removed printf's and added one test for leading '+'
* set_str_raw.c: now allows leading '+'
1999-06-23 boldo <boldo@greux.loria.fr>
* tests/tagm.c: nettoye
1999-06-23 Paul Zimmermann <zimmerma@greux.loria.fr>
* tests/tset_f.c: removed printf
* tests/tmul_ui.c: removed printf's
* tests/tlog.c: added tests for large precision (tlog x prec rnd)
* tests/tdiv.c: added test for exact division
* tests/tcmp2.c: mpfr_cmp -> mpfr_cmp2
* tests/tagm.c: removed printf, added exit on error
* tests/tadd.c: removed printf's
* exp.c: initial revision
* mul.c: cleaned local variables
* mpfr.h: changed prototype of mpfr_div (now returns int)
* div.c: now deals correctly with exact division
removed DEBUG stuff
returns 0/1 according to exact division
1999-06-22 Paul Zimmermann <zimmerma@greux.loria.fr>
* mul.c:
fixed bug found by F. Rouillier: x * Z(2/x) -> 0 [carry from mpfr_round_raw]
1999-06-22 Guillaume Hanrot <hanrot@greux.loria.fr>
* set_prec.c:
Fill with 0 the part added in case of a larger reallocation.
* tests/tmul.c: Rajoute le bug report de Fabrice.
1999-06-22 Paul Zimmermann <zimmerma@greux.loria.fr>
* round.c:
fixed bug in mpfr_can_round when prec or err are multiples of BITS_PER_MP_LIMB
* tests/tmul.c: added test to check sign of result
* mul.c: fixed bug: wrong sign when SIGN(a)<0 at beginning
1999-06-22 boldo <boldo@greux.loria.fr>
* tests/tlog.c: avec plein de cas d'erreurs
* log.c: marche bien
* agm.c: Marche bien
1999-06-21 Guillaume Hanrot <hanrot@greux.loria.fr>
* mpfr.h: Corrected prototype of mpfr_can_round_raw.
* round.c: Various patches.
* mpfr.h: Added prototype for mpfr_can_round_raw
* round.c: Added mpfr_can_round_raw ; mpfr_can_round just calls it.
* mpfr.h: Declaration mpfr_print_rnd_mode.c
* print_rnd_mode.c: print_rnd_mode.c -> mpfr_print_rnd_mode.c
* print_rnd_mode.c: Print the rounding mode.
* set_prec.c:
Changement de semantique (plus d'arrondi) et alloc + free -> realloc.
1999-06-21 Paul Zimmermann <zimmerma@greux.loria.fr>
* div_ui.c: initial revision
* tests/tmul_ui.c: added one test
* set.c: now deal with carry from mpfr_round_raw
* mul_ui.c: fixed problem with count_leading_zeros undefined for 0
* log2.c: store computed value and try to reuse it for next calls
* cmp.c: added test cn>= in mpfr_cmp2
* add_ulp.c: added mpfr_sub_one_ulp
1999-06-18 boldo <boldo@greux.loria.fr>
* tests/tagm.c: tests par rapport aux doubles
* tests/tlog.c: pour decouvrir les erreurs
* log.c, agm.c: version qui marche
1999-06-18 Paul Zimmermann <zimmerma@greux.loria.fr>
* mul.c: special cases NaN and 0
* mpfr.texi: fixed a few errors
1999-06-17 Paul Zimmermann <zimmerma@greux.loria.fr>
* div.c: added tests for n=0 and d=0
* tests/tdiv.c: added test for 0.0/1.0
* div.c: SET_NAN(q) -> SET_NAN(Q)
* tests/tsqrt.c: added one exact root with rounding towards zero
* tests/tout_str.c: added one test
* tests/tdiv.c: added two tests
* sqrt.c:
patch to detect exact roots (otherwise problem with rounding to zero)
* mpfr.h: changed way zero is represented : most sign. limb is zero
* set_si.c: added special case for zero
* print_raw.c: special case for zero
* out_str.c: special cases for NaN and zero
* add.c: special case when one of the arguments is zero
* tests/tsqrt.c:
added bug found by S. Boldo and fixed (pb in mpfr_round_raw2)
* round.c:
fixed bug in mpfr_round_raw2 which was returning other values than 0 or 1
1999-06-17 Guillaume Hanrot <hanrot@greux.loria.fr>
* add.c: Corrected a potential problem in add(a, a, a);
* sub.c: Corrected a potential problem in sub(a, a, a);
1999-06-17 Paul Zimmermann <zimmerma@greux.loria.fr>
* sqrt.c: SET_NAN(x) -> SET_NAN(X)
1999-06-17 Guillaume Hanrot <hanrot@greux.loria.fr>
* cmp.c:
Patch in cmp2 for some dirty cases (2^a + 2^b <-> 2^a + z, z << 2^a, b << a)
1999-06-17 Paul Zimmermann <zimmerma@greux.loria.fr>
* tests/tadd.c: added test to check bug found by JL Remy
* sub.c:
added TMP_DECL/TMP_MARK/TMP_FREE in mpfr_sub1 to deal with case
where destination=source
1999-06-16 Guillaume Hanrot <hanrot@greux.loria.fr>
* set_d.c:
Bug dans set_d(0) ; la mantisse n'est pas initialisee a 0 correctement.
* add.c, mul.c:
Gere differemment les problemes d'egalite entre destinations et arguments.
* Configure: Rajoute log.o et tlog
* tests/mon_fichier: Vire fichier inutile.
1999-06-16 Paul Zimmermann <zimmerma@greux.loria.fr>
* tests/tadd.c: added new tests
* sub.c: fixed bug for overlap=k*mp_bits_per_limb, k>=1
1999-06-16 Guillaume Hanrot <hanrot@greux.loria.fr>
* tests/Makefile: Vire Makefile de CVS.
* Makefile.msb, Makefile.exp, Makefile: Vire les Makefile de CVS.
1999-06-16 Paul Zimmermann <zimmerma@greux.loria.fr>
* tests/tsqrt.c: added one test and random init.
* tests/tdiv.c: added one test
* tests/tadd.c: added tests for cases where destination = source
* sub.c: cases NaN and destination=source
* sqrt.c: now iterates if one cannot round after 1st try,
and deals with case destination = source
* round.c: mpfr_can_round again and again
* print_raw.c: added case of NaN
* mpfr.h: added macro SET_ZERO
* div.c, add.c: now allows destination = source
1999-06-16 Guillaume Hanrot <hanrot@greux.loria.fr>
* tests/tsqrt, tests/tset_str, tests/tset_f, tests/tround, tests/tset_d, tests/tmul_ui, tests/tmul, tests/tmul_2exp, tests/tget_str:
Vire les tests de cvs.
1999-06-15 Paul Zimmermann <zimmerma@greux.loria.fr>
* div.c, add.c: printf -> fprintf
* add.c, div.c:
error message when destination equals source (case not yet treated)
* get_str.c:
now uses the given rounding mode internally instead of always GMP_RNDZ
* pi.c: now rounding to nearest should be correct
1999-06-15 Guillaume Hanrot <hanrot@greux.loria.fr>
* round.c: Encore et toujours mpfr_can_round...
* tests/tdiv, tests/tcmp_ui, tests/tcmp2, tests/tcmp, tests/tagm, tests/tadd, o.solaris/.pure:
Nettoyage.
* round.c: Patch pour mpfr_can_round.
1999-06-15 boldo <boldo@greux.loria.fr>
* agm.c: sans instructions de debuggage
* Makefile: rajout de log.o et tlog
* tests/Makefile: rajout de tlog
* mpfr.h: ajout du log
* tests/tlog.c: *** empty log message ***
* log.c: premiere version du log
1999-06-15 Paul Zimmermann <zimmerma@greux.loria.fr>
* div.c: now recognizes division by exact power of 2
* cmp_ui.c: added mpfr_cmp_[us]i_2exp
* mpfr.h: added mpfr_[us]i_2exp
* mpfr.texi: added mpfr_cmp_[us]i_2exp
1999-06-15 Guillaume Hanrot <hanrot@greux.loria.fr>
* random.c: Correction de bug (pas msb normalise).
1999-06-15 Paul Zimmermann <zimmerma@greux.loria.fr>
* pi.c: fixed mistake in error analysis (does not change code)
1999-06-15 Guillaume Hanrot <hanrot@greux.loria.fr>
* Configure: Ajout de random.o dans les objets.
* random.c: random.c : engendre un mpfr_t dans [0, 1[. GH, 15/06
TODO : un random qui engendre un mpfr_t avec exposant gaussien centre.
1999-06-15 Jean-Luc Remy <remy@greux.loria.fr>
* log2.c, pi.c: changed return value to void
1999-06-14 Guillaume Hanrot <hanrot@greux.loria.fr>
* round.c: Ajoute les modes d'arrondi RNDN et RNDD.
* mul_ui.c, mpfr.h: Correction du prototype de mpfr_mul_ui
1999-06-14 boldo <boldo@greux.loria.fr>
* mpfr.h: *** empty log message ***
1999-06-14 Paul Zimmermann <zimmerma@greux.loria.fr>
* Configure: added several files
* mpfr.h: added several prototypes
* mpfr.texi: added set_z, add_one_ulp
* set_d.c: added mpfr_get_d2 which only considers the mantissa
* get_str.c: now uses mpfr_get_d2 (no side effect on arguments)
* tests/tlog2.c: test file for mpfr_log2
* tests/tset_z.c: test file for mpfr_set_z
* tests/tpi.c: test file for mpfr_pi
* log2.c: computes log(2)
* add_ulp.c: add one ulp
* set_z.c: set a mpfr from an integer
* pi.c: computes Pi to n bits
1999-06-14 boldo <boldo@greux.loria.fr>
* agm.c: *** empty log message ***
1999-06-11 Paul Zimmermann <zimmerma@greux.loria.fr>
* mpfr.texi: Initial revision of mpfr documentation
1999-06-10 Guillaume Hanrot <hanrot@greux.loria.fr>
* tests/tsqrt.c: Patch d'un mpfr_set_d dans tsqrt.c ; GH, 100699
* tests/tget_str.c: Patch d'un mpfr_set_d dans get_str.c ; GH, 100699
* Configure:
Tentative de configuration automatique, v. initiale. GH, 100699
1999-06-10 boldo <boldo@greux.loria.fr>
* tests/tagm.c, agm.c: *** empty log message ***
1999-06-10 Paul Zimmermann <zimmerma@greux.loria.fr>
* Makefile: added tout_str
* tests/tout_str.c: Initial revision.
* Makefile: added out_str.c and pow.c
* mpfr.h: added proto for mpfr_pow_ui and mpfr_ui_pow_ui
* pow.c: Initial revision.
* clear.c, mul.c, round.c, neg.c, set_f.c, set_si.c, mul_ui.c, mul_2exp.c, div_2exp.c, set.c:
added include <stdio.h> (needed for FILE in mpfr.h)
* mpfr.h: added proto for mpfr_out_str
* out_str.c: function to print a mpfr to a stream. Initial revision.
* mpfr.h:
changed proto of mpfr_get_str: 2nd arg is mp_exp_t*, not char*
* get_str.c: now conforms to the specification
1999-06-09 Guillaume Hanrot <hanrot@greux.loria.fr>
* tests/Makefile: tset_i -> tset_si dans le Makefile de tests.
* mmpfr: Version corrigee de mmpfr.
* Makefile: Makefile qui devrait fonctionner pour tous.
* tests/tmul_2exp.c: Correction de warnings dans tmul_2exp.c
* o.solaris/.pure, tests/tmul, tests/tset_si.c: New file.
* o.solaris/.pure, tests/tmul, tests/tset_si.c:
Sources importees au 080699
* tests/mon_fichier, tests/tget_str, tests/tget_str.c: New file.
* tests/mon_fichier, tests/tget_str, tests/tget_str.c:
Sources importees au 080699
* tests/tagm, tests/tagm.c, tests/tsqrt, tests/tsqrt.c: New file.
* tests/tagm, tests/tagm.c, tests/tsqrt, tests/tsqrt.c:
Sources importees au 080699
* tests/tadd, tests/tcmp.c, tests/tcmp2.c, tests/tdiv.c, tests/tmul_2exp, tests/tmul_2exp.c, tests/tmul_ui, tests/tmul_ui.c, tests/tset_d, tests/tset_i, tests/tset_str, tests/tset_str.c:
New file.
* tests/tadd, tests/tcmp.c, tests/tcmp2.c, tests/tdiv.c, tests/tmul_2exp, tests/tmul_2exp.c, tests/tmul_ui, tests/tmul_ui.c, tests/tset_d, tests/tset_i, tests/tset_str, tests/tset_str.c:
Sources importees au 080699
* tests/tcmp2, tests/tcmp_ui, tests/tcmp_ui.c, tests/tdiv, tests/tset_d.c:
New file.
* tests/tcmp2, tests/tcmp_ui, tests/tcmp_ui.c, tests/tdiv, tests/tset_d.c:
Sources importees au 080699
* cmp_ui.c, div_2exp.c, init_set.h, mul_2exp.c, mul_ui.c, set.c, set_dfl_rnd.c, set_si.c, sub.c, tests/Makefile, tests/tadd.c, tests/tcmp, tests/tmul.c, tests/tround, tests/tround.c, tests/tset_f, tests/tset_f.c:
New file.
* cmp_ui.c, div_2exp.c, init_set.h, mul_2exp.c, mul_ui.c, set.c, set_dfl_rnd.c, set_si.c, sub.c, tests/Makefile, tests/tadd.c, tests/tcmp, tests/tmul.c, tests/tround, tests/tround.c, tests/tset_f, tests/tset_f.c:
Sources importees au 080699
* .pure, BUGS, Makefile.exp, Makefile.msb, TODO, add.c, agm.c, clear.c, cmp.c, div.c, from_Torbjorn, get_str.c, init.c, mmpfr, mpfr.h, mul.c, neg.c, print_raw.c, rnd_mode.c, round.c, set_d.c, set_dfl_prec.c, set_f.c, set_prec.c, set_str.c, set_str_raw.c, sqrt.c:
New file.
* .pure, BUGS, Makefile.exp, Makefile.msb, TODO, add.c, agm.c, clear.c, cmp.c, div.c, from_Torbjorn, get_str.c, init.c, mmpfr, mpfr.h, mul.c, neg.c, print_raw.c, rnd_mode.c, round.c, set_d.c, set_dfl_prec.c, set_f.c, set_prec.c, set_str.c, set_str_raw.c, sqrt.c:
Sources importees au 080699
|