File: README

package info (click to toggle)
intelrdfpmath 2.0u2-4
  • links: PTS, VCS
  • area: main
  • in suites: bookworm, bullseye, sid
  • size: 27,204 kB
  • sloc: ansic: 310,457; makefile: 397; sh: 3
file content (3776 lines) | stat: -rwxr-xr-x 163,669 bytes parent folder | download
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




     ==================================================================
     ======= Intel(R) Decimal Floating-Point Math Library v2.2 ========
     ==================================================================

                                                         June 8, 2018


     ******************************************************************
     *** To report issues, please send email to decimalfp@intel.com ***
     ******************************************************************

     Release History:
     ================
        Jul 2009 - Version 1.0 - implemented all the mandatory functions 
                   from the IEEE Standard 754-2008
        Jun 2011 - Version 2.0 - implemented also the functions 
                   recommended in the ISO/IEC Technical Report 24732, 
                   'Extension for the programming language C to support 
                   decimal floating-point arithmetic'
        Aug 2011 - Version 2.0 Update 1 - fixed a small issue in fma128
        Jun 2018 - Version 2.0 Update 2 - fixed issues in powd64, 
                   acos64, and acos128. Added the llround, llquantexp, 
                   and quantum functions, as well as corresponding new tests.
		   This version has been tested in Linux, Windows, OSX, and Solaris.

  1. INTRODUCTION
  ===============

  This package contains the release 2.0 Update 2(or V2.2) of the Intel(R) Decimal
Floating-Point Math Library, conforming to the IEEE Standard 754-2008 for
Floating-Point Arithmetic. This is an extension of Release 2.0 Update 1 (or V2.1) of 2011.

  The library implements the functions defined for decimal floating-point
arithmetic operations in the IEEE Standard 754-2008 for Floating-Point
Arithmetic, which is a revision of the IEEE Standard 754-1985 for Binary
Floating-Point Arithmetic.

The IEEE Standard 754-2008 for Floating-Point Arithmetic supports two
encoding formats: the decimal encoding format, and the binary encoding format.
The Intel(R) Decimal Floating-Point Math Library supports primarily the binary
encoding format for decimal floating-point values, but the decimal encoding
format is supported too in the library, by means of conversion functions
between the two encoding formats.

  Release 2.2 of the library contained in this package implements all
the operations mandated by the IEEE Standard 754-2008. Alternate exception
handling (not a mandatory feature) is not supported currently in the library,
but the design facilitates adding it in the future. It is worth noting that
several useful functions (not part of the IEEE 754-2008 definition) are
provided in LIBRARY/src/bid_round.c. They can be used to round a q-digit decimal
integer number represented in binary to q - x digits (1 <= x <= q - 1).

  For operations involving integer operands or results, the library supports
signed and unsigned 8-, 16-, 32-, and 64-bit integers.

Note: Release 2.0 added transcendental functions (supported in 128-bit, 64-bit, 
and 32-bit decimal formats), including the ones specified in the technical 
report on decimal arithmetic ISO/IEC TR 24732 (available from www.iso.org).
These functions are not correctly rounded, a fact that should be considered 
when using them (similary, binary floating-point mathematical functions 
implemented for example in C or other compiler math libraries are in general
not correctly rounded either). 


  2. PACKAGE CONTENTS
  ===================

  This package contains:

  - eula.txt, a copy of the end user license agreement that applies to
    everything in this package

  - this README FILE

  - the LIBRARY subdirectory with all the source files necessary to build the
    library, and a README file which specifies how to build the library
    in Linux**, HP-UX**, Windows***, and other operating systems; a small set
    of command files (RUNLINUX, RUNWINDOWS, etc.) can be used to build the
    library with different options

  - the TESTS subdirectory with source and input files necessary to build and
    run a reduced set of tests for the library, and a README
    file which specifies how to build and run these tests;
    the test program will print the number of errors detected;
    note that tests involving 80-bit binary floating-point values (these are
    only conversions to and from decimal floating-point formats) are skipped
    if the 80-bit floating-point data type is not supported; a small set
    of command files (RUNLINUX, RUNWINDOWS, etc.) can be used to build and
    run the tests with different options

  - the EXAMPLES subdirectory containing eight examples of calls to library
    functions with various combinations of build options (see Section 8
    below); a README file is included; a small set of command files (RUNLINUX,
    RUNWINDOWS, etc.) can be used to build and run the examples with different
    options

  3. FUNCTION NAMES
  =================

  The function names used in the library are not identical to the names from
the IEEE Standard 754-2008 for Floating-Point Arithmetic. The mapping between
the two sets is given in Section 10 below. The function names can be changed
by editing the #define statements at the beginning of bid_conf.h.


  4. LIBRARY BUILD OPTIONS
  ========================

  The API for the library functions is intended to support constant modes,
global dynamic modes, and scoped dynamic modes. It should be convenient for
compilers with various requirements, even where default modes and no flag
tests can be assumed, as in C99 FENV_ACCESS OFF.

  Three build options are provided, that can be set by editing
LIBRARY/src/bid_conf.h, or (more conveniently) can be set on the compile
command line.

  (a) Function arguments and return values can be passed by reference if
DECIMAL_CALL_BY_REFERENCE is set to 1, or by value otherwise. However, the
floating-point status flags argument is passed by reference even when
DECIMAL_CALL_BY_REFERENCE is 0, unless it is stored in a global variable
(see (c) below).

  (b) The value of the rounding mode can be passed by reference or by value,
or it can be stored in a global variable if DECIMAL_GLOBAL_ROUNDING is
set to 1.
  If DECIMAL_GLOBAL_ROUNDING is set to 1 then the rounding mode is stored
in a global variable that must be declared as

        _IDEC_round __bid_IDEC_glbround;

In this case __bid_IDEC_glbround is a fixed name that *must* be used (but
it can be changed by editing the corresponding #define in bid_conf.h).  Its
initial value should be ROUNDING_TO_NEAREST (or an equivalent value with a name
chosen by the user, as shown in code samples from EXAMPLES where
_IDEC_nearesteven is used). The _IDEC_round type name can be different
(but equivalent), chosen by the user.

  (c) The value of the exception status flags is passed by reference if
they are not represented by a global variable, or it can be stored in a
global variable if DECIMAL_GLOBAL_EXCEPTION_FLAGS is set to 1.
  If DECIMAL_GLOBAL_EXCEPTION_FLAGS is set to 1 then the exception status
flags are stored in a global variable that must be declared as

        _IDEC_flags __bid_IDEC_glbflags;

In this case __bid_IDEC_glbflags is a fixed name that *must* be used but
it can be changed by editing the corresponding #define in bid_conf.h). Its
initial value should be EXACT_STATUS (or an equivalent value with a name chosen
by the user, as shown in code samples from EXAMPLES where _IDEC_allflagsclear
is used). The _IDEC_flags type name can be different (but equivalent),
chosen by the user.

  The three build options supported in this release are selected on the
'make' command line when building the library in LIBRARY and the tests in
TESTS using the makefile-s provided here (so editing bid_conf.h is not
necessary). For example when using the Intel(R) C++ Compiler in Linux**:

    make CC=icc CALL_BY_REF=0 GLOBAL_RND=0 GLOBAL_FLAGS=0 UNCHANGED_BINARY_FLAGS=0

selects parameter passing by value; the rounding mode is a parameter
passed to each function that requires it; the status flags are passed
as a parameter to functions that may modify them (note however that the
status flags represent an exception in that the CALL_BY_REF setting
is ignored - if not global, they are always passed by reference); the
decimal operations may change the inexact binary status flag.

  Another example, when using the Intel(R) C++ Compiler in Windows*** is:

    nmake -fmakefile.mak CC=icl CALL_BY_REF=1 GLOBAL_RND=1 GLOBAL_FLAGS=1 UNCHANGED_BINARY_FLAGS=1

where parameters are passed by reference; the rounding mode is a global
variable; the status flags are stored in a global variable; the
decimal operations will not change the inexact binary status flag.


  5. FUNCTION PROTOTYPES
  ======================

  Function prototypes are provided in LIBRARY/src/bid_functions.h (starting at
line 396 if parameters are passed by reference, and at line 2994 if they
are passed by value).


  6. TESTING
  ==========

  The library was tested on several different platforms (IA-32 Architecture, 
Intel(R) 64, and IA-64 Architecture running Linux**, Windows***, HP-UX**, 
Solaris**, and OSX**).  For example in Linux** icc (Intel(R) C++ Compiler 9.1 
or newer) and gcc** were used. In Windows*** icl (Intel(R) C++ Compiler 9.1 
or newer) and cl (Microsoft*** Visual C++ Compiler) were used. For each of 
these combinations eight combinations of parameter passing method and global 
or local rounding mode and status flags were tested.

  In limited situations, it is possible for incorrect compiler behavior to 
lead to incorrect results in the Intel(r) Decimal Floating-Point Math Library. 
For example, results of round-to-integer functions are incorrect when the 
library is built using gcc 4.2/4.3. Also, some gcc versions in an IA-32 
Linux environment cause slightly incorrect results in a few corner cases for 
the 64-bit decimal square root. (This is not an exhaustive list.) Such errors
should be caught by the tests provided with the library.


  7. USAGE EXAMPLES
  =================

  Eight usage examples are given in the EXAMPLES subdirectory, which illustrate
calls to library functions with various combinations of build options (see
Section 4 above). A README file is included. Note that these examples do not
use any include files from the library: the necessary data types are defined
instead directly in the user-defined decimal.h. However, if the rounding mode
or exception status flags are stored in global variables, then these must have
the fixed names of _IDEC_glbround and _IDEC_glbflags.
  Alternatively - and this is the preferred method, one could use the data
types defined in the library by including two header files (and in this case
DECIMAL_CALL_BY_REFERENCE, DECIMAL_GLOBAL_ROUNDING, and
DECIMAL_GLOBAL_EXCEPTION_FLAGS would have to be properly defined not only when
building the library, but also for the application calling the library
functions):

        #include "../LIBRARY/src/bid_conf.h"
        #include "../LIBRARY/src/bid_functions.h"

Such an example is represented by the readtest program in TESTS/readtest.c.

  8. DECIMAL AND BINARY STATUS FLAGS
  ==================================

  The IEEE Standard 754-2008 specifies distinct rounding modes for binary
and for decimal floating-point operations. However, the floating-point status
flags may be identical for decimal and binary computations. In this
implementation of the decimal arithmetic, the decimal floating-point status
flags are kept separate from the binary flags. Still, it is possible to merge
the two sets (outside the library).
  One issue that needs to be pointed out is that the current implementation of
the decimal floating-point library may set the binary inexact status flag for
certain operations: division, square root, and several other operations where
integers are converted to floating-point values, and the conversion
is inexact. In order to avoid setting the binary inexact flag by decimal
functions, uncomment the following line in bid_conf.h
prior to building the library:
        // #define UNCHANGED_BINARY_STATUS_FLAGS

  9. MAPPING OF IEEE 754-2008 NAMES TO INTEL (R) DECIMAL FLOATING-POINT MATH
                          LIBRARY FUNCTION NAMES
  =========================================================================

Operand and result types are included, where:
        BID64 =  the 64-bit decimal floating-point format using the binary
            encoding; this becomes BID_UINT64 in the library
        BID128 =  the 128-bit decimal floating-point format using the binary
            encoding ; this becomes BID_UINT128 in the library
        binary32 = 32-bit binary floating-point data format
        binary64 = 64-bit binary floating-point data format
        binary80 = 80-bit binary floating-point data format
        binary128 = 128-bit binary floating-point data format
        string = char *
        boolean = int
        enum = int
        _IDEC_flags = int
        _IDEC_round = int

The library function names shown here can be changed by editing #define
statements in bid_conf.h.

================================================================================
IEEE 754-2008 Name                      Opd1   Opd2   Opd3   Result
                                                Intel(R) DFP Math Library Name
================================================================================
roundToIntegralTiesToEven           BID64                BID64
                                           __bid64_round_integral_nearest_even
                                    BID128               BID128
                                           __bid128_round_integral_nearest_even
roundToIntegralTiesToAway           BID64                BID64
                                           __bid64_round_integral_nearest_away
                                    BID128               BID128
                                           __bid128_round_integral_nearest_away
roundToIntegralTiesTowardZero       BID64                BID64
                                           __bid64_round_integral_zero
                                    BID128               BID128
                                           __bid128_round_integral_zero
roundToIntegralTiesTowardPositive   BID64                BID64
                                           __bid64_round_integral_positive
                                    BID128               BID128
                                           __bid128_round_integral_positive
roundToIntegralTiesTowardNegative   BID64                BID64
                                           __bid64_round_integral_negative
                                    BID128               BID128
                                           __bid128_round_integral_negative
roundToIntegralExact                BID64                BID64
                                           __bid64_round_integral_exact
                                    BID128               BID128
                                           __bid128_round_integral_exact
nextUp                              BID64                BID64
                                           __bid64_nextup
                                    BID128               BID128
                                           __bid128_nextup
nextDown                            BID64                BID64
                                           __bid64_nextdown
                                    BID128               BID128
                                           __bid128_nextdown
N/A                                 BID64  BID64         BID64
                                           __bid64_nextafter
                                    BID128 BID128        BID128
                                           __bid128_nextafter
remainder                           BID64  BID64         BID64
                                           __bid64_rem
                                    BID128 BID128        BID128
                                           __bid128_rem
minNum                              BID64  BID64         BID64
                                           __bid64_minnum
                                    BID128 BID128        BID128
                                           __bid128_minnum
maxNum                              BID64  BID64         BID64
                                           __bid64_maxnum
                                    BID128 BID128        BID128
                                           __bid128_maxnum
minNumMag                           BID64  BID64         BID64
                                           __bid64_minnum_mag
                                    BID128 BID128        BID128
                                           __bid128_minnum_mag
maxNumMag                           BID64  BID64         BID64
                                           __bid64_maxnum_mag
                                    BID128 BID128        BID128
                                           __bid128_maxnum_mag
quantize                            BID64  BID64         BID64
                                           __bid64_quantize
                                    BID128 BID128        BID128
                                           __bid128_quantize
logB                                BID64                BID64
                                           __bid64_ilogb
                                    BID128               BID128
                                           __bid128_ilogb
scaleB                              BID64  BID64         BID64
                                           __bid64_scalbn
                                    BID128 BID128        BID128
                                           __bid128_scalbn
addition                            BID64  BID64         BID64
                                           __bid64_add
                                    BID128 BID128        BID128
                                           __bid128_add
subtraction                         BID64  BID64         BID64
                                           __bid64_sub
                                    BID128 BID128        BID128
                                           __bid128_sub
multiplication                      BID64  BID64         BID64
                                           __bid64_mul
                                    BID128 BID128        BID128
                                           __bid128_mul
division                            BID64  BID64         BID64
                                           __bid64_div
                                    BID128 BID128        BID128
                                           __bid128_div
squareRoot                          BID64                BID64
                                           __bid64_sqrt
                                    BID128               BID128
                                           __bid128_sqrt
fusedMultiplyAdd                    BID64  BID64  BID64  BID64
                                           __bid64_fma
                                    BID128 BID128 BID128 BID128
                                           __bid128_fma
convertFromInt                      int32                BID64
                                           __bid64_from_int32
                                    uint32               BID64
                                           __bid64_from_uint32
                                    int64                BID64
                                           __bid64_from_int64
                                    uint64               BID64
                                           __bid64_from_uint64
                                    int32                BID128
                                           __bid128_from_int32
                                    uint32               BID128
                                           __bid128_from_uint32
                                    int64                BID128
                                           __bid128_from_int64
                                    uint64               BID128
                                           __bid128_from_uint64
convertToIntegerTiesToEven          BID64                int32
                                           __bid64_to_int32_rnint
                                    BID64                uint32
                                           __bid64_to_uint32_rnint
                                    BID64                int64
                                           __bid64_to_int64_rnint
                                    BID64                uint64
                                           __bid64_to_uint64_rnint
                                    BID128               int32
                                           __bid128_to_int32_rnint
                                    BID128               uint32
                                           __bid128_to_uint32_rnint
                                    BID128               int64
                                           __bid128_to_int64_rnint
                                    BID128               uint64
                                           __bid128_to_uint64_rnint
convertToIntegerTowardZero          BID64                int32
                                           __bid64_to_int32_int
                                    BID64                uint32
                                           __bid64_to_uint32_int
                                    BID64                int64
                                           __bid64_to_int64_int
                                    BID64                uint64
                                           __bid64_to_uint64_int
                                    BID128               int32
                                           __bid128_to_int32_int
                                    BID128               uint32
                                           __bid128_to_uint32_int
                                    BID128               int64
                                           __bid128_to_int64_int
                                    BID128               uint64
                                           __bid128_to_uint64_int
convertToIntegerTowardPositive      BID64                int32
                                           __bid64_to_int32_ceil
                                    BID64                uint32
                                           __bid64_to_uint32_ceil
                                    BID64                int64
                                           __bid64_to_int64_ceil
                                    BID64                uint64
                                           __bid64_to_uint64_ceil
                                    BID128               int32
                                           __bid128_to_int32_ceil
                                    BID128               uint32
                                           __bid128_to_uint32_ceil
                                    BID128               int64
                                           __bid128_to_int64_ceil
                                    BID128               uint64
                                           __bid128_to_uint64_ceil
convertToIntegerTowardNegative      BID64                int32
                                           __bid64_to_int32_floor
                                    BID64                int32
                                           __bid64_to_uint32_floor
                                    BID64                int64
                                           __bid64_to_int64_floor
                                    BID64                uint64
                                           __bid64_to_uint64_floor
                                    BID128               int32
                                           __bid128_to_int32_floor
                                    BID128               uint32
                                           __bid128_to_uint32_floor
                                    BID128               int64
                                           __bid128_to_int64_floor
                                    BID128               uint64
                                           __bid128_to_uint64_floor
convertToIntegerTiesToAway          BID64                int32
                                           __bid64_to_int32_rninta
                                    BID64                uint32
                                           __bid64_to_uint32_rninta
                                    BID64                int64
                                           __bid64_to_int64_rninta
                                    BID64                uint64
                                           __bid64_to_uint64_rninta
                                    BID128               int32
                                           __bid128_to_int32_rninta
                                    BID128               uint32
                                           __bid128_to_uint32_rninta
                                    BID128               int64
                                           __bid128_to_int64_rninta
                                    BID128               uint64
                                           __bid128_to_uint64_rninta
convertToIntegerExactTiesToEven     BID64                int32
                                           __bid64_to_int32_xrnint
                                    BID64                uint32
                                           __bid64_to_uint32_xrnint
                                    BID64                int64
                                           __bid64_to_int64_xrnint
                                    BID64                uint64
                                           __bid64_to_uint64_xrnint
                                    BID128               int32
                                           __bid128_to_int32_xrnint
                                    BID128               uint32
                                           __bid128_to_uint32_xrnint
                                    BID128               int64
                                           __bid128_to_int64_xrnint
                                    BID128               uint64
                                           __bid128_to_uint64_xrnint
convertToIntegerExactTowardZero     BID64                int32
                                           __bid64_to_int32_xint
                                    BID64                uint32
                                           __bid64_to_uint32_xint
                                    BID64                int64
                                           __bid64_to_int64_xint
                                    BID64                uint64
                                           __bid64_to_uint64_xint
                                    BID128               int32
                                           __bid128_to_int32_xint
                                    BID128               uint32
                                           __bid128_to_uint32_xint
                                    BID128               int64
                                           __bid128_to_int64_xint
                                    BID128               uint64
                                           __bid128_to_uint64_xint
convertToIntegerExactTowardPositive BID64                int32
                                           __bid64_to_int32_xceil
                                    BID64                uint32
                                           __bid64_to_uint32_xceil
                                    BID64                int64
                                           __bid64_to_int64_xceil
                                    BID64                uint64
                                           __bid64_to_uint64_xceil
                                    BID128               int32
                                           __bid128_to_int32_xceil
                                    BID128               uint32
                                           __bid128_to_uint32_xceil
                                    BID128               int64
                                           __bid128_to_int64_xceil
                                    BID128               uint64
                                           __bid128_to_uint64_xceil
convertToIntegerExactTowardNegative BID64                int32
                                           __bid64_to_int32_xfloor
                                    BID64                uint32
                                           __bid64_to_uint32_xfloor
                                    BID64                int64
                                           __bid64_to_int64_xfloor
                                    BID64                uint64
                                           __bid64_to_uint64_xfloor
                                    BID128               int32
                                           __bid128_to_int32_xfloor
                                    BID128               uint32
                                           __bid128_to_uint32_xfloor
                                    BID128               int64
                                           __bid128_to_int64_xfloor
                                    BID128               uint64
                                           __bid128_to_uint64_xfloor
convertToIntegerExactTiesToAway     BID64                int32
                                           __bid64_to_int32_xrninta
                                    BID64                uint32
                                           __bid64_to_uint32_xrninta
                                    BID64                int64
                                           __bid64_to_int64_rninta
                                    BID64                uint64
                                           __bid64_to_uint64_xrninta
                                    BID128               int32
                                           __bid128_to_int32_xrninta
                                    BID128               uint32
                                           __bid128_to_uint32_xrninta
                                    BID128               int64
                                           __bid128_to_int64_xrninta
                                    BID128               uint64
                                           __bid128_to_uint64_xrninta
convert                             BID32                BID64
                                           __bid32_to_bid64
                                    BID32                BID128
                                           __bid32_to_bid128
                                    BID32                bin32
                                           __bid32_to_binary32
                                    BID32                bin64
                                           __bid32_to_binary64
                                    BID32                bin80
                                           __bid32_to_binary80
                                    BID32                bin128
                                           __bid32_to_binary128
                                    BID64                BID32
                                           __bid64_to_bid32
                                    BID64                BID128
                                           __bid64_to_bid128
                                    BID64                bin32
                                           __bid64_to_binary32
                                    BID64                bin64
                                           __bid64_to_binary64
                                    BID64                bin80
                                           __bid64_to_binary80
                                    BID64                bin128
                                           __bid64_to_binary128
                                    BID128               BID32
                                           __bid128_to_bid32
                                    BID128               BID64
                                           __bid128_to_bid64
                                    BID128               bin32
                                           __bid128_to_binary32
                                    BID128               bin64
                                           __bid128_to_binary64
                                    BID128               bin80
                                           __bid128_to_binary80
                                    BID128               bin128
                                           __bid128_to_binary128
                                    bin32                BID32
                                           __binary32_to_bid32
                                    bin32                BID64
                                           __binary32_to_bid64
                                    bin32                BID128
                                           __binary32_to_bid128
                                    bin64                BID32
                                           __binary64_to_bid32
                                    bin64                BID64
                                           __binary64_to_bid64
                                    bin64                BID128
                                           __binary64_to_bid128
                                    bin80                BID32
                                           __binary80_to_bid32
                                    bin80                BID64
                                           __binary80_to_bid64
                                    bin80                BID128
                                           __binary80_to_bid128
                                    bin128               BID32
                                           __binary128_to_bid32
                                    bin128               BID64
                                           __binary128_to_bid64
                                    bin128               BID128
                                           __binary128_to_bid128
convertFromDecimalCharacter         string               BID64
                                           __bid64_from_string
                                    string               BID128
                                           __bid128_from_string
convertToDecimalCharacter           BID64                string
                                           __bid64_to_string
                                    BID128               string
                                           __bid128_to_string
copy                                BID64                BID64
                                           __bid64_copy
                                    BID128               BID128
                                           __bid128_copy
negate                              BID64                BID64
                                           __bid64_negate
                                    BID128               BID128
                                           __bid128_negate
abs                                 BID64                BID64
                                           __bid64_abs
                                    BID128               BID128
                                           __bid128_abs
copySign                            BID64  BID64         BID64
                                           __bid64_copySign
                                    BID128 BID128        BID128
                                           __bid128_copySign
encodeDecimal                       BID32                DPD32
                                           __bid_to_dpd32
                                    BID64                DPD64
                                           __bid_to_dpd64
                                    BID128               DPD128
                                           __bid_to_dpd128
decodeDecimal                       DPD32                BID32
                                           __bid_dpd_to_bid32
                                    DPD64                BID64
                                           __bid_dpd_to_bid64
                                    DPD128               BID128
                                           __bid_dpd_to_bid128
compareQuietEqual                   BID64  BID64         boolean
                                           __bid64_quiet_equal
                                    BID128 BID128        boolean
                                           __bid128_quiet_equal
compareQuietGreater                 BID64  BID64         boolean
                                           __bid64_quiet_greater
                                    BID128 BID128        boolean
                                           __bid128_quiet_greater
compareQuietGreaterEqual            BID64  BID64         boolean
                                           __bid64_quiet_greater_equal
                                    BID128 BID128        boolean
                                           __bid128_quiet_greater_equal
compareQuietGreaterUnordered        BID64  BID64         boolean
                                           __bid64_quiet_greater_unordered
                                    BID128 BID128        boolean
                                           __bid128_quiet_greater_unordered
compareQuietLess                    BID64  BID64         boolean
                                           __bid64_quiet_less
                                    BID128 BID128        boolean
                                           __bid128_quiet_less
compareQuietLessEqual               BID64  BID64         boolean
                                           __bid64_quiet_less_equal
                                    BID128 BID128        boolean
                                           __bid128_quiet_less_equal
compareQuietLessUnordered           BID64  BID64         boolean
                                           __bid64_quiet_less_unordered
                                    BID128 BID128        boolean
                                           __bid128_quiet_less_unordered
compareQuietNotEqual                BID64  BID64         boolean
                                           __bid64_quiet_not_equal
                                    BID128 BID128        boolean
                                           __bid128_quiet_not_equal
compareQuietNotGreater              BID64  BID64         boolean
                                           __bid64_quiet_not_greater
                                    BID128 BID128        boolean
                                           __bid128_quiet_not_greater
compareQuietNotLess                 BID64  BID64         boolean
                                           __bid64_quiet_not_less
                                    BID128 BID128        boolean
                                           __bid128_quiet_not_less
compareQuietOrdered                 BID64  BID64         boolean
                                           __bid64_quiet_ordered
                                    BID128 BID128        boolean
                                           __bid128_quiet_ordered
compareQuietUnordered               BID64  BID64         boolean
                                           __bid64_quiet_unordered
                                    BID128 BID128        boolean
                                           __bid128_quiet_unordered
compareSignalingEqual               BID64  BID64         boolean
                                           __bid64_signaling_equal (not currently implemented)
                                    BID128 BID128        boolean
                                           __bid128_signaling_equal (not currently implemented)
compareSignalingGreater             BID64  BID64         boolean
                                           __bid64_signaling_greater
                                    BID128 BID128        boolean
                                           __bid128_signaling_greater
compareSignalingGreaterEqual        BID64  BID64         boolean
                                           __bid64_signaling_greater_equal
                                    BID128 BID128        boolean
                                           __bid128_signaling_greater_equal
compareSignalingGreaterUnordered    BID64  BID64         boolean
                                           __bid64_signaling_greater_unordered
                                    BID128 BID128        boolean
                                           __bid128_signaling_greater_unordered
compareSignalingLess                BID64  BID64         boolean
                                           __bid64_signaling_less
                                    BID128 BID128        boolean
                                           __bid128_signaling_less
compareSignalingLessEqual           BID64  BID64         boolean
                                           __bid64_signaling_less_equal
                                    BID128 BID128        boolean
                                           __bid128_signaling_less_equal
compareSignalingLessUnordered       BID64  BID64         boolean
                                           __bid64_signaling_less_unordered
                                    BID128 BID128        boolean
                                           __bid128_signaling_less_unordered
compareSignalingNotEqual            BID64  BID64         boolean
                                           __bid64_signaling_not_equal (not currently implemented)
                                    BID128 BID128        boolean
                                           __bid128_signaling_not_equal (not currently implemented)
compareSignalingNotGreater          BID64  BID64         boolean
                                           __bid64_signaling_not_greater
                                    BID128 BID128        boolean
                                           __bid128_signaling_not_greater
compareSignalingNotLess             BID64  BID64         boolean
                                           __bid64_signaling_not_less
                                    BID128 BID128        boolean
                                           __bid128_signaling_not_less
N/A                                 IDEC_flags *IDEC_flags
                                           __bid_signalException
is754version1985                                         int
                                           __bid_is754
is754version2008                                         int
                                           __bid_is754R
isSignMinus                         BID64                boolean
                                           __bid64_isSigned
                                    BID128               boolean
                                           __bid128_isSigned
isNormal                            BID64                boolean
                                           __bid64_isNormal
                                    BID128               boolean
                                           __bid128_isNormal
isFinite                            BID64                boolean
                                           __bid64_isFinite
                                    BID128               boolean
                                           __bid128_isFinite
isZero                              BID64                boolean
                                           __bid64_isZero
                                    BID128               boolean
                                           __bid128_isZero
isSubnormal                         BID64                boolean
                                           __bid64_isSubnormal
                                    BID128               boolean
                                           __bid128_isSubnormal
isInfinite                          BID64                boolean
                                           __bid64_isInf
                                    BID128               boolean
                                           __bid128_isInf
isNaN                               BID64                boolean
                                           __bid64_isNaN
                                    BID128               boolean
                                           __bid128_isNaN
isSignaling                         BID64                boolean
                                           __bid64_isSignaling
                                    BID128               boolean
                                           __bid128_isSignaling
isCanonical                         BID64                boolean
                                           __bid64_isCanonical
                                    BID128               boolean
                                           __bid128_isCanonical
radix                               BID64                boolean
                                           __bid64_radix
                                    BID128               boolean
                                           __bid128_radix
class                               BID64                enum
                                           __bid64_class
                                    BID128               enum
                                           __bid128_class
totalOrder                          BID64  BID64         boolean
                                           __bid64_totalOrder
                                    BID128 BID128        boolean
                                           __bid128_totalOrder
totalOrderMag                       BID64  BID64         boolean
                                           __bid64_totalOrderMag
                                    BID128 BID128        boolean
                                           __bid128_totalOrderMag
sameQuantum                         BID64  BID64         boolean
                                           __bid64_sameQuantum
                                    BID128 BID128        boolean
                                           __bid128_sameQuantum
lowerFlags                          _IDEC_flags
                                           __bid_lowerFlags
testFlags                           _IDEC_flags          boolean
                                           __bid_testFlags
testSavedFlags                      _IDEC_flags _IDEC_flags boolean
                                           __bid_testSavedFlags
restoreFlags                        _IDEC_flags _IDEC_flags
                                           __bid_restoreFlags
saveAllFlags                        _IDEC_flags         IDEC_flags
                                           __bid_saveFlags
getDecimalRoundingDirection                             _IDEC_round
                                           __bid_getDecimalRoundingDirection
setDecimalRoundingDirection         _IDEC_round
                                           __bid_setDecimalRoundingDirection


  10. DESCRIPTION OF THE INTEL(R) DECIMAL FP MATH LIBRARY FUNCTIONS

This section gives brief descriptions of the functions available in the
Intel(R) Decimal Floating-Point Math Library v2.2. The prototypes are
shown assuming all arguments are passed by value; the rounding mode variable is
passed as an argument to each function that requires it; a pointer to a
variable containing the status flags is passed to each function that requires
it; alternate exception handling is not supported. The function prototypes
for other variants allowed for building the library can be determined from
header files bid_functions.h and bid_conf.h, which contain also all the type
definitions used in the following description, as well as the possible values of
the rounding mode variable rnd_mode and the positions of the individual status
flags in the status word *pfpsf.

Notes:
 1. Three decimal floating-point formats are supported, as defined in
    IEEE Standard 754-2008: 32-bit, 64-bit, and 128-bit.
    The data types used in the library for entities in the three formats are
    UINT32, UINT64, and UINT128 which can be mapped externally to types of
    appropriate sizes and alignments but having different names, for example
    _Decimal32, _Decimal64, and _Decimal128.
    The maximum number of decimal digits in the significand of numerical
    values represented in these three formats are:
      P = 7 decimal digits for the 32-bit decimal floating-point format
      P = 16 decimal digits for the 64-bit decimal floating-point format
      P = 34 decimal digits for the 128-bit decimal floating-point format
    The ranges for normal decimal floating-point numbers are (in magnitude):
      1.000000 * 10^(-95) <= x <= 9.999999 * 10^96 for 32-bit format
      1.0...0 * 10^(-383) <= x <= 9.9...9 * 10^384 for 64-bit format
            (15 decimal digits in the fractional part of the significand)
      1.0...0 * 10^(-6143) <= x <= 9.9...9 * 10^6144 for 128-bit format
            (33 decimal digits in the fractional part of the significand)
    The ranges for subnormal decimal floating-point numbers are (in magnitude):
      0.000001 * 10^(-95) <= x <= 0.999999 * 10^(-95) for 32-bit format
      0.0...01 * 10^(-383) <= x <= 0.9...9 * 10^(-383) for 64-bit format
            (15 decimal digits in the fractional part of the significand)
      0.0...01 * 10^(-6144) <= x <= 0.9...9 * 10^(-6144) for 128-bit format
            (33 decimal digits in the fractional part of the significand)
    Operations with decimal floating-point results usually choose one
    representation of the result from among several possible that have the
    same numerical value (constituting a 'cohort'). The chosen representation
    must have the 'preferred exponent' specified in the IEEE Standard 754-2008.
    (For example 1.0 * 10^(-2) + 10.0 * 10^(-3) = 20.0 * 10^(-3), and not
    2.0 * 10^(-2).)
    The encoding methods for decimal floating-point values are not explained
    here. Decimal floating-point values can be encoded using the
    string-to-decimal conversion functions (__bid64_from_string and
    __bid128_from_string), or decoded using the decimal-to-string conversion
    functions (__bid64_to_string and __bid128_to_string).
 2. The acronym 'dpd' or 'DPD' is used to identify the decimal encoding method
    for decimal floating-point values, defined in the IEEE Standard 754-2008.
    The acronym 'bid' or 'BID' is used to identify the binary encoding method
    for decimal floating-point values, defined in the IEEE Standard 754-2008.
 3. The library functions that operate on decimal floating-point values do so on
    values encoded in BID format.
 4. The floating-point status flags for inexact result, underflow, overflow,
    division by zero and invalid operation are denoted by P, U, O, Z, I
    respectively

Note that the function names can be changed by editing #define statements in
bid_conf.h.

===============================================================================
FUNCTION: Convert a 32-bit decimal floating-point value encoded in BID format to
  the same value encoded in DPD format
PROTOTYPE:
  UINT32 __bid_to_dpd32 (
    UINT32 px);
FLOATING-POINT EXCEPTIONS: none

FUNCTION: Convert a 64-bit decimal floating-point value encoded in BID format to
  the same value encoded in DPD format
PROTOTYPE:
  UINT64 __bid_to_dpd64 (
    UINT64 px);
FLOATING-POINT EXCEPTIONS: none

FUNCTION: Convert a 128-bit decimal floating-point value encoded in BID format
  to the  same value encoded in DPD format
PROTOTYPE:
  UINT128 __bid_to_dpd128 (
    UINT128 px);
FLOATING-POINT EXCEPTIONS: none

FUNCTION: Convert a 32-bit decimal floating-point value encoded in DPD format
  to the  same value encoded in BID format
PROTOTYPE:
  UINT32 __bid_dpd_to_bid32 (
    UINT32 px);
FLOATING-POINT EXCEPTIONS: none

FUNCTION: Convert a 64-bit decimal floating-point value encoded in DPD format
  to the same value encoded in BID format
PROTOTYPE:
  UINT64 __bid_dpd_to_bid64 (
    UINT64 px);
FLOATING-POINT EXCEPTIONS: none

FUNCTION: Convert a 128-bit decimal floating-point value encoded in DPD format
  to the same value encoded in BID format
PROTOTYPE:
  UINT128 __bid_dpd_to_bid128 (
    UINT128 px);
FLOATING-POINT EXCEPTIONS: none

FUNCTION: Decimal floating-point addition, UINT64 + UINT64 -> UINT128
PROTOTYPE:
  UINT128 __bid128dd_add (
    UINT64 x, UINT64 y, _IDEC_round rnd_mode, _IDEC_flags *pfpsf);
FLOATING-POINT EXCEPTIONS: P, U, O, I

FUNCTION: Decimal floating-point addition, UINT64 + UINT128 -> UINT128
PROTOTYPE:
  UINT128 __bid128dq_add (
    UINT64 x, UINT128 y, _IDEC_round rnd_mode, _IDEC_flags *pfpsf);
FLOATING-POINT EXCEPTIONS: P, U, O, I

FUNCTION: Decimal floating-point addition, UINT128 + UINT64 -> UINT128
PROTOTYPE:
  UINT128 __bid128qd_add (
    UINT128 x, UINT64 y, _IDEC_round rnd_mode, _IDEC_flags *pfpsf);
FLOATING-POINT EXCEPTIONS: P, U, O, I

FUNCTION: Decimal floating-point addition, UINT128 + UINT128 -> UINT128
PROTOTYPE:
  UINT128 __bid128_add (
    UINT128 x, UINT128 y, _IDEC_round rnd_mode, _IDEC_flags *pfpsf);
FLOATING-POINT EXCEPTIONS: P, U, O, I

FUNCTION: Decimal floating-point subtraction, UINT64 - UINT64 -> UINT128
PROTOTYPE:
  UINT128 __bid128dd_sub (
    UINT64 x, UINT64 y, _IDEC_round rnd_mode, _IDEC_flags *pfpsf);
FLOATING-POINT EXCEPTIONS: P, U, O, I

FUNCTION: Decimal floating-point subtraction, UINT64 - UINT128 -> UINT128
PROTOTYPE:
  UINT128 __bid128dq_sub (
    UINT64 x, UINT128 y, _IDEC_round rnd_mode, _IDEC_flags *pfpsf);
FLOATING-POINT EXCEPTIONS: P, U, O, I

FUNCTION: Decimal floating-point subtraction, UINT128 - UINT64 -> UINT128
PROTOTYPE:
  UINT128 __bid128qd_sub (
    UINT128 x, UINT64 y, _IDEC_round rnd_mode, _IDEC_flags *pfpsf);
FLOATING-POINT EXCEPTIONS: P, U, O, I

FUNCTION: Decimal floating-point subtraction, UINT128 - UINT128 -> UINT128
PROTOTYPE:
  UINT128 __bid128_sub (
    UINT128 x, UINT128 y, _IDEC_round rnd_mode, _IDEC_flags *pfpsf);
FLOATING-POINT EXCEPTIONS: P, U, O, I

FUNCTION: Decimal floating-point multiplication, UINT64 * UINT64 -> UINT128
PROTOTYPE:
  UINT128 __bid128dd_mul (
    UINT64 x, UINT64 y, _IDEC_round rnd_mode, _IDEC_flags *pfpsf);
FLOATING-POINT EXCEPTIONS: P, U, O, I

FUNCTION: Decimal floating-point multiplication, UINT64 * UINT128 -> UINT128
PROTOTYPE:
  UINT128 __bid128dq_mul (
    UINT64 x, UINT128 y, _IDEC_round rnd_mode, _IDEC_flags *pfpsf);
FLOATING-POINT EXCEPTIONS: P, U, O, I

FUNCTION: Decimal floating-point multiplication, UINT128 * UINT64 -> UINT128
PROTOTYPE:
  UINT128 __bid128qd_mul (
    UINT128 x, UINT64 y, _IDEC_round rnd_mode, _IDEC_flags *pfpsf);
FLOATING-POINT EXCEPTIONS: P, U, O, I

FUNCTION: Decimal floating-point multiplication, UINT128 * UINT128 -> UINT128
PROTOTYPE:
  UINT128 __bid128_mul (
    UINT128 x, UINT128 y, _IDEC_round rnd_mode, _IDEC_flags *pfpsf);
FLOATING-POINT EXCEPTIONS: P, U, O, I

FUNCTION: Decimal floating-point division, UINT128 / UINT128 -> UINT128
PROTOTYPE:
  UINT128 __bid128_div (
    UINT128 x, UINT128 y, _IDEC_round rnd_mode, _IDEC_flags *pfpsf);
FLOATING-POINT EXCEPTIONS: P, U, O, I

FUNCTION: Decimal floating-point division, UINT64 / UINT64 -> UINT128
PROTOTYPE:
  UINT128 __bid128dd_div (
    UINT64 x, UINT64 y, _IDEC_round rnd_mode, _IDEC_flags *pfpsf);
FLOATING-POINT EXCEPTIONS: P, U, O, Z, I

FUNCTION: Decimal floating-point division, UINT64 / UINT128 -> UINT128
PROTOTYPE:
  UINT128 __bid128dq_div (
    UINT64 x, UINT128 y, _IDEC_round rnd_mode, _IDEC_flags *pfpsf);
FLOATING-POINT EXCEPTIONS: P, U, O, Z, I

FUNCTION: Decimal floating-point division, UINT128 / UINT64 -> UINT128
PROTOTYPE:
  UINT128 __bid128qd_div (
    UINT128 x, UINT64 y, _IDEC_round rnd_mode, _IDEC_flags *pfpsf);
FLOATING-POINT EXCEPTIONS: P, U, O, Z, I

FUNCTION: Decimal floating-point fused multiply-add,
    UINT128 * UINT128 + UINT128 -> UINT128
PROTOTYPE:
  UINT128 __bid128_fma (
    UINT128 x, UINT128 y, UINT128 z, _IDEC_round rnd_mode, _IDEC_flags *pfpsf);
FLOATING-POINT EXCEPTIONS: P, U, O, I

FUNCTION: Decimal floating-point fused multiply-add,
    UINT64 * UINT64 + UINT64 -> UINT128
PROTOTYPE:
  UINT128 __bid128ddd_fma (
    UINT64 x, UINT64 y, UINT64 z, _IDEC_round rnd_mode, _IDEC_flags *pfpsf);
FLOATING-POINT EXCEPTIONS: P, U, O, I

FUNCTION: Decimal floating-point fused multiply-add,
    UINT64 * UINT64 + UINT128 -> UINT128
PROTOTYPE:
  UINT128 __bid128ddq_fma (
    UINT64 x, UINT64 y, UINT128 z, _IDEC_round rnd_mode, _IDEC_flags *pfpsf);
FLOATING-POINT EXCEPTIONS: P, U, O, I

FUNCTION: Decimal floating-point fused multiply-add,
    UINT64 * UINT128 + UINT64 -> UINT128
PROTOTYPE:
  UINT128 __bid128dqd_fma (
    UINT64 x, UINT128 y, UINT64 z, _IDEC_round rnd_mode, _IDEC_flags *pfpsf);
FLOATING-POINT EXCEPTIONS: P, U, O, I

FUNCTION: Decimal floating-point fused multiply-add,
    UINT64 * UINT128 + UINT128 -> UINT128
PROTOTYPE:
  UINT128 __bid128dqq_fma (
    UINT64 x, UINT128 y, UINT128 z, _IDEC_round rnd_mode, _IDEC_flags *pfpsf);
FLOATING-POINT EXCEPTIONS: P, U, O, I

FUNCTION: Decimal floating-point fused multiply-add,
    UINT128 * UINT64 + UINT64 -> UINT128
PROTOTYPE:
  UINT128 __bid128qdd_fma (
    UINT128 x, UINT64 y, UINT64 z, _IDEC_round rnd_mode, _IDEC_flags *pfpsf);
FLOATING-POINT EXCEPTIONS: P, U, O, I

FUNCTION: Decimal floating-point fused multiply-add,
    UINT128 * UINT64 + UINT128 -> UINT128
PROTOTYPE:
  UINT128 __bid128qdq_fma (
    UINT128 x, UINT64 y, UINT128 z, _IDEC_round rnd_mode, _IDEC_flags *pfpsf);
FLOATING-POINT EXCEPTIONS: P, U, O, I

FUNCTION: Decimal floating-point fused multiply-add,
    UINT128 * UINT128 + UINT64 -> UINT128
PROTOTYPE:
  UINT128 __bid128qqd_fma (
    UINT128 x, UINT128 y, UINT64 z, _IDEC_round rnd_mode, _IDEC_flags *pfpsf);
FLOATING-POINT EXCEPTIONS: P, U, O, I

FUNCTION: Decimal floating-point fused multiply-add,
    UINT64 * UINT64 + UINT64 -> UINT64
PROTOTYPE:
  UINT64 __bid64_fma (
    UINT64 x, UINT64 y, UINT64 z, _IDEC_round rnd_mode, _IDEC_flags *pfpsf);
FLOATING-POINT EXCEPTIONS: P, U, O, I

FUNCTION: Decimal floating-point fused multiply-add,
    UINT64 * UINT64 + UINT128 -> UINT64
PROTOTYPE:
  UINT64 __bid64ddq_fma (
    UINT64 x, UINT64 y, UINT128 z, _IDEC_round rnd_mode, _IDEC_flags *pfpsf);
FLOATING-POINT EXCEPTIONS: P, U, O, I

FUNCTION: Decimal floating-point fused multiply-add,
    UINT64 * UINT128 + UINT64 -> UINT64
PROTOTYPE:
  UINT64 __bid64dqd_fma (
    UINT64 x, UINT128 y, UINT64 z, _IDEC_round rnd_mode, _IDEC_flags *pfpsf);
FLOATING-POINT EXCEPTIONS: P, U, O, I

FUNCTION: Decimal floating-point fused multiply-add,
    UINT64 * UINT128 + UINT128 -> UINT64
PROTOTYPE:
  UINT64 __bid64dqq_fma (
    UINT64 x, UINT128 y, UINT128 z, _IDEC_round rnd_mode, _IDEC_flags *pfpsf);
FLOATING-POINT EXCEPTIONS: P, U, O, I

FUNCTION: Decimal floating-point fused multiply-add,
    UINT128 * UINT64 + UINT64 -> UINT64
PROTOTYPE:
  UINT64 __bid64qdd_fma (
    UINT128 x, UINT64 y, UINT64 z, _IDEC_round rnd_mode, _IDEC_flags *pfpsf);
FLOATING-POINT EXCEPTIONS: P, U, O, I

FUNCTION: Decimal floating-point fused multiply-add,
    UINT128 * UINT64 + UINT128 -> UINT64
PROTOTYPE:
  UINT64 __bid64qdq_fma (
    UINT128 x, UINT64 y, UINT128 z, _IDEC_round rnd_mode, _IDEC_flags *pfpsf);
FLOATING-POINT EXCEPTIONS: P, U, O, I

FUNCTION: Decimal floating-point fused multiply-add,
    UINT128 * UINT128 + UINT64 -> UINT64
PROTOTYPE:
  UINT64 __bid64qqd_fma (
    UINT128 x, UINT128 y, UINT64 z, _IDEC_round rnd_mode, _IDEC_flags *pfpsf);
FLOATING-POINT EXCEPTIONS: P, U, O, I

FUNCTION: Decimal floating-point fused multiply-add,
    UINT128 * UINT128 + UINT128 -> UINT64
PROTOTYPE:
  UINT64 __bid64qqq_fma (
    UINT128 x, UINT128 y, UINT128 z, _IDEC_round rnd_mode, _IDEC_flags *pfpsf);
FLOATING-POINT EXCEPTIONS: P, U, O, I

FUNCTION: Decimal floating-point square root, UINT128 -> UINT128
PROTOTYPE:
  UINT128 __bid128_sqrt (
    UINT128 x, _IDEC_round rnd_mode, _IDEC_flags *pfpsf);
FLOATING-POINT EXCEPTIONS: P, U, I

FUNCTION: Decimal floating-point square root, UINT64 -> UINT128
PROTOTYPE:
  UINT128 __bid128d_sqrt (
    UINT64 x, _IDEC_round rnd_mode, _IDEC_flags *pfpsf);
FLOATING-POINT EXCEPTIONS: P, U, I

FUNCTION: Decimal floating-point addition, UINT64 + UINT64 -> UINT64
PROTOTYPE:
  UINT64 __bid64_add (
    UINT64 x, UINT64 y, _IDEC_round rnd_mode, _IDEC_flags *pfpsf);
FLOATING-POINT EXCEPTIONS: P, O , I

FUNCTION: Decimal floating-point addition, UINT64 + UINT128 -> UINT64
PROTOTYPE:
  UINT64 __bid64dq_add (
    UINT64 x, UINT128 y, _IDEC_round rnd_mode, _IDEC_flags *pfpsf);
FLOATING-POINT EXCEPTIONS: P, U, O, I

FUNCTION: Decimal floating-point addition, UINT128 + UINT64 -> UINT64
PROTOTYPE:
  UINT64 __bid64qd_add (
    UINT128 x, UINT64 y, _IDEC_round rnd_mode, _IDEC_flags *pfpsf);
FLOATING-POINT EXCEPTIONS: P, U, O, I

FUNCTION: Decimal floating-point addition, UINT128 + UINT128 -> UINT64
PROTOTYPE:
  UINT64 __bid64qq_add (
    UINT128 x, UINT128 y, _IDEC_round rnd_mode, _IDEC_flags *pfpsf);
FLOATING-POINT EXCEPTIONS: P, U, O, I

FUNCTION: Decimal floating-point subtraction, UINT64 - UINT64 -> UINT64
PROTOTYPE:
  UINT64 __bid64_sub (
    UINT64 x, UINT64 y, _IDEC_round rnd_mode, _IDEC_flags *pfpsf);
FLOATING-POINT EXCEPTIONS: P, O, I

FUNCTION: Decimal floating-point subtraction, UINT64 - UINT128 -> UINT64
PROTOTYPE:
  UINT64 __bid64dq_sub (
    UINT64 x, UINT128 y, _IDEC_round rnd_mode, _IDEC_flags *pfpsf);
FLOATING-POINT EXCEPTIONS: P, U, O, I

FUNCTION: Decimal floating-point subtraction, UINT128 - UINT64 -> UINT64
PROTOTYPE:
  UINT64 __bid64qd_sub (
    UINT128 x, UINT64 y, _IDEC_round rnd_mode, _IDEC_flags *pfpsf);
FLOATING-POINT EXCEPTIONS: P, U, O, I

FUNCTION: Decimal floating-point subtraction, UINT128 - UINT128 -> UINT64
PROTOTYPE:
  UINT64 __bid64qq_sub (
    UINT128 x, UINT128 y, _IDEC_round rnd_mode, _IDEC_flags *pfpsf);
FLOATING-POINT EXCEPTIONS: P, U, O, I

FUNCTION: Decimal floating-point multiplication, UINT64 * UINT64 -> UINT64
PROTOTYPE:
  UINT64 __bid64_mul (
    UINT64 x, UINT64 y, _IDEC_round rnd_mode, _IDEC_flags *pfpsf);
FLOATING-POINT EXCEPTIONS: P, U, O, I

FUNCTION: Decimal floating-point multiplication, UINT64 * UINT128 -> UINT64
PROTOTYPE:
  UINT64 __bid64dq_mul (
    UINT64 x, UINT128 y, _IDEC_round rnd_mode, _IDEC_flags *pfpsf);
FLOATING-POINT EXCEPTIONS: P, U, O, I

FUNCTION: Decimal floating-point multiplication, UINT128 * UINT64 -> UINT64
PROTOTYPE:
  UINT64 __bid64qd_mul (
    UINT128 x, UINT64 y, _IDEC_round rnd_mode, _IDEC_flags *pfpsf);
FLOATING-POINT EXCEPTIONS: P, U, O, I

FUNCTION: Decimal floating-point multiplication, UINT128 * UINT128 -> UINT64
PROTOTYPE:
  UINT64 __bid64qq_mul (
    UINT128 x, UINT128 y, _IDEC_round rnd_mode, _IDEC_flags *pfpsf);
FLOATING-POINT EXCEPTIONS: P, U, O, I

FUNCTION: Decimal floating-point division, UINT64 / UINT64 -> UINT64
PROTOTYPE:
  UINT64 __bid64_div (
    UINT64 x, UINT64 y, _IDEC_round rnd_mode, _IDEC_flags *pfpsf);
FLOATING-POINT EXCEPTIONS: P, U, O, Z, I

FUNCTION: Decimal floating-point division, UINT64 / UINT128 -> UINT64
PROTOTYPE:
  UINT64 __bid64dq_div (
    UINT64 x, UINT128 y, _IDEC_round rnd_mode, _IDEC_flags *pfpsf);
FLOATING-POINT EXCEPTIONS: P, U, O, Z, I

FUNCTION: Decimal floating-point division, UINT128 / UINT64 -> UINT64
PROTOTYPE:
  UINT64 __bid64qd_div (
    UINT128 x, UINT64 y, _IDEC_round rnd_mode, _IDEC_flags *pfpsf);
FLOATING-POINT EXCEPTIONS: P, U, O, Z, I

FUNCTION: Decimal floating-point division, UINT128 / UINT128 -> UINT64
PROTOTYPE:
  UINT64 __bid64qq_div (
    UINT128 x, UINT128 y, _IDEC_round rnd_mode, _IDEC_flags *pfpsf);
FLOATING-POINT EXCEPTIONS: P, U, O, Z, I

FUNCTION: Decimal floating-point square root, UINT64 -> UINT64
PROTOTYPE:
  UINT64 __bid64_sqrt (
    UINT64 x, _IDEC_round rnd_mode, _IDEC_flags *pfpsf);
FLOATING-POINT EXCEPTIONS: P, U, I

FUNCTION: Decimal floating-point square root, UINT128 -> UINT64
PROTOTYPE:
  UINT64 __bid64q_sqrt (
    UINT128 x, _IDEC_round rnd_mode, _IDEC_flags *pfpsf);
FLOATING-POINT EXCEPTIONS: P, U, I

FUNCTION: Convert 128-bit decimal floating-point value to 8-bit signed integer
  in rounding-to-nearest even mode; inexact exceptions not signaled
PROTOTYPE:
  char __bid128_to_int8_rnint (
    UINT128 x, _IDEC_flags *pfpsf);
FLOATING-POINT EXCEPTIONS: I

FUNCTION: Convert 128-bit decimal floating-point value to 8-bit signed integer
  in rounding-to-nearest even mode; inexact exceptions signaled
PROTOTYPE:
  char __bid128_to_int8_xrnint (
    UINT128 x, _IDEC_flags *pfpsf);
FLOATING-POINT EXCEPTIONS: P, I

FUNCTION: Convert 128-bit decimal floating-point value to 8-bit signed integer
  in rounding-to-nearest away mode; inexact exceptions not signaled
PROTOTYPE:
  char __bid128_to_int8_rninta (
    UINT128 x, _IDEC_flags *pfpsf);
FLOATING-POINT EXCEPTIONS: I

FUNCTION: Convert 128-bit decimal floating-point value to 8-bit signed integer
  in rounding-to-nearest away mode; inexact exceptions signaled
PROTOTYPE:
  char __bid128_to_int8_xrninta (
    UINT128 x, _IDEC_flags *pfpsf);
  FLOATING-POINT EXCEPTIONS: P, I

FUNCTION: Convert 128-bit decimal floating-point value to 8-bit signed integer
  in rounding-to-zero mode; inexact exceptions not signaled
PROTOTYPE:
  char __bid128_to_int8_int (
    UINT128 x, _IDEC_flags *pfpsf);
FLOATING-POINT EXCEPTIONS: I

FUNCTION: Convert 128-bit decimal floating-point value to 8-bit signed integer
  in rounding-to-zero mode; inexact exceptions signaled
PROTOTYPE:
  char __bid128_to_int8_xint (
    UINT128 x, _IDEC_flags *pfpsf);
FLOATING-POINT EXCEPTIONS: P, I

FUNCTION: Convert 128-bit decimal floating-point value to 8-bit signed integer
  in rounding-down mode; inexact exceptions not signaled
PROTOTYPE:
  char __bid128_to_int8_floor (
    UINT128 x, _IDEC_flags *pfpsf);
FLOATING-POINT EXCEPTIONS: I

FUNCTION: Convert 128-bit decimal floating-point value to 8-bit signed integer
  in rounding-down mode; inexact exceptions signaled
PROTOTYPE:
  char __bid128_to_int8_xfloor (
    UINT128 x, _IDEC_flags *pfpsf);
FLOATING-POINT EXCEPTIONS: P, I

FUNCTION: Convert 128-bit decimal floating-point value to 8-bit signed integer
  in rounding-up mode; inexact exceptions not signaled
PROTOTYPE:
  char __bid128_to_int8_ceil (
    UINT128 x, _IDEC_flags *pfpsf);
FLOATING-POINT EXCEPTIONS: I

FUNCTION: Convert 128-bit decimal floating-point value to 8-bit signed integer
  in rounding-up mode; inexact exceptions signaled
PROTOTYPE:
  char __bid128_to_int8_xceil (
    UINT128 x, _IDEC_flags *pfpsf);
FLOATING-POINT EXCEPTIONS: P, I

FUNCTION: Convert 128-bit decimal floating-point value to 16-bit signed integer
  in rounding-to-zero mode; inexact exceptions not signaled
PROTOTYPE:
  short __bid128_to_int16_rnint (
    UINT128 x, _IDEC_flags *pfpsf);
FLOATING-POINT EXCEPTIONS: I

FUNCTION: Convert 128-bit decimal floating-point value to 16-bit signed integer
  in rounding-to-nearest-even mode; inexact exceptions signaled
PROTOTYPE:
  short __bid128_to_int16_xrnint (
    UINT128 x, _IDEC_flags *pfpsf);
FLOATING-POINT EXCEPTIONS: P, I

FUNCTION: Convert 128-bit decimal floating-point value to 16-bit signed integer
  in rounding-to-nearest-even mode; inexact exceptions not signaled
PROTOTYPE:
  short __bid128_to_int16_rninta (
    UINT128 x, _IDEC_flags *pfpsf);
FLOATING-POINT EXCEPTIONS: I

FUNCTION: Convert 128-bit decimal floating-point value to 16-bit signed integer
  in rounding-to-nearest-away; inexact exceptions signaled
PROTOTYPE:
  short __bid128_to_int16_xrninta (
    UINT128 x, _IDEC_flags *pfpsf);
FLOATING-POINT EXCEPTIONS: P, I

FUNCTION: Convert 128-bit decimal floating-point value to 16-bit signed integer
  in rounding-to-zero; inexact exceptions not signaled
PROTOTYPE:
  short __bid128_to_int16_int (
    UINT128 x, _IDEC_flags *pfpsf);
FLOATING-POINT EXCEPTIONS: I

FUNCTION: Convert 128-bit decimal floating-point value to 16-bit signed integer
  in rounding-to-zero mode; inexact exceptions signaled
PROTOTYPE:
  short __bid128_to_int16_xint (
    UINT128 x, _IDEC_flags *pfpsf);
FLOATING-POINT EXCEPTIONS: P, I

FUNCTION: Convert 128-bit decimal floating-point value to 16-bit signed integer
  in rounding-down mode; inexact exceptions not signaled
PROTOTYPE:
  short __bid128_to_int16_floor (
    UINT128 x, _IDEC_flags *pfpsf);
FLOATING-POINT EXCEPTIONS: I

FUNCTION: Convert 128-bit decimal floating-point value to 16-bit signed integer
  in rounding-down mode; inexact exceptions signaled
PROTOTYPE:
  short __bid128_to_int16_xfloor (
    UINT128 x, _IDEC_flags *pfpsf);
FLOATING-POINT EXCEPTIONS: P, I

FUNCTION: Convert 128-bit decimal floating-point value to 16-bit signed integer
  in rounding-up mode; inexact exceptions not signaled
PROTOTYPE:
  short __bid128_to_int16_ceil (
    UINT128 x, _IDEC_flags *pfpsf);
FLOATING-POINT EXCEPTIONS: I

FUNCTION: Convert 128-bit decimal floating-point value to 16-bit signed integer
  in rounding-up mode; inexact exceptions signaled
PROTOTYPE:
  short __bid128_to_int16_xceil (
    UINT128 x, _IDEC_flags *pfpsf);
FLOATING-POINT EXCEPTIONS: P, I

FUNCTION: Convert 128-bit decimal floating-point value to 8-bit signed integer
  in rounding-to-nearest-even mode; inexact exceptions P, signaled
PROTOTYPE:
  unsigned char __bid128_to_uint8_rnint (
    UINT128 x, _IDEC_flags *pfpsf);
FLOATING-POINT EXCEPTIONS: I

FUNCTION: Convert 128-bit decimal floating-point value to 8-bit signed integer
  in rounding-to-nearest-even mode; inexact exceptions signaled
PROTOTYPE:
  unsigned char __bid128_to_uint8_xrnint (
    UINT128 x, _IDEC_flags *pfpsf);
FLOATING-POINT EXCEPTIONS: P, I

FUNCTION: Convert 128-bit decimal floating-point value to 8-bit signed integer
  in rounding-to-nearest-away; inexact exceptions not signaled
PROTOTYPE:
  unsigned char __bid128_to_uint8_rninta (
    UINT128 x, _IDEC_flags *pfpsf);
FLOATING-POINT EXCEPTIONS: I

FUNCTION: Convert 128-bit decimal floating-point value to 8-bit signed integer
  in rounding-to-nearest-away; inexact exceptions signaled
PROTOTYPE:
  unsigned char __bid128_to_uint8_xrninta (
    UINT128 x, _IDEC_flags *pfpsf);
FLOATING-POINT EXCEPTIONS: P, I

FUNCTION: Convert 128-bit decimal floating-point value to 8-bit signed integer
  in rounding-to-zero; inexact exceptions not signaled
PROTOTYPE:
  unsigned char __bid128_to_uint8_int (
    UINT128 x, _IDEC_flags *pfpsf);
FLOATING-POINT EXCEPTIONS: I

FUNCTION: Convert 128-bit decimal floating-point value to 8-bit unsigned integer
  in rounding-to-zero; inexact exceptions signaled
PROTOTYPE:
  unsigned char __bid128_to_uint8_xint (
    UINT128 x, _IDEC_flags *pfpsf);
FLOATING-POINT EXCEPTIONS: P, I

FUNCTION: Convert 128-bit decimal floating-point value to 8-bit unsigned integer
  in rounding-down mode; inexact exceptions not signaled
PROTOTYPE:
  unsigned char __bid128_to_uint8_floor (
    UINT128 x, _IDEC_flags *pfpsf);
FLOATING-POINT EXCEPTIONS: I

FUNCTION: Convert 128-bit decimal floating-point value to 8-bit unsigned integer
  in rounding-down mode; inexact exceptions signaled
PROTOTYPE:
  unsigned char __bid128_to_uint8_xfloor (
    UINT128 x, _IDEC_flags *pfpsf);
FLOATING-POINT EXCEPTIONS: P, I

FUNCTION: Convert 128-bit decimal floating-point value to 8-bit unsigned integer
  in rounding-up mode; inexact exceptions not signaled
PROTOTYPE:
  unsigned char __bid128_to_uint8_ceil (
    UINT128 x, _IDEC_flags *pfpsf);
FLOATING-POINT EXCEPTIONS: I

FUNCTION: Convert 128-bit decimal floating-point value to 8-bit unsigned integer
  in rounding-up mode; inexact exceptions signaled
PROTOTYPE:
  unsigned char __bid128_to_uint8_xceil (
    UINT128 x, _IDEC_flags *pfpsf);
FLOATING-POINT EXCEPTIONS: P, I

FUNCTION: Convert 128-bit decimal floating-point value to 16-bit unsigned
  integer in rounding-to-nearest-even mode; inexact exceptions not signaled
PROTOTYPE:
  unsigned short __bid128_to_uint16_rnint (
    UINT128 x, _IDEC_flags *pfpsf);
FLOATING-POINT EXCEPTIONS: I

FUNCTION: Convert 128-bit decimal floating-point value to 16-bit unsigned
  integer in rounding-to-nearest-even mode; inexact exceptions signaled
PROTOTYPE:
  unsigned short __bid128_to_uint16_xrnint (
    UINT128 x, _IDEC_flags *pfpsf);
FLOATING-POINT EXCEPTIONS: P, I

FUNCTION: Convert 128-bit decimal floating-point value to 16-bit unsigned
  integer in rounding-to-nearest-away; inexact exceptions not signaled
PROTOTYPE:
  unsigned short __bid128_to_uint16_rninta (
    UINT128 x, _IDEC_flags *pfpsf);
FLOATING-POINT EXCEPTIONS: I

FUNCTION: Convert 128-bit decimal floating-point value to 16-bit unsigned
  integer in rounding-to-nearest-away; inexact exceptions signaled
PROTOTYPE:
  unsigned short __bid128_to_uint16_xrninta (
    UINT128 x, _IDEC_flags *pfpsf);
FLOATING-POINT EXCEPTIONS: P, I

FUNCTION: Convert 128-bit decimal floating-point value to 16-bit unsigned
  integer in rounding-to-zero; inexact exceptions not signaled
PROTOTYPE:
  unsigned short __bid128_to_uint16_int (
    UINT128 x, _IDEC_flags *pfpsf);
FLOATING-POINT EXCEPTIONS: I

FUNCTION: Convert 128-bit decimal floating-point value to 16-bit unsigned
  integer in rounding-to-zero; inexact exceptions signaled
PROTOTYPE:
  unsigned short __bid128_to_uint16_xint (
    UINT128 x, _IDEC_flags *pfpsf);
FLOATING-POINT EXCEPTIONS: P, I

FUNCTION: Convert 128-bit decimal floating-point value to 16-bit unsigned
  integer in rounding-down mode; inexact exceptions not signaled
PROTOTYPE:
  unsigned short __bid128_to_uint16_floor (
    UINT128 x, _IDEC_flags *pfpsf);
FLOATING-POINT EXCEPTIONS: I

FUNCTION: Convert 128-bit decimal floating-point value to 16-bit unsigned
  integer in rounding-down mode; inexact exceptions signaled
PROTOTYPE:
  unsigned short __bid128_to_uint16_xfloor (
    UINT128 x, _IDEC_flags *pfpsf);
FLOATING-POINT EXCEPTIONS: P, I

FUNCTION: Convert 128-bit decimal floating-point value to 16-bit unsigned
  integer in rounding-up mode; inexact exceptions not signaled
PROTOTYPE:
  unsigned short __bid128_to_uint16_ceil (
    UINT128 x, _IDEC_flags *pfpsf);
FLOATING-POINT EXCEPTIONS: I

FUNCTION: Convert 128-bit decimal floating-point value to 16-bit unsigned
  integer in rounding-up mode; inexact exceptions signaled
PROTOTYPE:
  unsigned short __bid128_to_uint16_xceil (
    UINT128 x, _IDEC_flags *pfpsf);
FLOATING-POINT EXCEPTIONS: P, I

FUNCTION: Convert 128-bit decimal floating-point value to 32-bit signed
  integer in rounding-to-nearest-even mode; inexact exceptions not signaled
PROTOTYPE:
  int __bid128_to_int32_rnint (
    UINT128 x, _IDEC_flags *pfpsf);
FLOATING-POINT EXCEPTIONS: I

FUNCTION: Convert 128-bit decimal floating-point value to 32-bit signed integer
  in rounding-to-nearest-even mode; inexact exceptions signaled
PROTOTYPE:
  int __bid128_to_int32_xrnint (
    UINT128 x, _IDEC_flags *pfpsf);
FLOATING-POINT EXCEPTIONS: P, I

FUNCTION: Convert 128-bit decimal floating-point value to 32-bit signed integer
  in rounding-to-nearest-away; inexact exceptions not signaled
PROTOTYPE:
  int __bid128_to_int32_rninta (
    UINT128 x, _IDEC_flags *pfpsf);
FLOATING-POINT EXCEPTIONS: I

FUNCTION: Convert 128-bit decimal floating-point value to 32-bit signed integer
  in rounding-to-nearest-away; inexact exceptions signaled
PROTOTYPE:
  int __bid128_to_int32_xrninta (
    UINT128 x, _IDEC_flags *pfpsf);
FLOATING-POINT EXCEPTIONS: P, I

FUNCTION: Convert 128-bit decimal floating-point value to 32-bit signed integer
  in rounding-to-zero; inexact exceptions not signaled
PROTOTYPE:
  int __bid128_to_int32_int (
    UINT128 x, _IDEC_flags *pfpsf);
FLOATING-POINT EXCEPTIONS: I

FUNCTION: Convert 128-bit decimal floating-point value to 32-bit signed integer
  in rounding-to-zero; inexact exceptions signaled
PROTOTYPE:
  int __bid128_to_int32_xint (
    UINT128 x, _IDEC_flags *pfpsf);
FLOATING-POINT EXCEPTIONS: P, I

FUNCTION: Convert 128-bit decimal floating-point value to 32-bit signed integer
  in rounding-down mode; inexact exceptions not signaled
PROTOTYPE:
  int __bid128_to_int32_floor (
    UINT128 x, _IDEC_flags *pfpsf);
FLOATING-POINT EXCEPTIONS: I

FUNCTION: Convert 128-bit decimal floating-point value to 32-bit signed integer
  in rounding-down mode; inexact exceptions signaled
PROTOTYPE:
  int __bid128_to_int32_xfloor (
    UINT128 x, _IDEC_flags *pfpsf);
FLOATING-POINT EXCEPTIONS: P, I

FUNCTION: Convert 128-bit decimal floating-point value to 32-bit signed integer
  in rounding-up mode; inexact exceptions not signaled
PROTOTYPE:
  int __bid128_to_int32_ceil (
    UINT128 x, _IDEC_flags *pfpsf);
FLOATING-POINT EXCEPTIONS: I

FUNCTION: Convert 128-bit decimal floating-point value to 32-bit signed integer
  in rounding-up mode; inexact exceptions signaled
PROTOTYPE:
  int __bid128_to_int32_xceil (
    UINT128 x, _IDEC_flags *pfpsf);
FLOATING-POINT EXCEPTIONS: P, I

FUNCTION: Convert 128-bit decimal floating-point value to 32-bit unsigned
  integer in rounding-to-nearest-even mode; inexact exceptions not signaled
PROTOTYPE:
  unsigned int __bid128_to_uint32_rnint (
    UINT128 x, _IDEC_flags *pfpsf);
FLOATING-POINT EXCEPTIONS: I

FUNCTION: Convert 128-bit decimal floating-point value to 32-bit unsigned
  integer in rounding-to-nearest-even mode; inexact exceptions signaled
PROTOTYPE:
  unsigned int __bid128_to_uint32_xrnint (
    UINT128 x, _IDEC_flags *pfpsf);
FLOATING-POINT EXCEPTIONS: P, I

FUNCTION: Convert 128-bit decimal floating-point value to 32-bit unsigned
  integer in rounding-to-nearest-away; inexact exceptions not signaled
PROTOTYPE:
  unsigned int __bid128_to_uint32_rninta (
    UINT128 x, _IDEC_flags *pfpsf);
FLOATING-POINT EXCEPTIONS: I

FUNCTION: Convert 128-bit decimal floating-point value to 32-bit unsigned
  integer in rounding-to-nearest-away; inexact exceptions signaled
PROTOTYPE:
  unsigned int __bid128_to_uint32_xrninta (
    UINT128 x, _IDEC_flags *pfpsf);
FLOATING-POINT EXCEPTIONS: P, I

FUNCTION: Convert 128-bit decimal floating-point value to 32-bit unsigned
  integer in rounding-to-zero; inexact exceptions not signaled
PROTOTYPE:
  unsigned int __bid128_to_uint32_int (
    UINT128 x, _IDEC_flags *pfpsf);
FLOATING-POINT EXCEPTIONS: I

FUNCTION: Convert 128-bit decimal floating-point value to 32-bit unsigned
  integer in rounding-to-zero; inexact exceptions signaled
PROTOTYPE:
  unsigned int __bid128_to_uint32_xint (
    UINT128 x, _IDEC_flags *pfpsf);
FLOATING-POINT EXCEPTIONS: P, I

FUNCTION: Convert 128-bit decimal floating-point value to 32-bit unsigned
  integer in rounding-down mode; inexact exceptions not signaled
PROTOTYPE:
  unsigned int __bid128_to_uint32_floor (
    UINT128 x, _IDEC_flags *pfpsf);
FLOATING-POINT EXCEPTIONS: I

FUNCTION: Convert 128-bit decimal floating-point value to 32-bit unsigned
  integer in rounding-down mode; inexact exceptions signaled
PROTOTYPE:
  unsigned int __bid128_to_uint32_xfloor (
    UINT128 x, _IDEC_flags *pfpsf);
FLOATING-POINT EXCEPTIONS: P, I

FUNCTION: Convert 128-bit decimal floating-point value to 32-bit unsigned
  integer in rounding-up mode; inexact exceptions not signaled
PROTOTYPE:
  unsigned int __bid128_to_uint32_ceil (
    UINT128 x, _IDEC_flags *pfpsf);
FLOATING-POINT EXCEPTIONS: I

FUNCTION: Convert 128-bit decimal floating-point value to 32-bit unsigned
  integer in rounding-up mode; inexact exceptions signaled
PROTOTYPE:
  unsigned int __bid128_to_uint32_xceil (
    UINT128 x, _IDEC_flags *pfpsf);
FLOATING-POINT EXCEPTIONS: P, I

FUNCTION: Convert 128-bit decimal floating-point value to 64-bit signed
  integer in rounding-to-nearest-even mode; inexact exceptions not signaled
PROTOTYPE:
  SINT64 __bid128_to_int64_rnint (
    UINT128 x, _IDEC_flags *pfpsf);
FLOATING-POINT EXCEPTIONS: I

FUNCTION: Convert 128-bit decimal floating-point value to 64-bit signed
  integer in rounding-to-nearest-even mode; inexact exceptions signaled
PROTOTYPE:
  SINT64 __bid128_to_int64_xrnint (
    UINT128 x, _IDEC_flags *pfpsf);
FLOATING-POINT EXCEPTIONS: P, I

FUNCTION: Convert 128-bit decimal floating-point value to 64-bit signed
  integer in rounding-to-nearest-away; inexact exceptions not signaled
PROTOTYPE:
  SINT64 __bid128_to_int64_rninta (
    UINT128 x, _IDEC_flags *pfpsf);
FLOATING-POINT EXCEPTIONS: I

FUNCTION: Convert 128-bit decimal floating-point value to 64-bit signed
  integer in rounding-to-nearest-away; inexact exceptions signaled
PROTOTYPE:
  SINT64 __bid128_to_int64_xrninta (
    UINT128 x, _IDEC_flags *pfpsf);
FLOATING-POINT EXCEPTIONS: P, I

FUNCTION: Convert 128-bit decimal floating-point value to 64-bit signed integer
  in rounding-to-zero; inexact exceptions not signaled
PROTOTYPE:
  SINT64 __bid128_to_int64_int (
    UINT128 x, _IDEC_flags *pfpsf);
FLOATING-POINT EXCEPTIONS: I

FUNCTION: Convert 128-bit decimal floating-point value to 64-bit signed integer
  in rounding-to-zero; inexact exceptions signaled
PROTOTYPE:
  SINT64 __bid128_to_int64_xint (
    UINT128 x, _IDEC_flags *pfpsf);
FLOATING-POINT EXCEPTIONS: P, I

FUNCTION: Convert 128-bit decimal floating-point value to 64-bit signed integer
  in rounding-down mode; inexact exceptions not signaled
PROTOTYPE:
  SINT64 __bid128_to_int64_floor (
    UINT128 x, _IDEC_flags *pfpsf);
FLOATING-POINT EXCEPTIONS: I

FUNCTION: Convert 128-bit decimal floating-point value to 64-bit signed integer
  in rounding-down mode; inexact exceptions signaled
PROTOTYPE:
  SINT64 __bid128_to_int64_xfloor (
    UINT128 x, _IDEC_flags *pfpsf);
FLOATING-POINT EXCEPTIONS: P, I

FUNCTION: Convert 128-bit decimal floating-point value to 64-bit signed integer
  in rounding-up mode; inexact exceptions not signaled
PROTOTYPE:
  SINT64 __bid128_to_int64_ceil (
    UINT128 x, _IDEC_flags *pfpsf);
FLOATING-POINT EXCEPTIONS: I

FUNCTION: Convert 128-bit decimal floating-point value to 64-bit signed integer
  in rounding-up mode; inexact exceptions signaled
PROTOTYPE:
  SINT64 __bid128_to_int64_xceil (
    UINT128 x, _IDEC_flags *pfpsf);
FLOATING-POINT EXCEPTIONS: P, I

FUNCTION: Convert 128-bit decimal floating-point value to 64-bit unsigned
  integer in rounding-to-nearest-even mode; inexact exceptions not signaled
PROTOTYPE:
  UINT64 __bid128_to_uint64_rnint (
    UINT128 x, _IDEC_flags *pfpsf);
FLOATING-POINT EXCEPTIONS: I

FUNCTION: Convert 128-bit decimal floating-point value to 64-bit unsigned
  integer in rounding-to-nearest-even mode; inexact exceptions signaled
PROTOTYPE:
  UINT64 __bid128_to_uint64_xrnint (
    UINT128 x, _IDEC_flags *pfpsf);
FLOATING-POINT EXCEPTIONS: P, I

FUNCTION: Convert 128-bit decimal floating-point value to 64-bit unsigned
  integer in rounding-to-nearest-away; inexact exceptions not signaled
PROTOTYPE:
  UINT64 __bid128_to_uint64_rninta (
    UINT128 x, _IDEC_flags *pfpsf);
FLOATING-POINT EXCEPTIONS: I

FUNCTION: Convert 128-bit decimal floating-point value to 64-bit unsigned
  integer in rounding-to-nearest-away; inexact exceptions signaled
PROTOTYPE:
  UINT64 __bid128_to_uint64_xrninta (
    UINT128 x, _IDEC_flags *pfpsf);
FLOATING-POINT EXCEPTIONS: P, I

FUNCTION: Convert 128-bit decimal floating-point value to 64-bit unsigned
  integer in rounding-to-zero; inexact exceptions not signaled
PROTOTYPE:
  UINT64 __bid128_to_uint64_int (
    UINT128 x, _IDEC_flags *pfpsf);
FLOATING-POINT EXCEPTIONS: I

FUNCTION: Convert 128-bit decimal floating-point value to 64-bit unsigned
  integer in rounding-to-zero; inexact exceptions signaled
PROTOTYPE:
  UINT64 __bid128_to_uint64_xint (
    UINT128 x, _IDEC_flags *pfpsf);
FLOATING-POINT EXCEPTIONS: P, I

FUNCTION: Convert 128-bit decimal floating-point value to 64-bit unsigned
  integer in rounding-down mode; inexact exceptions not signaled
PROTOTYPE:
  UINT64 __bid128_to_uint64_floor (
    UINT128 x, _IDEC_flags *pfpsf);
FLOATING-POINT EXCEPTIONS: I

FUNCTION: Convert 128-bit decimal floating-point value to 64-bit unsigned
  integer in rounding-down mode; inexact exceptions signaled
PROTOTYPE:
  UINT64 __bid128_to_uint64_xfloor (
    UINT128 x, _IDEC_flags *pfpsf);
FLOATING-POINT EXCEPTIONS: P, I

FUNCTION: Convert 128-bit decimal floating-point value to 64-bit unsigned
  integer in rounding-up mode; inexact exceptions not signaled
PROTOTYPE:
  UINT64 __bid128_to_uint64_ceil (
    UINT128 x, _IDEC_flags *pfpsf);
FLOATING-POINT EXCEPTIONS: I

FUNCTION: Convert 128-bit decimal floating-point value to 64-bit unsigned
  integer in rounding-up mode; inexact exceptions signaled
PROTOTYPE:
  UINT64 __bid128_to_uint64_xceil (
    UINT128 x, _IDEC_flags *pfpsf);
FLOATING-POINT EXCEPTIONS: P, I

FUNCTION: Convert 64-bit decimal floating-point value to 32-bit signed
  integer in rounding-to-nearest-even mode; inexact exceptions not signaled
PROTOTYPE:
  int __bid64_to_int32_rnint (
    UINT64 x, _IDEC_flags *pfpsf);
FLOATING-POINT EXCEPTIONS: I

FUNCTION: Convert 64-bit decimal floating-point value to 32-bit signed integer
  in rounding-to-nearest-even mode; inexact exceptions signaled
PROTOTYPE:
  int __bid64_to_int32_xrnint (
    UINT64 x, _IDEC_flags *pfpsf);
FLOATING-POINT EXCEPTIONS: P, I

FUNCTION: Convert 64-bit decimal floating-point value to 32-bit signed integer
  in rounding-to-nearest-away; inexact exceptions not signaled
PROTOTYPE:
  int __bid64_to_int32_rninta (
    UINT64 x, _IDEC_flags *pfpsf);
FLOATING-POINT EXCEPTIONS: I

FUNCTION: Convert 64-bit decimal floating-point value to 32-bit signed integer
  in rounding-to-nearest-away; inexact exceptions signaled
PROTOTYPE:
  int __bid64_to_int32_xrninta (
    UINT64 x, _IDEC_flags *pfpsf);
FLOATING-POINT EXCEPTIONS: P, I

FUNCTION: Convert 64-bit decimal floating-point value to 32-bit signed integer
  in rounding-to-zero; inexact exceptions not signaled
PROTOTYPE:
  int __bid64_to_int32_int (
    UINT64 x, _IDEC_flags *pfpsf);
FLOATING-POINT EXCEPTIONS: I

FUNCTION: Convert 64-bit decimal floating-point value to 32-bit signed integer
  in rounding-to-zero; inexact exceptions signaled
PROTOTYPE:
  int __bid64_to_int32_xint (
    UINT64 x, _IDEC_flags *pfpsf);
FLOATING-POINT EXCEPTIONS: P, I

FUNCTION: Convert 64-bit decimal floating-point value to 32-bit signed integer
  in rounding-down mode; inexact exceptions not signaled
PROTOTYPE:
  int __bid64_to_int32_floor (
    UINT64 x, _IDEC_flags *pfpsf);
FLOATING-POINT EXCEPTIONS: I

FUNCTION: Convert 64-bit decimal floating-point value to 32-bit signed integer
  in rounding-down mode; inexact exceptions signaled
PROTOTYPE:
  int __bid64_to_int32_xfloor (
    UINT64 x, _IDEC_flags *pfpsf);
FLOATING-POINT EXCEPTIONS: P, I

FUNCTION: Convert 64-bit decimal floating-point value to 32-bit signed integer
  in rounding-up mode; inexact exceptions not signaled
PROTOTYPE:
  int __bid64_to_int32_ceil (
    UINT64 x, _IDEC_flags *pfpsf);
FLOATING-POINT EXCEPTIONS: I

FUNCTION: Convert 64-bit decimal floating-point value to 32-bit signed integer
  in rounding-up mode; inexact exceptions signaled
PROTOTYPE:
  int __bid64_to_int32_xceil (
    UINT64 x, _IDEC_flags *pfpsf);
FLOATING-POINT EXCEPTIONS: P, I

FUNCTION: Convert 64-bit decimal floating-point value to 8-bit signed integer
  in rounding-to-nearest-even mode; inexact exceptions not signaled
PROTOTYPE:
  char __bid64_to_int8_rnint (
    UINT64 x, _IDEC_flags *pfpsf);
FLOATING-POINT EXCEPTIONS: I

FUNCTION: Convert 64-bit decimal floating-point value to 8-bit signed integer
  in rounding-to-nearest-even mode; inexact exceptions signaled
PROTOTYPE:
  char __bid64_to_int8_xrnint (
    UINT64 x, _IDEC_flags *pfpsf);
FLOATING-POINT EXCEPTIONS: P, I

FUNCTION: Convert 64-bit decimal floating-point value to 8-bit signed integer
  in rounding-to-nearest-away; inexact exceptions not signaled
PROTOTYPE:
  char __bid64_to_int8_rninta (
    UINT64 x, _IDEC_flags *pfpsf);
FLOATING-POINT EXCEPTIONS: I

FUNCTION: Convert 64-bit decimal floating-point value to 8-bit signed integer
  in rounding-to-nearest-away; inexact exceptions signaled
PROTOTYPE:
  char __bid64_to_int8_xrninta (
    UINT64 x, _IDEC_flags *pfpsf);
FLOATING-POINT EXCEPTIONS: P, I

FUNCTION: Convert 64-bit decimal floating-point value to 8-bit signed integer
  in rounding-to-zero; inexact exceptions not signaled
PROTOTYPE:
  char __bid64_to_int8_int (
    UINT64 x, _IDEC_flags *pfpsf);
FLOATING-POINT EXCEPTIONS: I

FUNCTION: Convert 64-bit decimal floating-point value to 8-bit signed integer
  in rounding-to-zero; inexact exceptions signaled
PROTOTYPE:
  char __bid64_to_int8_xint (
    UINT64 x, _IDEC_flags *pfpsf);
FLOATING-POINT EXCEPTIONS: P, I

FUNCTION: Convert 64-bit decimal floating-point value to 8-bit signed integer
  in rounding-down mode; inexact exceptions not signaled
PROTOTYPE:
  char __bid64_to_int8_floor (
    UINT64 x, _IDEC_flags *pfpsf);
FLOATING-POINT EXCEPTIONS: I

FUNCTION: Convert 64-bit decimal floating-point value to 8-bit signed integer
  in rounding-down mode; inexact exceptions signaled
PROTOTYPE:
  char __bid64_to_int8_xfloor (
    UINT64 x, _IDEC_flags *pfpsf);
FLOATING-POINT EXCEPTIONS: P, I

FUNCTION: Convert 64-bit decimal floating-point value to 8-bit signed integer
  in rounding-up mode; inexact exceptions not signaled
PROTOTYPE:
  char __bid64_to_int8_ceil (
    UINT64 x, _IDEC_flags *pfpsf);
FLOATING-POINT EXCEPTIONS: I

FUNCTION: Convert 64-bit decimal floating-point value to 8-bit signed integer
  in rounding-up mode; inexact exceptions signaled
PROTOTYPE:
  char __bid64_to_int8_xceil (
    UINT64 x, _IDEC_flags *pfpsf);
FLOATING-POINT EXCEPTIONS: P, I

FUNCTION: Convert 64-bit decimal floating-point value to 16-bit signed integer
  in rounding-to-nearest-even mode; inexact exceptions not signaled
PROTOTYPE:
  short __bid64_to_int16_rnint (
    UINT64 x, _IDEC_flags *pfpsf);
FLOATING-POINT EXCEPTIONS: I

FUNCTION: Convert 64-bit decimal floating-point value to 16-bit signed integer
  in rounding-to-nearest-even mode; inexact exceptions signaled
PROTOTYPE:
  short __bid64_to_int16_xrnint (
    UINT64 x, _IDEC_flags *pfpsf);
FLOATING-POINT EXCEPTIONS: P, I

FUNCTION: Convert 64-bit decimal floating-point value to 16-bit signed integer
  in rounding-to-nearest-away; inexact exceptions not signaled
PROTOTYPE:
  short __bid64_to_int16_rninta (
    UINT64 x, _IDEC_flags *pfpsf);
FLOATING-POINT EXCEPTIONS: I

FUNCTION: Convert 64-bit decimal floating-point value to 16-bit signed integer
  in rounding-to-nearest-away; inexact exceptions signaled
PROTOTYPE:
  short __bid64_to_int16_xrninta (
    UINT64 x, _IDEC_flags *pfpsf);
FLOATING-POINT EXCEPTIONS: P, I

FUNCTION: Convert 64-bit decimal floating-point value to 16-bit signed integer
  in rounding-to-zero; inexact exceptions not signaled
PROTOTYPE:
  short __bid64_to_int16_int (
    UINT64 x, _IDEC_flags *pfpsf);
FLOATING-POINT EXCEPTIONS: I

FUNCTION: Convert 64-bit decimal floating-point value to 16-bit signed integer
  in rounding-to-zero; inexact exceptions signaled
PROTOTYPE:
  short __bid64_to_int16_xint (
    UINT64 x, _IDEC_flags *pfpsf);
FLOATING-POINT EXCEPTIONS: P, I

FUNCTION: Convert 64-bit decimal floating-point value to 16-bit signed integer
  in rounding-down mode; inexact exceptions not signaled
PROTOTYPE:
  short __bid64_to_int16_floor (
    UINT64 x, _IDEC_flags *pfpsf);
FLOATING-POINT EXCEPTIONS: I

FUNCTION: Convert 64-bit decimal floating-point value to 16-bit signed integer
  in rounding-down mode; inexact exceptions signaled
PROTOTYPE:
  short __bid64_to_int16_xfloor (
    UINT64 x, _IDEC_flags *pfpsf);
FLOATING-POINT EXCEPTIONS: P, I

FUNCTION: Convert 64-bit decimal floating-point value to 16-bit signed integer
  in rounding-up mode; inexact exceptions not signaled
PROTOTYPE:
  short __bid64_to_int16_ceil (
    UINT64 x, _IDEC_flags *pfpsf);
FLOATING-POINT EXCEPTIONS: I

FUNCTION: Convert 64-bit decimal floating-point value to 16-bit signed integer
  in rounding-up mode; inexact exceptions signaled
PROTOTYPE:
  short __bid64_to_int16_xceil (
    UINT64 x, _IDEC_flags *pfpsf);
FLOATING-POINT EXCEPTIONS: P, I

FUNCTION: Convert 64-bit decimal floating-point value to 8-bit unsigned integer
  in rounding-to-nearest-even mode; inexact exceptions not signaled
PROTOTYPE:
  unsigned char __bid64_to_uint8_rnint (
    UINT64 x, _IDEC_flags *pfpsf);
FLOATING-POINT EXCEPTIONS: I

FUNCTION: Convert 64-bit decimal floating-point value to 8-bit unsigned integer
  in rounding-to-nearest-even mode; inexact exceptions signaled
PROTOTYPE:
  unsigned char __bid64_to_uint8_xrnint (
    UINT64 x, _IDEC_flags *pfpsf);
FLOATING-POINT EXCEPTIONS: P, I

FUNCTION: Convert 64-bit decimal floating-point value to 8-bit unsigned integer
  in rounding-to-nearest-away; inexact exceptions not signaled
PROTOTYPE:
  unsigned char __bid64_to_uint8_rninta (
    UINT64 x, _IDEC_flags *pfpsf);
FLOATING-POINT EXCEPTIONS: I

FUNCTION: Convert 64-bit decimal floating-point value to 8-bit unsigned integer
  in rounding-to-nearest-away; inexact exceptions signaled
PROTOTYPE:
  unsigned char __bid64_to_uint8_xrninta (
    UINT64 x, _IDEC_flags *pfpsf);
FLOATING-POINT EXCEPTIONS: P, I

FUNCTION: Convert 64-bit decimal floating-point value to 8-bit unsigned integer
  in rounding-to-zero; inexact exceptions not signaled
PROTOTYPE:
  unsigned char __bid64_to_uint8_int (
    UINT64 x, _IDEC_flags *pfpsf);
FLOATING-POINT EXCEPTIONS: I

FUNCTION: Convert 64-bit decimal floating-point value to 8-bit unsigned integer
  in rounding-to-zero; inexact exceptions signaled
PROTOTYPE:
  unsigned char __bid64_to_uint8_xint (
    UINT64 x, _IDEC_flags *pfpsf);
FLOATING-POINT EXCEPTIONS: P, I

FUNCTION: Convert 64-bit decimal floating-point value to 8-bit unsigned integer
  in rounding-down mode; inexact exceptions not signaled
PROTOTYPE:
  unsigned char __bid64_to_uint8_floor (
    UINT64 x, _IDEC_flags *pfpsf);
FLOATING-POINT EXCEPTIONS: I

FUNCTION: Convert 64-bit decimal floating-point value to 8-bit unsigned integer
  in rounding-down mode; inexact exceptions signaled
PROTOTYPE:
  unsigned char __bid64_to_uint8_xfloor (
    UINT64 x, _IDEC_flags *pfpsf);
FLOATING-POINT EXCEPTIONS: P, I

FUNCTION: Convert 64-bit decimal floating-point value to 8-bit unsigned integer
  in rounding-up mode; inexact exceptions not signaled
PROTOTYPE:
  unsigned char __bid64_to_uint8_ceil (
    UINT64 x, _IDEC_flags *pfpsf);
FLOATING-POINT EXCEPTIONS: I

FUNCTION: Convert 64-bit decimal floating-point value to 8-bit unsigned integer
  in rounding-up mode; inexact exceptions signaled
PROTOTYPE:
  unsigned char __bid64_to_uint8_xceil (
    UINT64 x, _IDEC_flags *pfpsf);
FLOATING-POINT EXCEPTIONS: P, I

FUNCTION: Convert 64-bit decimal floating-point value to 16-bit unsigned integer
  in rounding-to-nearest-even mode; inexact exceptions not signaled
PROTOTYPE:
  unsigned short __bid64_to_uint16_rnint (
    UINT64 x, _IDEC_flags *pfpsf);
FLOATING-POINT EXCEPTIONS: I

FUNCTION: Convert 64-bit decimal floating-point value to 16-bit unsigned integer
  in rounding-to-nearest-even mode; inexact exceptions signaled
PROTOTYPE:
  unsigned short __bid64_to_uint16_xrnint (
    UINT64 x, _IDEC_flags *pfpsf);
FLOATING-POINT EXCEPTIONS: P, I

FUNCTION: Convert 64-bit decimal floating-point value to 16-bit unsigned integer
  in rounding-to-nearest-away; inexact exceptions not signaled
PROTOTYPE:
  unsigned short __bid64_to_uint16_rninta (
    UINT64 x, _IDEC_flags *pfpsf);
FLOATING-POINT EXCEPTIONS: I

FUNCTION: Convert 64-bit decimal floating-point value to 16-bit unsigned integer
  in rounding-to-nearest-away; inexact exceptions signaled
PROTOTYPE:
  unsigned short __bid64_to_uint16_xrninta (
    UINT64 x, _IDEC_flags *pfpsf);
FLOATING-POINT EXCEPTIONS: P, I

FUNCTION: Convert 64-bit decimal floating-point value to 16-bit unsigned integer
  in rounding-to-zero; inexact exceptions not signaled
PROTOTYPE:
  unsigned short __bid64_to_uint16_int (
    UINT64 x, _IDEC_flags *pfpsf);
FLOATING-POINT EXCEPTIONS: I

FUNCTION: Convert 64-bit decimal floating-point value to 16-bit unsigned integer
  in rounding-to-zero; inexact exceptions signaled
PROTOTYPE:
  unsigned short __bid64_to_uint16_xint (
    UINT64 x, _IDEC_flags *pfpsf);
FLOATING-POINT EXCEPTIONS: P, I

FUNCTION: Convert 64-bit decimal floating-point value to 16-bit unsigned integer
  in rounding-down mode; inexact exceptions not signaled
PROTOTYPE:
  unsigned short __bid64_to_uint16_floor (
    UINT64 x, _IDEC_flags *pfpsf);
FLOATING-POINT EXCEPTIONS: I

FUNCTION: Convert 64-bit decimal floating-point value to 16-bit unsigned integer
  in rounding-down mode; inexact exceptions signaled
PROTOTYPE:
  unsigned short __bid64_to_uint16_xfloor (
    UINT64 x, _IDEC_flags *pfpsf);
FLOATING-POINT EXCEPTIONS: P, I

FUNCTION: Convert 64-bit decimal floating-point value to 16-bit unsigned integer
  in rounding-up mode; inexact exceptions not signaled
PROTOTYPE:
  unsigned short __bid64_to_uint16_ceil (
    UINT64 x, _IDEC_flags *pfpsf);
FLOATING-POINT EXCEPTIONS: I

FUNCTION: Convert 64-bit decimal floating-point value to 16-bit unsigned integer
  in rounding-up mode; inexact exceptions signaled
PROTOTYPE:
  unsigned short __bid64_to_uint16_xceil (
    UINT64 x, _IDEC_flags *pfpsf);
FLOATING-POINT EXCEPTIONS: P, I

FUNCTION: Convert 64-bit decimal floating-point value to 32-bit unsigned integer
  in rounding-to-nearest-even mode; inexact exceptions not signaled
PROTOTYPE:
  unsigned int __bid64_to_uint32_rnint (
    UINT64 x, _IDEC_flags *pfpsf);
FLOATING-POINT EXCEPTIONS: I

FUNCTION: Convert 64-bit decimal floating-point value to 32-bit unsigned integer
  in rounding-to-nearest-even mode; inexact exceptions signaled
PROTOTYPE:
  unsigned int __bid64_to_uint32_xrnint (
    UINT64 x, _IDEC_flags *pfpsf);
FLOATING-POINT EXCEPTIONS: P, I

FUNCTION: Convert 64-bit decimal floating-point value to 32-bit unsigned integer
  in rounding-to-nearest-away; inexact exceptions not signaled
PROTOTYPE:
  unsigned int __bid64_to_uint32_rninta (
    UINT64 x, _IDEC_flags *pfpsf);
FLOATING-POINT EXCEPTIONS: I

FUNCTION: Convert 64-bit decimal floating-point value to 32-bit unsigned integer
  in rounding-to-nearest-away; inexact exceptions signaled
PROTOTYPE:
  unsigned int __bid64_to_uint32_xrninta (
    UINT64 x, _IDEC_flags *pfpsf);
FLOATING-POINT EXCEPTIONS: P, I

FUNCTION: Convert 64-bit decimal floating-point value to 32-bit unsigned integer
  in rounding-to-zero; inexact exceptions not signaled
PROTOTYPE:
  unsigned int __bid64_to_uint32_int (
    UINT64 x, _IDEC_flags *pfpsf);
FLOATING-POINT EXCEPTIONS: I

FUNCTION: Convert 64-bit decimal floating-point value to 32-bit unsigned integer
  in rounding-to-zero; inexact exceptions signaled
PROTOTYPE:
  unsigned int __bid64_to_uint32_xint (
    UINT64 x, _IDEC_flags *pfpsf);
FLOATING-POINT EXCEPTIONS: P, I

FUNCTION: Convert 64-bit decimal floating-point value to 32-bit unsigned integer
  in rounding-down mode; inexact exceptions not signaled
PROTOTYPE:
  unsigned int __bid64_to_uint32_floor (
    UINT64 x, _IDEC_flags *pfpsf);
FLOATING-POINT EXCEPTIONS: I

FUNCTION: Convert 64-bit decimal floating-point value to 32-bit unsigned integer
  in rounding-down mode; inexact exceptions signaled
PROTOTYPE:
  unsigned int __bid64_to_uint32_xfloor (
    UINT64 x, _IDEC_flags *pfpsf);
FLOATING-POINT EXCEPTIONS: P, I

FUNCTION: Convert 64-bit decimal floating-point value to 32-bit unsigned integer
  in rounding-up mode; inexact exceptions not signaled
PROTOTYPE:
  unsigned int __bid64_to_uint32_ceil (
    UINT64 x, _IDEC_flags *pfpsf);
FLOATING-POINT EXCEPTIONS: I

FUNCTION: Convert 64-bit decimal floating-point value to 32-bit unsigned integer
  in rounding-up mode; inexact exceptions signaled
PROTOTYPE:
  unsigned int __bid64_to_uint32_xceil (
    UINT64 x, _IDEC_flags *pfpsf);
FLOATING-POINT EXCEPTIONS: P, I

FUNCTION: Convert 64-bit decimal floating-point value to 64-bit signed integer
  in rounding-to-nearest-even mode; inexact exceptions not signaled
PROTOTYPE:
  SINT64 __bid64_to_int64_rnint (
    UINT64 x, _IDEC_flags *pfpsf);
FLOATING-POINT EXCEPTIONS: I

FUNCTION: Convert 64-bit decimal floating-point value to 64-bit signed integer
  in rounding-to-nearest-even mode; inexact exceptions signaled
PROTOTYPE:
  SINT64 __bid64_to_int64_xrnint (
    UINT64 x, _IDEC_flags *pfpsf);
FLOATING-POINT EXCEPTIONS: P, I

FUNCTION: Convert 64-bit decimal floating-point value to 64-bit signed integer
  in rounding-to-nearest-away; inexact exceptions not signaled
PROTOTYPE:
  SINT64 __bid64_to_int64_rninta (
    UINT64 x, _IDEC_flags *pfpsf);
FLOATING-POINT EXCEPTIONS: I

FUNCTION: Convert 64-bit decimal floating-point value to 64-bit signed integer
  in rounding-to-nearest-away; inexact exceptions signaled
PROTOTYPE:
  SINT64 __bid64_to_int64_xrninta (
    UINT64 x, _IDEC_flags *pfpsf);
FLOATING-POINT EXCEPTIONS: P, I

FUNCTION: Convert 64-bit decimal floating-point value to 64-bit signed integer
  in rounding-to-zero; inexact exceptions not signaled
PROTOTYPE:
  SINT64 __bid64_to_int64_int (
    UINT64 x, _IDEC_flags *pfpsf);
FLOATING-POINT EXCEPTIONS: I

FUNCTION: Convert 64-bit decimal floating-point value to 64-bit signed integer
  in rounding-to-zero; inexact exceptions signaled
PROTOTYPE:
  SINT64 __bid64_to_int64_xint (
    UINT64 x, _IDEC_flags *pfpsf);
FLOATING-POINT EXCEPTIONS: P, I

FUNCTION: Convert 64-bit decimal floating-point value to 64-bit signed integer
  in rounding-down mode; inexact exceptions not signaled
PROTOTYPE:
  SINT64 __bid64_to_int64_floor (
    UINT64 x, _IDEC_flags *pfpsf);
FLOATING-POINT EXCEPTIONS: I

FUNCTION: Convert 64-bit decimal floating-point value to 64-bit signed integer
  in rounding-down mode; inexact exceptions signaled
PROTOTYPE:
  SINT64 __bid64_to_int64_xfloor (
    UINT64 x, _IDEC_flags *pfpsf);
FLOATING-POINT EXCEPTIONS: P, I

FUNCTION: Convert 64-bit decimal floating-point value to 64-bit signed integer
  in rounding-up mode; inexact exceptions not signaled
PROTOTYPE:
  SINT64 __bid64_to_int64_ceil (
    UINT64 x, _IDEC_flags *pfpsf);
FLOATING-POINT EXCEPTIONS: I

FUNCTION: Convert 64-bit decimal floating-point value to 64-bit signed integer
  in rounding-up mode; inexact exceptions signaled
PROTOTYPE:
  SINT64 __bid64_to_int64_xceil (
    UINT64 x, _IDEC_flags *pfpsf);
FLOATING-POINT EXCEPTIONS: P, I

FUNCTION: Convert 64-bit decimal floating-point value to 64-bit unsigned integer
  in rounding-to-nearest-even mode; inexact exceptions not signaled
PROTOTYPE:
  UINT64 __bid64_to_uint64_rnint (
    UINT64 x, _IDEC_flags *pfpsf);
FLOATING-POINT EXCEPTIONS: I

FUNCTION: Convert 64-bit decimal floating-point value to 64-bit unsigned integer
  in rounding-to-nearest-even mode; inexact exceptions signaled
PROTOTYPE:
  UINT64 __bid64_to_uint64_xrnint (
    UINT64 x, _IDEC_flags *pfpsf);
FLOATING-POINT EXCEPTIONS: P, I

FUNCTION: Convert 64-bit decimal floating-point value to 64-bit unsigned integer
  in rounding-to-nearest-away; inexact exceptions not signaled
PROTOTYPE:
  UINT64 __bid64_to_uint64_rninta (
    UINT64 x, _IDEC_flags *pfpsf);
FLOATING-POINT EXCEPTIONS: I

FUNCTION: Convert 64-bit decimal floating-point value to 64-bit unsigned integer
  in rounding-to-nearest-away; inexact exceptions signaled
PROTOTYPE:
  UINT64 __bid64_to_uint64_xrninta (
    UINT64 x, _IDEC_flags *pfpsf);
FLOATING-POINT EXCEPTIONS: P, I

FUNCTION: Convert 64-bit decimal floating-point value to 64-bit unsigned integer
  in rounding-to-zero; inexact exceptions not signaled
PROTOTYPE:
  UINT64 __bid64_to_uint64_int (
    UINT64 x, _IDEC_flags *pfpsf);
FLOATING-POINT EXCEPTIONS: I

FUNCTION: Convert 64-bit decimal floating-point value to 64-bit unsigned integer
  in rounding-to-zero mode; inexact exceptions signaled
PROTOTYPE:
  UINT64 __bid64_to_uint64_xint (
    UINT64 x, _IDEC_flags *pfpsf);
FLOATING-POINT EXCEPTIONS: P, I

FUNCTION: Convert 64-bit decimal floating-point value to 64-bit unsigned integer
  in rounding-down mode; inexact exceptions not signaled
PROTOTYPE:
  UINT64 __bid64_to_uint64_floor (
    UINT64 x, _IDEC_flags *pfpsf);
FLOATING-POINT EXCEPTIONS: I

FUNCTION: Convert 64-bit decimal floating-point value to 64-bit unsigned integer
  in rounding-down mode; inexact exceptions signaled
PROTOTYPE:
  UINT64 __bid64_to_uint64_xfloor (
    UINT64 x, _IDEC_flags *pfpsf);
FLOATING-POINT EXCEPTIONS: P, I

FUNCTION: Convert 64-bit decimal floating-point value to 64-bit unsigned integer
  in rounding-up mode; inexact exceptions not signaled
PROTOTYPE:
  UINT64 __bid64_to_uint64_ceil (
    UINT64 x, _IDEC_flags *pfpsf);
FLOATING-POINT EXCEPTIONS: I

FUNCTION: Convert 64-bit decimal floating-point value to 64-bit unsigned integer
  in rounding-up mode; inexact exceptions signaled
PROTOTYPE:
  UINT64 __bid64_to_uint64_xceil (
    UINT64 x, _IDEC_flags *pfpsf);
FLOATING-POINT EXCEPTIONS: P, I

FUNCTION: Compare 64-bit decimal floating-point numbers for specified relation;
  do not signal invalid exception for quiet NaNs
PROTOTYPE:
  int __bid64_quiet_equal (
    UINT64 x, UINT64 y, _IDEC_flags *pfpsf);
FLOATING-POINT EXCEPTIONS: I

FUNCTION: Compare 64-bit decimal floating-point numbers for specified relation;
  do not signal invalid exception for quiet NaNs
PROTOTYPE:
  int __bid64_quiet_greater (
    UINT64 x, UINT64 y, _IDEC_flags *pfpsf);
FLOATING-POINT EXCEPTIONS: I

FUNCTION: Compare 64-bit decimal floating-point numbers for specified relation;
  do not signal invalid exception for quiet NaNs
PROTOTYPE:
  int __bid64_quiet_greater_equal (
    UINT64 x, UINT64 y, _IDEC_flags *pfpsf);
FLOATING-POINT EXCEPTIONS: I

FUNCTION: Compare 64-bit decimal floating-point numbers for specified relation;
  do not signal invalid exception for quiet NaNs
PROTOTYPE:
  int __bid64_quiet_greater_unordered (
    UINT64 x, UINT64 y, _IDEC_flags *pfpsf);
FLOATING-POINT EXCEPTIONS: I

FUNCTION: Compare 64-bit decimal floating-point numbers for specified relation;
  do not signal invalid exception for quiet NaNs
PROTOTYPE:
  int __bid64_quiet_less (
    UINT64 x, UINT64 y, _IDEC_flags *pfpsf);
FLOATING-POINT EXCEPTIONS: I

FUNCTION: Compare 64-bit decimal floating-point numbers for specified relation;
  do not signal invalid exception for quiet NaNs
PROTOTYPE:
  int __bid64_quiet_less_equal (
    UINT64 x, UINT64 y, _IDEC_flags *pfpsf);
FLOATING-POINT EXCEPTIONS: I

FUNCTION: Compare 64-bit decimal floating-point numbers for specified relation;
  do not signal invalid exception for quiet NaNs
PROTOTYPE:
  int __bid64_quiet_less_unordered (
    UINT64 x, UINT64 y, _IDEC_flags *pfpsf);
FLOATING-POINT EXCEPTIONS: I

FUNCTION: Compare 64-bit decimal floating-point numbers for specified relation;
  do not signal invalid exception for quiet NaNs
PROTOTYPE:
  int __bid64_quiet_not_equal (
    UINT64 x, UINT64 y, _IDEC_flags *pfpsf);
FLOATING-POINT EXCEPTIONS: I

FUNCTION: Compare 64-bit decimal floating-point numbers for specified relation;
  do not signal invalid exception for quiet NaNs
PROTOTYPE:
  int __bid64_quiet_not_greater (
    UINT64 x, UINT64 y, _IDEC_flags *pfpsf);
FLOATING-POINT EXCEPTIONS: I

FUNCTION: Compare 64-bit decimal floating-point numbers for specified relation;
  do not signal invalid exception for quiet NaNs
PROTOTYPE:
  int __bid64_quiet_not_less (
    UINT64 x, UINT64 y, _IDEC_flags *pfpsf);
FLOATING-POINT EXCEPTIONS: I

FUNCTION: Compare 64-bit decimal floating-point numbers for specified relation;
  do not signal invalid exception for quiet NaNs
PROTOTYPE:
  int __bid64_quiet_ordered (
    UINT64 x, UINT64 y, _IDEC_flags *pfpsf);
FLOATING-POINT EXCEPTIONS: I

FUNCTION: Compare 64-bit decimal floating-point numbers for specified relation;
  do not signal invalid exception for quiet NaNs
PROTOTYPE:
  int __bid64_quiet_unordered (
    UINT64 x, UINT64 y, _IDEC_flags *pfpsf);
FLOATING-POINT EXCEPTIONS: I

FUNCTION: Compare 64-bit decimal floating-point numbers for specified relation;
  signal invalid exception for quiet NaNs
PROTOTYPE:
  int __bid64_signaling_greater (
    UINT64 x, UINT64 y, _IDEC_flags *pfpsf);
FLOATING-POINT EXCEPTIONS: I

FUNCTION: Compare 64-bit decimal floating-point numbers for specified relation;
  signal invalid exception for quiet NaNs
PROTOTYPE:
  int __bid64_signaling_greater_equal (
    UINT64 x, UINT64 y, _IDEC_flags *pfpsf);
FLOATING-POINT EXCEPTIONS: I

FUNCTION: Compare 64-bit decimal floating-point numbers for specified relation;
  signal invalid exception for quiet NaNs
PROTOTYPE:
  int __bid64_signaling_greater_unordered (
    UINT64 x, UINT64 y, _IDEC_flags *pfpsf);
FLOATING-POINT EXCEPTIONS: I

FUNCTION: Compare 64-bit decimal floating-point numbers for specified relation;
  signal invalid exception for quiet NaNs
PROTOTYPE:
  int __bid64_signaling_less (
    UINT64 x, UINT64 y, _IDEC_flags *pfpsf);
FLOATING-POINT EXCEPTIONS: I

FUNCTION: Compare 64-bit decimal floating-point numbers for specified relation;
  signal invalid exception for quiet NaNs
PROTOTYPE:
  int __bid64_signaling_less_equal (
    UINT64 x, UINT64 y, _IDEC_flags *pfpsf);
FLOATING-POINT EXCEPTIONS: I

FUNCTION: Compare 64-bit decimal floating-point numbers for specified relation;
  signal invalid exception for quiet NaNs
PROTOTYPE:
  int __bid64_signaling_less_unordered (
    UINT64 x, UINT64 y, _IDEC_flags *pfpsf);
FLOATING-POINT EXCEPTIONS: I

FUNCTION: Compare 64-bit decimal floating-point numbers for specified relation;
  signal invalid exception for quiet NaNs
PROTOTYPE:
  int __bid64_signaling_not_greater (
    UINT64 x, UINT64 y, _IDEC_flags *pfpsf);
FLOATING-POINT EXCEPTIONS: I

FUNCTION: Compare 64-bit decimal floating-point numbers for specified relation;
  signal invalid exception for quiet NaNs
PROTOTYPE:
  int __bid64_signaling_not_less (
    UINT64 x, UINT64 y, _IDEC_flags *pfpsf);
FLOATING-POINT EXCEPTIONS: I

FUNCTION: Compare 128-bit decimal floating-point numbers for specified relation;
  do not signal invalid exception for quiet NaNs
PROTOTYPE:
  int __bid128_quiet_equal (
    UINT128 x, UINT128 y, _IDEC_flags *pfpsf);
FLOATING-POINT EXCEPTIONS: I

FUNCTION: Compare 128-bit decimal floating-point numbers for specified relation;
  do not signal invalid exception for quiet NaNs
PROTOTYPE:
  int __bid128_quiet_greater (
    UINT128 x, UINT128 y, _IDEC_flags *pfpsf);
FLOATING-POINT EXCEPTIONS: I

FUNCTION: Compare 128-bit decimal floating-point numbers for specified relation;
  do not signal invalid exception for quiet NaNs
PROTOTYPE:
  int __bid128_quiet_greater_equal (
    UINT128 x, UINT128 y, _IDEC_flags *pfpsf);
FLOATING-POINT EXCEPTIONS: I

FUNCTION: Compare 128-bit decimal floating-point numbers for specified relation;
  do not signal invalid exception for quiet NaNs
PROTOTYPE:
  int __bid128_quiet_greater_unordered (
    UINT128 x, UINT128 y, _IDEC_flags *pfpsf);
FLOATING-POINT EXCEPTIONS: I

FUNCTION: Compare 128-bit decimal floating-point numbers for specified relation;
  do not signal invalid exception for quiet NaNs
PROTOTYPE:
  int __bid128_quiet_less (
    UINT128 x, UINT128 y, _IDEC_flags *pfpsf);
FLOATING-POINT EXCEPTIONS: I

FUNCTION: Compare 128-bit decimal floating-point numbers for specified relation;
  do not signal invalid exception for quiet NaNs
PROTOTYPE:
  int __bid128_quiet_less_equal (
    UINT128 x, UINT128 y, _IDEC_flags *pfpsf);
FLOATING-POINT EXCEPTIONS: I

FUNCTION: Compare 128-bit decimal floating-point numbers for specified relation;
  do not signal invalid exception for quiet NaNs
PROTOTYPE:
  int __bid128_quiet_less_unordered (
    UINT128 x, UINT128 y, _IDEC_flags *pfpsf);
FLOATING-POINT EXCEPTIONS: I

FUNCTION: Compare 128-bit decimal floating-point numbers for specified relation;
  do not signal invalid exception for quiet NaNs
PROTOTYPE:
  int __bid128_quiet_not_equal (
    UINT128 x, UINT128 y, _IDEC_flags *pfpsf);
FLOATING-POINT EXCEPTIONS: I

FUNCTION: Compare 128-bit decimal floating-point numbers for specified relation;
  do not signal invalid exception for quiet NaNs
PROTOTYPE:
  int __bid128_quiet_not_greater (
    UINT128 x, UINT128 y, _IDEC_flags *pfpsf);
FLOATING-POINT EXCEPTIONS: I

FUNCTION: Compare 128-bit decimal floating-point numbers for specified relation;
  do not signal invalid exception for quiet NaNs
PROTOTYPE:
  int __bid128_quiet_not_less (
    UINT128 x, UINT128 y, _IDEC_flags *pfpsf);
FLOATING-POINT EXCEPTIONS: I

FUNCTION: Compare 128-bit decimal floating-point numbers for specified relation;
  do not signal invalid exception for quiet NaNs
PROTOTYPE:
  int __bid128_quiet_ordered (
    UINT128 x, UINT128 y, _IDEC_flags *pfpsf);
FLOATING-POINT EXCEPTIONS: I

FUNCTION: Compare 128-bit decimal floating-point numbers for specified relation;
  do not signal invalid exception for quiet NaNs
PROTOTYPE:
  int __bid128_quiet_unordered (
    UINT128 x, UINT128 y, _IDEC_flags *pfpsf);
FLOATING-POINT EXCEPTIONS: I

FUNCTION: Compare 128-bit decimal floating-point numbers for specified relation;
  signal invalid exception for quiet NaNs
PROTOTYPE:
  int __bid128_signaling_greater (
    UINT128 x, UINT128 y, _IDEC_flags *pfpsf);
FLOATING-POINT EXCEPTIONS: I

FUNCTION: Compare 128-bit decimal floating-point numbers for specified relation;
  signal invalid exception for quiet NaNs
PROTOTYPE:
  int __bid128_signaling_greater_equal (
    UINT128 x, UINT128 y, _IDEC_flags *pfpsf);
FLOATING-POINT EXCEPTIONS: I

FUNCTION: Compare 128-bit decimal floating-point numbers for specified relation;
  signal invalid exception for quiet NaNs
PROTOTYPE:
  int __bid128_signaling_greater_unordered (
    UINT128 x, UINT128 y, _IDEC_flags *pfpsf);
FLOATING-POINT EXCEPTIONS: I

FUNCTION: Compare 128-bit decimal floating-point numbers for specified relation;
  signal invalid exception for quiet NaNs
PROTOTYPE:
  int __bid128_signaling_less (
    UINT128 x, UINT128 y, _IDEC_flags *pfpsf);
FLOATING-POINT EXCEPTIONS: I

FUNCTION: Compare 128-bit decimal floating-point numbers for specified relation;
  signal invalid exception for quiet NaNs
PROTOTYPE:
  int __bid128_signaling_less_equal (
    UINT128 x, UINT128 y, _IDEC_flags *pfpsf);
FLOATING-POINT EXCEPTIONS: I

FUNCTION: Compare 128-bit decimal floating-point numbers for specified relation;
  signal invalid exception for quiet NaNs
PROTOTYPE:
  int __bid128_signaling_less_unordered (
    UINT128 x, UINT128 y, _IDEC_flags *pfpsf);
FLOATING-POINT EXCEPTIONS: I

FUNCTION: Compare 128-bit decimal floating-point numbers for specified relation;
  signal invalid exception for quiet NaNs
PROTOTYPE:
  int __bid128_signaling_not_greater (
    UINT128 x, UINT128 y, _IDEC_flags *pfpsf);
FLOATING-POINT EXCEPTIONS: I

FUNCTION: Compare 128-bit decimal floating-point numbers for specified relation;
  signal invalid exception for quiet NaNs
PROTOTYPE:
  int __bid128_signaling_not_less (
    UINT128 x, UINT128 y, _IDEC_flags *pfpsf);
FLOATING-POINT EXCEPTIONS: I

FUNCTION: Round 64-bit decimal floating-point value to integral-valued decimal
  floating-point value in the same format, using the current rounding mode;
  signal inexact exceptions
PROTOTYPE:
  UINT64 __bid64_round_integral_exact (
    UINT64 x, _IDEC_round rnd_mode, _IDEC_flags *pfpsf);
FLOATING-POINT EXCEPTIONS: P, I

FUNCTION: Round 64-bit decimal floating-point value to integral-valued decimal
  floating-point value in the same format, using the rounding-to-nearest-even
  mode; do not signal inexact exceptions
PROTOTYPE:
  UINT64 __bid64_round_integral_nearest_even (
    UINT64 x, _IDEC_flags *pfpsf);
FLOATING-POINT EXCEPTIONS: I

FUNCTION: Round 64-bit decimal floating-point value to integral-valued decimal
  floating-point value in the same format, using the rounding-down mode; do not
  signal inexact exceptions
PROTOTYPE:
  UINT64 __bid64_round_integral_negative (
    UINT64 x, _IDEC_flags *pfpsf);
FLOATING-POINT EXCEPTIONS: I

FUNCTION: Round 64-bit decimal floating-point value to integral-valued decimal
  floating-point value in the same format, using the rounding-up  mode; do not
  signal inexact exceptions
PROTOTYPE:
  UINT64 __bid64_round_integral_positive (
    UINT64 x, _IDEC_flags *pfpsf);
FLOATING-POINT EXCEPTIONS: I

FUNCTION: Round 64-bit decimal floating-point value to integral-valued decimal
  floating-point value in the same format, using the rounding-to-zero  mode;
  do not  signal inexact exceptions
PROTOTYPE:
  UINT64 __bid64_round_integral_zero (
    UINT64 x, _IDEC_flags *pfpsf);
FLOATING-POINT EXCEPTIONS: I

FUNCTION: Round 64-bit decimal floating-point value to integral-valued decimal
  floating-point value in the same format, using the rounding-to-nearest-away
  mode; do not signal inexact exceptions
PROTOTYPE:
  UINT64 __bid64_round_integral_nearest_away (
    UINT64 x, _IDEC_flags *pfpsf);
FLOATING-POINT EXCEPTIONS: I

FUNCTION: Round 128-bit decimal floating-point value to integral-valued decimal
  floating-point value in the same format, using the current rounding mode;
  signal inexact exceptions
PROTOTYPE:
  UINT128 __bid128_round_integral_exact (
    UINT128 x, _IDEC_round rnd_mode, _IDEC_flags *pfpsf);
FLOATING-POINT EXCEPTIONS: P, I

FUNCTION: Round 128-bit decimal floating-point value to integral-valued decimal
  floating-point value in the same format, using the rounding-to-nearest-even   mode; do not signal inexact exceptions
PROTOTYPE:
  UINT128 __bid128_round_integral_nearest_even (
    UINT128 x, _IDEC_flags *pfpsf);
FLOATING-POINT EXCEPTIONS: I

FUNCTION: Round 128-bit decimal floating-point value to integral-valued decimal
  floating-point value in the same format, using the rounding-down mode; do not
  signal inexact exceptions
PROTOTYPE:
  UINT128 __bid128_round_integral_negative (
    UINT128 x, _IDEC_flags *pfpsf);
FLOATING-POINT EXCEPTIONS: I

FUNCTION: Round 128-bit decimal floating-point value to integral-valued decimal
  floating-point value in the same format, using the rounding-up  mode; do not
  signal inexact exceptions
PROTOTYPE:
  UINT128 __bid128_round_integral_positive (
    UINT128 x, _IDEC_flags *pfpsf);
FLOATING-POINT EXCEPTIONS: I

FUNCTION: Round 128-bit decimal floating-point value to integral-valued decimal
  floating-point value in the same format, using the rounding-to-zero  mode;
  do not  signal inexact exceptions
PROTOTYPE:
  UINT128 __bid128_round_integral_zero (
    UINT128 x, _IDEC_flags *pfpsf);
FLOATING-POINT EXCEPTIONS: I

FUNCTION: Round 128-bit decimal floating-point value to integral-valued decimal
  floating-point value in the same format, using the rounding-to-nearest-away
  mode; do not signal inexact exceptions
PROTOTYPE:
  UINT128 __bid128_round_integral_nearest_away (
    UINT128 x, _IDEC_flags *pfpsf);
FLOATING-POINT EXCEPTIONS: I

FUNCTION: Returns the least 64-bit decimal floating-point number that
  compares greater than the operand
PROTOTYPE:
  UINT64 __bid64_nextup (
    UINT64 x, _IDEC_flags *pfpsf);
FLOATING-POINT EXCEPTIONS: I

FUNCTION: Returns the greatest 64-bit decimal floating-point number that
  compares less than the operand
PROTOTYPE:
  UINT64 __bid64_nextdown (
    UINT64 x, _IDEC_flags *pfpsf);
FLOATING-POINT EXCEPTIONS: I

FUNCTION: Returns the next 64-bit decimal floating-point number that neighbors
  the first operand in the direction toward the second operand
PROTOTYPE:
  UINT64 __bid64_nextafter (
    UINT64 x, UINT64 y, _IDEC_flags *pfpsf);
FLOATING-POINT EXCEPTIONS: P, U, O, I

FUNCTION: Returns the least 128-bit decimal floating-point number that
  compares greater than the operand
PROTOTYPE:
  UINT128 __bid128_nextup (
    UINT128 x, _IDEC_flags *pfpsf);
FLOATING-POINT EXCEPTIONS: I

FUNCTION: Returns the greatest 128-bit decimal floating-point number that
  compares less than the operand
PROTOTYPE:
  UINT128 __bid128_nextdown (
    UINT128 x, _IDEC_flags *pfpsf);
FLOATING-POINT EXCEPTIONS: I

FUNCTION: Returns the next 128-bit decimal floating-point number that neighbors
  the first operand in the direction toward the second operand
PROTOTYPE:
  UINT128 __bid128_nextafter (
    UINT128 x, UINT128 y, _IDEC_flags *pfpsf);
FLOATING-POINT EXCEPTIONS: P, U, O, I

FUNCTION: Returns the canonicalized floating-point number x if x < y,
  y if y < x, the canonicalized floating-point number if one operand is
  a floating-point number and the other a quiet NaN. Otherwise it is
  either x or y, canonicalized.
PROTOTYPE:
  UINT64 __bid64_minnum (
    UINT64 x, UINT64 y, _IDEC_flags *pfpsf);
FLOATING-POINT EXCEPTIONS: I

FUNCTION: Returns the canonicalized floating-point number x if |x| < |y|,
  y if |y| < |x|, otherwise this function is identical to __bid64_minnum
PROTOTYPE:
  UINT64 __bid64_minnum_mag (
    UINT64 x, UINT64 y, _IDEC_flags *pfpsf);
FLOATING-POINT EXCEPTIONS: I

FUNCTION: Returns the canonicalized floating-point number y if x < y,
  x if y < x, the canonicalized floating-point number if one operand is a
  floating-point number and the other a quiet NaN.  Otherwise it is either x
  or y, canonicalized.
PROTOTYPE:
  UINT64 __bid64_maxnum (
    UINT64 x, UINT64 y, _IDEC_flags *pfpsf);
FLOATING-POINT EXCEPTIONS: I

FUNCTION: Returns the canonicalized floating-point number x if |x| > |y|,
  y if |y| > |x|, otherwise this function is identical to __bid64_maxnum
PROTOTYPE:
  UINT64 __bid64_maxnum_mag (
    UINT64 x, UINT64 y, _IDEC_flags *pfpsf);
FLOATING-POINT EXCEPTIONS: I

FUNCTION: Returns the canonicalized floating-point number x if x < y,
  y if y < x, the canonicalized floating-point number if one operand is
  a floating-point number and the other a quiet NaN. Otherwise it is    either x or y, canonicalized.
PROTOTYPE:
  UINT128 __bid128_minnum (
    UINT128 x, UINT128 y, _IDEC_flags *pfpsf);
FLOATING-POINT EXCEPTIONS: I

FUNCTION: Returns the canonicalized floating-point number x if |x| < |y|,
  y if |y| < |x|, otherwise this function is identical to __bid128_minnum
PROTOTYPE:
  UINT128 __bid128_minnum_mag (
    UINT128 x, UINT128 y, _IDEC_flags *pfpsf);
FLOATING-POINT EXCEPTIONS: I

FUNCTION: Returns the canonicalized floating-point number y if x < y,
  x if y < x, the canonicalized floating-point number if one operand is a
  floating-point number and the other a quiet NaN.  Otherwise it is either x
  or y, canonicalized.
PROTOTYPE:
  UINT128 __bid128_maxnum (
    UINT128 x, UINT128 y, _IDEC_flags *pfpsf);
FLOATING-POINT EXCEPTIONS: I

FUNCTION: Returns the canonicalized floating-point number x if |x| > |y|,
  y if |y| > |x|, otherwise this function is identical to __bid128_maxnum
PROTOTYPE:
  UINT128 __bid128_maxnum_mag (
    UINT128 x, UINT128 y, _IDEC_flags *pfpsf);
FLOATING-POINT EXCEPTIONS: I

FUNCTION: Convert 32-bit signed integer to 64-bit decimal floating-point number
PROTOTYPE:
  UINT64 __bid64_from_int32 (
    int x);
FLOATING-POINT EXCEPTIONS: none

FUNCTION: Convert 32-bit unsigned integer to 64-bit decimal floating-point
  number
PROTOTYPE:
  UINT64 __bid64_from_uint32 (
    unsigned int x);
FLOATING-POINT EXCEPTIONS: none

FUNCTION: Convert 64-bit signed integer to 64-bit decimal floating-point number
PROTOTYPE:
  UINT64 __bid64_from_int64 (
    SINT64 x, _IDEC_round rnd_mode, _IDEC_flags *pfpsf);
FLOATING-POINT EXCEPTIONS: P

FUNCTION: Convert 64-bit unsigned integer to 64-bit decimal floating-point
  number
PROTOTYPE:
  UINT64 __bid64_from_uint64 (
    UINT64, _IDEC_round rnd_mode, _IDEC_flags *pfpsf);
FLOATING-POINT EXCEPTIONS: P

FUNCTION: Convert 32-bit signed integer to 128-bit decimal floating-point number
PROTOTYPE:
  UINT128 __bid128_from_int32 (
    int x);
FLOATING-POINT EXCEPTIONS: none

FUNCTION: Convert 32-bit unsigned integer to 128-bit decimal floating-point
  number
PROTOTYPE:
  UINT128 __bid128_from_uint32 (
    unsigned int x);
FLOATING-POINT EXCEPTIONS: none

FUNCTION: Convert 64-bit signed integer to 128-bit decimal floating-point number
PROTOTYPE:
  UINT128 __bid128_from_int64 (
    SINT64 x);
FLOATING-POINT EXCEPTIONS: none

FUNCTION: Convert 64-bit unsigned integer to 128-bit decimal floating-point
  number
PROTOTYPE:
  UINT128 __bid128_from_uint64 (
    UINT64 x);
FLOATING-POINT EXCEPTIONS: none

FUNCTION: Return true if and only if x has negative sign
PROTOTYPE:
  int __bid64_isSigned (
    UINT64 x);
FLOATING-POINT EXCEPTIONS: none

FUNCTION: Return true if and only if x is normal (not zero, subnormal,
  infinite, or NaN)
PROTOTYPE:
  int __bid64_isNormal (
    UINT64 x);
FLOATING-POINT EXCEPTIONS: none

FUNCTION: Return true if and only if x is subnormal
PROTOTYPE:
  int __bid64_isSubnormal (
    UINT64 x);
FLOATING-POINT EXCEPTIONS: none

FUNCTION: Return true if and only if x is zero, subnormal or normal
  (not infinite or NaN)
PROTOTYPE:
  int __bid64_isFinite (
    UINT64 x);
FLOATING-POINT EXCEPTIONS: none

FUNCTION: Return true if and only if x is +0 or -0
PROTOTYPE:
  int __bid64_isZero (
    UINT64 x);
FLOATING-POINT EXCEPTIONS: none

FUNCTION: Return true if and only if x is infinite
PROTOTYPE:
  int __bid64_isInf (
    UINT64 x);
FLOATING-POINT EXCEPTIONS: none

FUNCTION: Return true if and only if x is a signaling NaN
PROTOTYPE:
  int __bid64_isSignaling (
    UINT64 x);
FLOATING-POINT EXCEPTIONS: none

FUNCTION: Return true if and only if x is a finite number, infinity, or
  NaN that is canonical.
PROTOTYPE:
  int __bid64_isCanonical (
    UINT64 x);
FLOATING-POINT EXCEPTIONS: none

FUNCTION: Return true if and only if x is a NaN
PROTOTYPE:
  int __bid64_isNaN (
    UINT64 x);
FLOATING-POINT EXCEPTIONS: none

FUNCTION: Copies a decimal floating-point operand x to a destination in the
  same format, with no change
PROTOTYPE:
  UINT64 __bid64_copy (
    UINT64 x);
FLOATING-POINT EXCEPTIONS: none

FUNCTION: Copies a 64-bit decimal floating-point operand x to a destination
  in the same format, reversing the sign
PROTOTYPE:
  UINT64 __bid64_negate (
    UINT64 x);
FLOATING-POINT EXCEPTIONS: none

FUNCTION: Copies a 64-bit decimal floating-point operand x to a destination
  in the same format, changing the sign to positive
PROTOTYPE:
  UINT64 __bid64_abs (
    UINT64 x);
FLOATING-POINT EXCEPTIONS: none

FUNCTION: Copies a 64-bit decimal floating-point operand x to a destination
  in the same format as x, but with the sign of y
PROTOTYPE:
  UINT64 __bid64_copySign (
    UINT64 x, UINT64 y);
FLOATING-POINT EXCEPTIONS: none

FUNCTION: Tells which of the following ten classes x falls into (details in
  the IEEE Standard 754-2008): signalingNaN, quietNaN, negativeInfinity,
  negativeNormal, negativeSubnormal, negativeZero, positiveZero,
  positiveSubnormal, positiveNormal, positiveInfinity
PROTOTYPE:
  int __bid64_class (
    UINT64 x);
FLOATING-POINT EXCEPTIONS: none

FUNCTION: sameQuantum(x, y) is true if the exponents of x and y are the same,
  and false otherwise; sameQuantum(NaN, NaN) and sameQuantum(inf, inf) are
  true; if exactly one operand is infinite or exactly one operand is NaN,
  sameQuantum is false
PROTOTYPE:
  int __bid64_sameQuantum (
    UINT64 x, UINT64 y);
FLOATING-POINT EXCEPTIONS: none

FUNCTION: Return true if x and y are ordered (see the IEEE Standard 754-2008)
PROTOTYPE:
  int __bid64_totalOrder (
    UINT64 x, UINT64 y);
FLOATING-POINT EXCEPTIONS: none

FUNCTION: Return true if the absolute values of x and y are ordered
  (see the IEEE Standard 754-2008)
PROTOTYPE:
  int __bid64_totalOrderMag (
    UINT64 x, UINT64 y);
FLOATING-POINT EXCEPTIONS: none

FUNCTION: Return the radix b of the format of x, 2 or 10
PROTOTYPE:
  int __bid64_radix (
    UINT64 x);
FLOATING-POINT EXCEPTIONS: none

FUNCTION: Return true if and only if x has negative sign
PROTOTYPE:
  int __bid128_isSigned (
    UINT128 x);
FLOATING-POINT EXCEPTIONS: none

FUNCTION: Return true if and only if x is normal (not zero, subnormal,
  infinite, or NaN)
PROTOTYPE:
  int __bid128_isNormal (
    UINT128 x);
FLOATING-POINT EXCEPTIONS: none

FUNCTION: Return true if and only if x is subnormal
PROTOTYPE:
  int __bid128_isSubnormal (
    UINT128 x);
FLOATING-POINT EXCEPTIONS: none

FUNCTION: Return true if and only if x is zero, subnormal or normal
  (not infinite or NaN)
PROTOTYPE:
  int __bid128_isFinite (
    UINT128 x);
FLOATING-POINT EXCEPTIONS: none

FUNCTION: Return true if and only if x is +0 or -0
PROTOTYPE:
  int __bid128_isZero (
    UINT128 x);
FLOATING-POINT EXCEPTIONS: none

FUNCTION: Return true if and only if x is infinite
PROTOTYPE:
  int __bid128_isInf (
    UINT128 x);
FLOATING-POINT EXCEPTIONS: none

FUNCTION: Return true if and only if x is a signaling NaN
PROTOTYPE:
  int __bid128_isSignaling (
    UINT128 x);
FLOATING-POINT EXCEPTIONS: none

FUNCTION: Return Return true if and only if x is a finite number, infinity, or    NaN that is canonical.
PROTOTYPE:
  int __bid128_isCanonical (
    UINT128 x);
FLOATING-POINT EXCEPTIONS: none

FUNCTION: Return true if and only if x is a NaN
PROTOTYPE:
  int __bid128_isNaN (
    UINT128 x);
FLOATING-POINT EXCEPTIONS: none

FUNCTION: Copies a decimal floating-point operand x to a destination in the    same format, with no change
PROTOTYPE:
  UINT128 __bid128_copy (
    UINT128 x);
FLOATING-POINT EXCEPTIONS: none

FUNCTION: Copies a 128-bit decimal floating-point operand x to a destination
  in the same format, reversing the sign
PROTOTYPE:
  UINT128 __bid128_negate (
    UINT128 x);
FLOATING-POINT EXCEPTIONS: none

FUNCTION: Copies a 128-bit decimal floating-point operand x to a destination
  in the same format, changing the sign to positive
PROTOTYPE:
  UINT128 __bid128_abs (
    UINT128 x);
FLOATING-POINT EXCEPTIONS: none

FUNCTION: Copies a 128-bit decimal floating-point operand x to a destination
  in the  same format as x, but with the sign of y
PROTOTYPE:
  UINT128 __bid128_copySign (
    UINT128 x, UINT128 y);
FLOATING-POINT EXCEPTIONS: none

FUNCTION: Tells which of the following ten classes x falls into (details in
  the IEEE Standard 754-2008): signalingNaN, quietNaN, negativeInfinity,
  negativeNormal, negativeSubnormal, negativeZero, positiveZero,
  positiveSubnormal, positiveNormal, positiveInfinity
PROTOTYPE:
  int __bid128_class (
    UINT128 x);
FLOATING-POINT EXCEPTIONS: none

FUNCTION: sameQuantum(x, y) returns true if the exponents of x and y are the same,
  and false otherwise; sameQuantum(NaN, NaN) and sameQuantum(inf, inf) are
  true; if exactly one operand is infinite or exactly one operand is NaN,
  sameQuantum is false
PROTOTYPE:
  int __bid128_sameQuantum (
    UINT128 x, UINT128 y);
FLOATING-POINT EXCEPTIONS: none

FUNCTION: Return true if x and y are ordered (see the IEEE Standard 754-2008)
PROTOTYPE:
  int __bid128_totalOrder (
    UINT128 x, UINT128 y);
FLOATING-POINT EXCEPTIONS: none

FUNCTION: Return true if the absolute values of x and y are ordered
  (see the IEEE Standard 754-2008)
PROTOTYPE:
  int __bid128_totalOrderMag (
    UINT128 x, UINT128 y);
FLOATING-POINT EXCEPTIONS: none

FUNCTION: Return the radix b of the format of x, 2 or 10
PROTOTYPE:
  int __bid128_radix (
    UINT128 x);
FLOATING-POINT EXCEPTIONS: none

FUNCTION: Decimal floating-point remainder
PROTOTYPE:
  UINT64 __bid64_rem (
    UINT64 x, UINT64 y, _IDEC_flags *pfpsf);
FLOATING-POINT EXCEPTIONS: I

FUNCTION: Returns the exponent e of x, a signed integral value, determined
  as though x were represented with infinite range and minimum exponent
PROTOTYPE:
  UINT64 __bid64_ilogb (
    UINT64 x, _IDEC_flags *pfpsf);
FLOATING-POINT EXCEPTIONS: Z, I

FUNCTION: Returns x * 10^N
PROTOTYPE:
  UINT64 __bid64_scalbn (
    UINT64 x, int n, _IDEC_round rnd_mode, _IDEC_flags *pfpsf);
FLOATING-POINT EXCEPTIONS: I

FUNCTION: Decimal floating-point remainder
PROTOTYPE:
  UINT128 __bid128_rem (
    UINT128 x, UINT128 y, _IDEC_flags *pfpsf);
FLOATING-POINT EXCEPTIONS: I

FUNCTION: Returns the exponent e of x, a signed integral value, determined
  as though x were represented with infinite range and minimum exponent
PROTOTYPE:
  UINT128 __bid128_ilogb (
    UINT128 x, _IDEC_flags *pfpsf);
FLOATING-POINT EXCEPTIONS: Z, I

FUNCTION: Returns x * 10^N
PROTOTYPE:
  UINT128 __bid128_scalbn (
    UINT128 x, int n, _IDEC_round rnd_mode, _IDEC_flags *pfpsf);
FLOATING-POINT EXCEPTIONS: I

FUNCTION: Convert 32-bit decimal floating-point value to 64-bit decimal
  floating-point format (binary encoding)
PROTOTYPE:
  UINT64 __bid32_to_bid64 (
    UINT32 x, _IDEC_flags *pfpsf);
FLOATING-POINT EXCEPTIONS: I

FUNCTION: Convert 32-bit decimal floating-point value to 128-bit decimal
  floating-point format (binary encoding)
PROTOTYPE:
  UINT128 __bid32_to_bid128 (
    UINT32 x, _IDEC_flags *pfpsf);
FLOATING-POINT EXCEPTIONS: I

FUNCTION: Convert 64-bit decimal floating-point value to 128-bit decimal
  floating-point format (binary encoding)
PROTOTYPE:
  UINT128 __bid64_to_bid128 (
    UINT64 x, _IDEC_flags *pfpsf);
FLOATING-POINT EXCEPTIONS: I

FUNCTION: Convert 64-bit decimal floating-point value to 32-bit decimal
  floating-point format (binary encoding)
PROTOTYPE:
  UINT32 __bid64_to_bid32 (
    UINT64 x, _IDEC_round rnd_mode, _IDEC_flags *pfpsf);
FLOATING-POINT EXCEPTIONS: P, U, I

FUNCTION: Convert 128-bit decimal floating-point value to 32-bit decimal
  floating-point format (binary encoding)
PROTOTYPE:
  UINT32 __bid128_to_bid32 (
    UINT128 x, _IDEC_round rnd_mode, _IDEC_flags *pfpsf);
FLOATING-POINT EXCEPTIONS: P, U, I

FUNCTION: Convert 128-bit decimal floating-point value to 64-bit decimal
  floating-point format (binary encoding)
PROTOTYPE:
  UINT64 __bid128_to_bid64 (
    UINT128 x, _IDEC_round rnd_mode, _IDEC_flags *pfpsf);
FLOATING-POINT EXCEPTIONS: P, U, I

FUNCTION: Convert 64-bit decimal floating-point value (binary encoding)
  to string format (decimal character sequence)
PROTOTYPE:
  void __bid64_to_string (
    char *ps, UINT64 x, _IDEC_flags *pfpsf);
FLOATING-POINT EXCEPTIONS: none

FUNCTION: Convert a decimal floating-point value represented in string format
  (decimal character sequence) to 64-bit decimal floating-point format
  (binary encoding)
PROTOTYPE:
  UINT64 __bid64_from_string (
    char *ps, _IDEC_round rnd_mode, _IDEC_flags *pfpsf);
FLOATING-POINT EXCEPTIONS: P, U, O

FUNCTION: Convert 128-bit decimal floating-point value (binary encoding)
  to string format (decimal character sequence)
PROTOTYPE:
  void __bid128_to_string (
    char *str, UINT128 x, _IDEC_flags *pfpsf);
FLOATING-POINT EXCEPTIONS: none

FUNCTION: Convert a decimal floating-point value represented in string format
  (decimal character sequence) to 128-bit decimal floating-point format
  (binary encoding)
PROTOTYPE:
  UINT128 __bid128_from_string (
    char *ps, _IDEC_round rnd_mode, _IDEC_flags *pfpsf);
FLOATING-POINT EXCEPTIONS: P, U, O

FUNCTION: Quantize(x, y) is a floating-point number in the same format that
  has, if possible, the same numerical value as x and the same quantum
  (unit-in-the-last-place) as y. If the exponent is being increased, rounding
  according to the prevailing rounding-direction mode might occur: the result
  is a different floating-point representation and inexact is signaled if the
  result does not have the same numerical value as x. If the exponent is being
  decreased and the significand of the result would have more than 16 digits,
  invalid is signaled and the result is NaN. If one or both operands are NaN
  the rules for NaNs are followed. Otherwise if only one operand is
  infinite then invalid is signaled and the result is NaN. If both operands
  are infinite then the result is canonical infinity with the sign of x
PROTOTYPE:
  UINT64 __bid64_quantize (
    UINT64 x, UINT64 y, _IDEC_round rnd_mode, _IDEC_flags *pfpsf);
FLOATING-POINT EXCEPTIONS: P, I

FUNCTION: Quantize(x, y) is a floating-point number in the same format that
  has, if possible, the same numerical value as x and the same quantum
  (unit-in-the-last-place) as y. If the exponent is being increased, rounding
  according to the prevailing rounding-direction mode might occur: the result
  is a different floating-point representation and inexact is signaled if the
  result does not have the same numerical value as x. If the exponent is being
  decreased and the significand of the result would have more than 34 digits,
  invalid is signaled and the result is NaN. If one or both operands are NaN
  the rules for NaNs are followed. Otherwise if only one operand is
  infinite then invalid is signaled and the result is NaN. If both operands
  are infinite then the result is canonical infinity with the sign of x
PROTOTYPE:
  UINT128 __bid128_quantize (
    UINT128 x, UINT128 y, _IDEC_round rnd_mode, _IDEC_flags *pfpsf);
FLOATING-POINT EXCEPTIONS: P, I

FUNCTION: Convert 128-bit binary floating-point value to 32-bit decimal
  floating-point format (binary encoding)
PROTOTYPE:
  UINT32 __binary128_to_bid32 (
    BINARY128 x, _IDEC_round rnd_mode, _IDEC_flags *pfpsf);
FLOATING-POINT EXCEPTIONS: P, U, O, I

FUNCTION: Convert 128-bit binary floating-point value to 64-bit decimal
  floating-point format (binary encoding)
PROTOTYPE:
  UINT64 __binary128_to_bid64 (
                  BINARY128 x, _IDEC_round rnd_mode, _IDEC_flags *pfpsf);
FLOATING-POINT EXCEPTIONS: P, U, O, I

FUNCTION: Convert 128-bit binary floating-point value to 128-bit decimal
  floating-point format (binary encoding)
PROTOTYPE:
  UINT128 __binary128_to_bid128 (
    BINARY128 x, _IDEC_round rnd_mode, _IDEC_flags *pfpsf);
FLOATING-POINT EXCEPTIONS: P, I

FUNCTION: Convert 64-bit binary floating-point value to 32-bit decimal
  floating-point format (binary encoding)
PROTOTYPE:
  UINT32 __binary64_to_bid32 (
    double x, _IDEC_round rnd_mode, _IDEC_flags *pfpsf);
FLOATING-POINT EXCEPTIONS: P, U, O, I

FUNCTION: Convert 64-bit binary floating-point value to 64-bit decimal
  floating-point format (binary encoding)
PROTOTYPE:
  UINT64 __binary64_to_bid64 (
    double x, _IDEC_round rnd_mode, _IDEC_flags *pfpsf);
FLOATING-POINT EXCEPTIONS: P, I

FUNCTION: Convert 64-bit binary floating-point value to 128-bit decimal
  floating-point format (binary encoding)
PROTOTYPE:
  UINT128 __binary64_to_bid128 (
    double x, _IDEC_round rnd_mode, _IDEC_flags *pfpsf);
FLOATING-POINT EXCEPTIONS: P, I

FUNCTION: Convert 80-bit binary floating-point value to 32-bit decimal
  floating-point format (binary encoding)
PROTOTYPE:
  UINT32 __binary80_to_bid32 (
    BINARY80 x, _IDEC_round rnd_mode, _IDEC_flags *pfpsf);
FLOATING-POINT EXCEPTIONS: P, U, O, I

FUNCTION: Convert 80-bit binary floating-point value to 64-bit decimal
  floating-point format (binary encoding)
PROTOTYPE:
  UINT64 __binary80_to_bid64 (
    BINARY80 x, _IDEC_round rnd_mode, _IDEC_flags *pfpsf);
FLOATING-POINT EXCEPTIONS: P, U, O, I

FUNCTION: Convert 80-bit binary floating-point value to 128-bit decimal
  floating-point format (binary encoding)
PROTOTYPE:
  UINT128 __binary80_to_bid128 (
    BINARY80 x, _IDEC_round rnd_mode, _IDEC_flags *pfpsf);
FLOATING-POINT EXCEPTIONS: P, I

FUNCTION: Convert 32-bit binary floating-point value to 32-bit decimal
  floating-point format (binary encoding)
PROTOTYPE:
  UINT32 __binary32_to_bid32 (
    float x, _IDEC_round rnd_mode, _IDEC_flags *pfpsf);
FLOATING-POINT EXCEPTIONS: P, I

FUNCTION: Convert 32-bit binary floating-point value to 64-bit decimal
  floating-point format (binary encoding)
PROTOTYPE:
  UINT64 __binary32_to_bid64 (
    float x, _IDEC_round rnd_mode, _IDEC_flags *pfpsf);
FLOATING-POINT EXCEPTIONS: P, I

FUNCTION: Convert 32-bit binary floating-point value to 128-bit decimal
  floating-point format (binary encoding)
PROTOTYPE:
  UINT128 __binary32_to_bid128 (
    float x, _IDEC_round rnd_mode, _IDEC_flags *pfpsf);
FLOATING-POINT EXCEPTIONS: P, I

FUNCTION: Convert 128-bit decimal floating-point value (binary encoding)
  to 32-bit binary floating-point format
PROTOTYPE:
  float __bid128_to_binary32 (
    UINT128 x, _IDEC_round rnd_mode, _IDEC_flags *pfpsf);
FLOATING-POINT EXCEPTIONS: P, U, O, I

FUNCTION: Convert 128-bit decimal floating-point value (binary encoding)
  to 64-bit binary floating-point format
PROTOTYPE:
  double __bid128_to_binary64 (
    UINT128 x, _IDEC_round rnd_mode, _IDEC_flags *pfpsf);
FLOATING-POINT EXCEPTIONS: P, U, O, I

FUNCTION: Convert 128-bit decimal floating-point value (binary encoding)
  to 80-bit binary floating-point format
PROTOTYPE:
  BINARY80 __bid128_to_binary80 (
    UINT128 x, _IDEC_round rnd_mode, _IDEC_flags *pfpsf);
FLOATING-POINT EXCEPTIONS: P, U, O, I

FUNCTION: Convert 128-bit decimal floating-point value (binary encoding)
  to 128-bit binary floating-point format
PROTOTYPE:
  BINARY128 __bid128_to_binary128 (
    UINT128 x, _IDEC_round rnd_mode, _IDEC_flags *pfpsf);
FLOATING-POINT EXCEPTIONS: P, U, O, I

FUNCTION: Convert 64-bit decimal floating-point value (binary encoding)
  to 32-bit binary floating-point format
PROTOTYPE:
  float __bid64_to_binary32 (
    UINT64 x, _IDEC_round rnd_mode, _IDEC_flags *pfpsf);
FLOATING-POINT EXCEPTIONS: P, U, O, I

FUNCTION: Convert 64-bit decimal floating-point value (binary encoding)
  to 64-bit binary floating-point format
PROTOTYPE:
  double __bid64_to_binary64 (
    UINT64 x, _IDEC_round rnd_mode, _IDEC_flags *pfpsf);
FLOATING-POINT EXCEPTIONS: P, U, O, I

FUNCTION: Convert 64-bit decimal floating-point value (binary encoding)
  to 80-bit binary floating-point format
PROTOTYPE:
  BINARY80 __bid64_to_binary80 (
    UINT64 x, _IDEC_round rnd_mode, _IDEC_flags *pfpsf);
FLOATING-POINT EXCEPTIONS: P, I

FUNCTION: Convert 64-bit decimal floating-point value (binary encoding)
  to 128-bit binary floating-point format
PROTOTYPE:
  BINARY128 __bid64_to_binary128 (
    UINT64 x, _IDEC_round rnd_mode, _IDEC_flags *pfpsf);
FLOATING-POINT EXCEPTIONS: P, I

FUNCTION: Convert 32-bit decimal floating-point value (binary encoding)
  to 32-bit binary floating-point format
PROTOTYPE:
  float __bid32_to_binary32 (
    UINT32 x, _IDEC_round rnd_mode, _IDEC_flags *pfpsf);
FLOATING-POINT EXCEPTIONS: P, U, O, I

FUNCTION: Convert 32-bit decimal floating-point value (binary encoding)
  to 64-bit binary floating-point format
PROTOTYPE:
  double __bid32_to_binary64 (
    UINT32 x, _IDEC_round rnd_mode, _IDEC_flags *pfpsf);
FLOATING-POINT EXCEPTIONS: P, I

FUNCTION: Convert 32-bit decimal floating-point value (binary encoding)
  to 80-bit binary floating-point format
PROTOTYPE:
  BINARY80 __bid32_to_binary80 (
    UINT32 x, _IDEC_round rnd_mode, _IDEC_flags *pfpsf);
FLOATING-POINT EXCEPTIONS: P, I

FUNCTION: Convert 32-bit decimal floating-point value (binary encoding)
  to 128-bit binary floating-point format
PROTOTYPE:
  BINARY128 __bid32_to_binary128 (
    UINT32 x, _IDEC_round rnd_mode, _IDEC_flags *pfpsf);
FLOATING-POINT EXCEPTIONS: P, I

FUNCTION: Return true if and only if this programming environment conforms
  to the 1985 version of the standard
PROTOTYPE:
  int __bid_is754 (
    void);
FLOATING-POINT EXCEPTIONS: none

FUNCTION: Return true if and only if this programming environment conforms
  to the revised version of the standard
PROTOTYPE:
  int __bid_is754R (
    void);
FLOATING-POINT EXCEPTIONS: none

FUNCTION: Signals the exceptions specified in the flagmask operand, which
  can represent any subset of the exceptions
PROTOTYPE:
  void __bid_signalException (
    _IDEC_flags flagsmask, _IDEC_flags *pfpsf);
FLOATING-POINT EXCEPTIONS: P, U, O, Z, I

FUNCTION: Lowers (clears) the flags corresponding to the exceptions specified
  in the flagmask operand, which can represent any subset of the exceptions
PROTOTYPE:
  void __bid_lowerFlags (
    _IDEC_flags flagsmask, _IDEC_flags *pfpsf);
FLOATING-POINT EXCEPTIONS: none

FUNCTION: Queries whether any of the flags corresponding to the exceptions
  specified in the flagsmask operand, which can represent any subset of the
  exceptions, are raised
PROTOTYPE:
  _IDEC_flags __bid_testFlags (
    _IDEC_flags flagsmask, _IDEC_flags *pfpsf);
FLOATING-POINT EXCEPTIONS: none

FUNCTION: Queries whether any of the flags in the savedflags operand
  corresponding to the exceptions specified in the flagmask operand, which
  can represent any subset of the exceptions, are raised
PROTOTYPE:
  _IDEC_flags __bid_testSavedFlags (
    _IDEC_flags savedflags, _IDEC_flags flagsmask);
FLOATING-POINT EXCEPTIONS: none
FUNCTION: Restores the flags corresponding to the exceptions specified in the
  flagsmask operand, which can represent any subset of the exceptions, to
  their state represented in the flagsvalues operand
PROTOTYPE:
  void __bid_restoreFlags (
    _IDEC_flags flagsvalues, _IDEC_flags flagsmask, _IDEC_flags *pfpsf);
FLOATING-POINT EXCEPTIONS: none

FUNCTION: Returns a representation of the state of those flags corresponding
  to the exceptions specified in the flagmask operand
PROTOTYPE:
  _IDEC_flags __bid_saveFlags (
    _IDEC_flags flagsmask, _IDEC_flags *pfpsf);
FLOATING-POINT EXCEPTIONS: none

FUNCTION: Gets the prevailing value of the decimal floating-point rounding
  mode. Under constant specification for the rounding mode, it returns
  the constant value. Under dynamic specification for the rounding mode, it
   returns the current value of the dynamic rounding mode variable. Elsewhere,
  the return value is language-defined (and may be unspecified)
PROTOTYPE:
  _IDEC_round __bid_getDecimalRoundingDirection (
    _IDEC_round rnd_mode);
FLOATING-POINT EXCEPTIONS: none

FUNCTION: Sets the value of the dynamic rounding mode variable. The operand
  may be any of the language-defined representations for the default and
  each specific value of the rounding mode. The effect of this operation if
  used outside the static scope of a dynamic specification for the rounding
  mode is language-defined (and may be unspecified)
PROTOTYPE:
  _IDEC_round __bid_setDecimalRoundingDirection (
    _IDEC_round rounding_mode, _IDEC_round rnd_mode);
FLOATING-POINT EXCEPTIONS: none



Functions Added in Release 2.0
____________________________________________

The functions listed below are described in ISO/IEC TR 24732 (a proposed 
extension to the ISO C99 standard).  They are also implemented in the Intel(R) 
Decimal Floating-Point Math Library.  
In general, the maximum ulp error was estimated mathematically to be:
    - below 1 ulp for 32-bit functions
    - below 2 ulps for 64-bit functions
    - below 8 ulps for 128-bit functions
Testing for hundreds of millions of points did not contradict these values. 
A few exceptions exist (notably for the gamma function family):
    - the 32-bit atanh, with measured errors of less than 6 ulps 
    - the 64-bit acosh and atanh, with measured errors of less than 6 ulps
    - the 128-bit sinh, cosh, and erfc, with measured errors of less than 9 ulps
    - the 128-bit tgamma and lgamma functions, whose last 5 digits of the 
      34-digit significand in the result are not reliable
As with the rest of the library, these functions can be built to use a global 
rounding mode and/or global decimal status flags.  Alternatively, they can be 
built to take the rounding mode and a pointer to the status flags as arguments 
(as seen for the functions described in the previous section).
Depending on how the library is built, the arguments and result can be passed 
by value or by reference.

The names used by the implementation differ from the names listed in ISO/IEC 
TR 24732; they are given below (as C comments).   However, the user may easily 
redefine these names by editing the #define statements at the beginning of 
bid_conf.h. 

Below, _Decimal64 stands for BID64;  _Decimal32 stands for BID32 and _Decimal128 
stands for BID128. 

_Decimal64 acosd64(_Decimal64 x);  // library name: __bid64_acos    
_Decimal32 acosd32(_Decimal32 x);  // library name: __bid32_acos
_Decimal128 acosd128(_Decimal128 x);  // library name: __bid128_acos
_Decimal64 asind64(_Decimal64 x);  // library name: __bid64_asin
_Decimal32 asind32(_Decimal32 x);  // library name: __bid32_asin
_Decimal128 asind128(_Decimal128 x);  // library name: __bid128_asin
_Decimal64 atand64(_Decimal64 x);  // library name: __bid64_atan
_Decimal32 atand32(_Decimal32 x);  // library name: __bid32_atan
_Decimal128 atand128(_Decimal128 x);  // library name: __bid128_atan
_Decimal64 atan2d64(_Decimal64 y, _Decimal64 x);  // library name: __bid64_atan2
_Decimal32 atan2d32(_Decimal32 y, _Decimal32 x);  // library name: __bid32_atan2
_Decimal128 atan2d128(_Decimal128 y, _Decimal128 x);  // library name: __bid128_atan2
_Decimal64 cosd64(_Decimal64 x);  // library name: __bid64_cos
_Decimal32 cosd32(_Decimal32 x);  // library name: __bid32_cos
_Decimal128 cosd128(_Decimal128 x);  // library name: __bid128_cos
_Decimal64 sind64(_Decimal64 x);  // library name: __bid64_sin
_Decimal32 sind32(_Decimal32 x);  // library name: __bid32_sin
_Decimal128 sind128(_Decimal128 x);  // library name: __bid128_sin
_Decimal64 tand64(_Decimal64 x);  // library name: __bid64_tan
_Decimal32 tand32(_Decimal32 x);  // library name: __bid32_tan
_Decimal128 tand128(_Decimal128 x);  // library name: __bid128_tan
_Decimal64 acoshd64(_Decimal64 x);  // library name: __bid64_acosh
_Decimal32 acoshd32(_Decimal32 x);  // library name: __bid32_acosh
_Decimal128 acoshd128(_Decimal128 x);  // library name: __bid128_acosh
_Decimal64 asinhd64(_Decimal64 x);  // library name: __bid64_asinh
_Decimal32 asinhd32(_Decimal32 x);  // library name: __bid32_asinh
_Decimal128 asinhd128(_Decimal128 x);  // library name: __bid128_asinh
_Decimal64 atanhd64(_Decimal64 x);  // library name: __bid64_atanh
_Decimal32 atanhd32(_Decimal32 x);  // library name: __bid32_atanh
_Decimal128 atanhd128(_Decimal128 x);  // library name: __bid128_atanh
_Decimal64 coshd64(_Decimal64 x);  // library name: __bid64_cosh
_Decimal32 coshd32(_Decimal32 x);  // library name: __bid32_cosh
_Decimal128 coshd128(_Decimal128 x);  // library name: __bid128_cosh
_Decimal64 sinhd64(_Decimal64 x);  // library name: __bid64_sinh
_Decimal32 sinhd32(_Decimal32 x);  // library name: __bid32_sinh
_Decimal128 sinhd128(_Decimal128 x);  // library name: __bid128_sinh
_Decimal64 tanhd64(_Decimal64 x);  // library name: __bid64_tanh
_Decimal32 tanhd32(_Decimal32 x);  // library name: __bid32_tanh
_Decimal128 tanhd128(_Decimal128 x);  // library name: __bid128_tanh
_Decimal64 expd64(_Decimal64 x);  // library name: __bid64_exp
_Decimal32 expd32(_Decimal32 x);  // library name: __bid32_exp
_Decimal128 expd128(_Decimal128 x);  // library name: __bid128_exp
_Decimal64 exp2d64(_Decimal64 x);  // library name: __bid64_exp2
_Decimal32 exp2d32(_Decimal32 x);  // library name: __bid32_exp2
_Decimal128 exp2d128(_Decimal128 x);  // library name: __bid128_exp2
_Decimal64 expm1d64(_Decimal64 x);  // library name: __bid64_expm1
_Decimal32 expm1d32(_Decimal32 x);  // library name: __bid32_expm1
_Decimal128 expm1d128(_Decimal128 x);  // library name: __bid128_expm1
_Decimal64 frexpd64(_Decimal64 value, int *exp);  // library name: __bid64_frexp
_Decimal32 frexpd32(_Decimal32 value, int *exp);  // library name: __bid32_frexp
_Decimal128 frexpd128(_Decimal128 value, int *exp);  // library name: __bid128_frexp
_Decimal64 ldexpd64(_Decimal64 x, int exp);  // library name: __bid64_ldexp
_Decimal32 ldexpd32(_Decimal32 x, int exp);  // library name: __bid32_ldexp
_Decimal128 ldexpd128(_Decimal128 x, int exp);  // library name: __bid128_ldexp
_Decimal64 logd64(_Decimal64 x);  // library name: __bid64_log
_Decimal32 logd32(_Decimal32 x);  // library name: __bid32_log
_Decimal128 logd128(_Decimal128 x);  // library name: __bid128_log
_Decimal64 log10d64(_Decimal64 x);  // library name: __bid64_log10
_Decimal32 log10d32(_Decimal32 x);  // library name: __bid32_log10
_Decimal128 log10d128(_Decimal128 x);  // library name: __bid128_log10
_Decimal64 log1pd64(_Decimal64 x);  // library name: __bid64_log1p
_Decimal32 log1pd32(_Decimal32 x);  // library name: __bid32_log1p
_Decimal128 log1pd128(_Decimal128 x);  // library name: __bid128_log1p
_Decimal64 log2d64(_Decimal64 x);  // library name: __bid64_log2
_Decimal32 log2d32(_Decimal32 x);  // library name: __bid32_log2
_Decimal128 log2d128(_Decimal128 x);  // library name: __bid128_log2
_Decimal64 modfd64(_Decimal64 value, _Decimal64 *iptr);  // library name: __bid64_modf
_Decimal32 modfd32(_Decimal32 value, _Decimal32 *iptr);  // library name: __bid32_modf
_Decimal128 modfd128(_Decimal128 value, _Decimal128 *iptr);  // library name: __bid128_modf
_Decimal64 scalblnd64(_Decimal64 x, long int n);  // library name: __bid64_scalbln
_Decimal32 scalblnd32(_Decimal32 x, long int n);  // library name: __bid32_scalbln
_Decimal128 scalblnd128(_Decimal128 x, long int n);  // library name: __bid128_scalbln
_Decimal64 cbrtd64(_Decimal64 x);  // library name: __bid64_cbrt
_Decimal32 cbrtd32(_Decimal32 x);  // library name: __bid32_cbrt
_Decimal128 cbrtd128(_Decimal128 x);  // library name: __bid128_cbrt
_Decimal64 fabsd64(_Decimal64 x);  // library name: __bid64_abs
_Decimal32 fabsd32(_Decimal32 x);  // library name: __bid32_abs
_Decimal128 fabsd128(_Decimal128 x);  // library name: __bid128_abs
_Decimal64 hypotd64(_Decimal64 x, _Decimal64 y);  // library name: __bid64_hypot
_Decimal32 hypotd32(_Decimal32 x, _Decimal32 y);  // library name: __bid32_hypot
_Decimal128 hypotd128(_Decimal128 x, _Decimal128 y);  // library name: __bid128_hypot
_Decimal64 powd64(_Decimal64 x, _Decimal64 y);  // library name: __bid64_pow
_Decimal32 powd32(_Decimal32 x, _Decimal32 y);  // library name: __bid32_pow
_Decimal128 powd128(_Decimal128 x, _Decimal128 y);  // library name: __bid128_pow
_Decimal64 erfd64(_Decimal64 x);  // library name: __bid64_erf
_Decimal32 erfd32(_Decimal32 x);  // library name: __bid32_erf
_Decimal128 erfd128(_Decimal128 x);  // library name: __bid128_erf
_Decimal64 erfcd64(_Decimal64 x);  // library name: __bid64_erfc
_Decimal32 erfcd32(_Decimal32 x);  // library name: __bid32_erfc
_Decimal128 erfcd128(_Decimal128 x);  // library name: __bid128_erfc
_Decimal64 lgammad64(_Decimal64 x);  // library name: __bid64_lgamma
_Decimal32 lgammad32(_Decimal32 x);  // library name: __bid32_lgamma
_Decimal128 lgammad128(_Decimal128 x);  // library name: __bid128_lgamma
_Decimal64 tgammad64(_Decimal64 x);  // library name: __bid64_tgamma
_Decimal32 tgammad32(_Decimal32 x);  // library name: __bid32_tgamma
_Decimal128 tgammad128(_Decimal128 x);  // library name: __bid128_tgamma
_Decimal64 ceild64(_Decimal64 x);  // library name: __bid64_ceil
_Decimal32 ceild32(_Decimal32 x);  // library name: __bid32_ceil
_Decimal128 ceild128(_Decimal128 x);  // library name: __bid128_ceil
_Decimal64 floord64(_Decimal64 x);  // library name: __bid64_floor
_Decimal32 floord32(_Decimal32 x);  // library name: __bid32_floor
_Decimal128 floord128(_Decimal128 x);  // library name: __bid128_floor
_Decimal64 nearbyintd64(_Decimal64 x);  // library name: __bid64_nearbyint
_Decimal32 nearbyintd32(_Decimal32 x);  // library name: __bid32_nearbyint
_Decimal128 nearbyintd128(_Decimal128 x);  // library name: __bid128_nearbyint
long int lrintd64(_Decimal64 x);  // library name: __bid64_lrint
long int lrintd32(_Decimal32 x);  // library name: __bid32_lrint
long int lrintd128(_Decimal128 x);  // library name: __bid128_lrint
long long int llrintd64(_Decimal64 x);  // library name: __bid64_llrint
long long int llrintd32(_Decimal32 x);  // library name: __bid32_llrint
long long int llrintd128(_Decimal128 x);  // library name: __bid128_llrint
long int lroundd64(_Decimal64 x);  // library name: __bid64_lround
long int lroundd32(_Decimal32 x);  // library name: __bid32_lround
long int lroundd128(_Decimal128 x);  // library name: __bid128_lround
long long int llroundd64(_Decimal64 x);  // library name: __bid64_llround
long long int llroundd32(_Decimal32 x);  // library name: __bid32_llround
long long int llroundd128(_Decimal128 x);  // library name: __bid128_llround
_Decimal64 nexttowardd64(_Decimal64 x, _Decimal128 y);  // library name: __bid64_nexttoward
_Decimal32 nexttowardd32(_Decimal32 x, _Decimal128 y);  // library name: __bid32_nexttoward
_Decimal128 nexttowardd128(_Decimal128 x, _Decimal128 y);  // library name: __bid128_nexttoward
_Decimal64 fdimd64(_Decimal64 x, _Decimal64 y);  // library name: __bid64_fdim
_Decimal32 fdimd32(_Decimal32 x, _Decimal32 y);  // library name: __bid32_fdim
_Decimal128 fdimd128(_Decimal128 x, _Decimal128 y);  // library name: __bid128_fdim
int samequantumd64 (_Decimal64 __x, _Decimal64 __y); // library name: __bid64_sameQuantum
int samequantumd32 (_Decimal32 __x, _Decimal32 __y); // library name: __bid32_sameQuantum
int samequantumd128 (_Decimal128 __x, _Decimal128 __y); // library name: __bid128_sameQuantum


Calling Transcendental Functions
_________________________________

Transcendental function prototypes are similar to those of the basic decimal
functions, so they are called in a similar manner.
All function prototypes can be found in bid_functions.h.

As an example, consider the following code from bid_functions.h (also consult
bid_conf.h, where the user can rename functions via #define directives):
#if DECIMAL_CALL_BY_REFERENCE
....
     BID_EXTERN_C void bid64_exp (BID_UINT64 * pres, BID_UINT64 * px
                            _RND_MODE_PARAM _EXC_FLAGS_PARAM
                            _EXC_MASKS_PARAM _EXC_INFO_PARAM);
....
     BID_EXTERN_C void bid128_pow (BID_UINT128 * pres, BID_UINT128 * px, BID_UINT128 * py
                            _RND_MODE_PARAM _EXC_FLAGS_PARAM
                            _EXC_MASKS_PARAM _EXC_INFO_PARAM);
....
#else
....
     BID_EXTERN_C BID_UINT64 bid64_exp (BID_UINT64 x
                              _RND_MODE_PARAM _EXC_FLAGS_PARAM
                              _EXC_MASKS_PARAM _EXC_INFO_PARAM);
....
     BID_EXTERN_C BID_UINT128 bid128_pow (BID_UINT128 x, BID_UINT128 y
                              _RND_MODE_PARAM _EXC_FLAGS_PARAM
                              _EXC_MASKS_PARAM _EXC_INFO_PARAM);
....
#endif

Consider also the following code from bid_conf.h:
....  #define bid64_exp         __bid64_exp
....
#define bid128_pow        __bid128_pow
...

The code examples provided with this package (in the EXAMPLES directory) 
show how to call __bid128_mul(), and can be followed for transcendental 
functions as well.

Here are two simple examples, to compute z=bid128_pow(x,y) and b=bid64_exp(a):

  Decimal128 x, y, z;
  Decimal64 a, b;

  // The user must initialize input arguments x, y, a

  // Call sequences, assuming the library is built using:
  //  DECIMAL_CALL_BY_REFERENCE=1 (arguments passed by reference) 
  //  DECIMAL_GLOBAL_ROUNDING=0 (rounding mode passed as argument to function)
  //  DECIMAL_GLOBAL_EXCEPTION_FLAGS=0 (status flags passed as argument)
  // Need to declare and initialize rounding mode and status flags variables
  _IDEC_round my_rnd_mode = _IDEC_dflround;
  _IDEC_flags my_fpsf = _IDEC_allflagsclear;
  .....
  __bid128_pow (&z, &x, &y, &my_rnd_mode, &my_fpsf);
  __bid64_exp (&b, &a, &my_rnd_mode, &my_fpsf);

  // Call sequences, assuming the library is built using:
  //  DECIMAL_CALL_BY_REFERENCE=0 (arguments passed by value) 
  //  DECIMAL_GLOBAL_ROUNDING=1 (rounding mode stored in global variable)
  //  DECIMAL_GLOBAL_EXCEPTION_FLAGS=1 (status flags stored in global variable)
  z = __bid128_pow (x, y);
  b = __bid64_exp (a);

  For more details, including how to access the global rounding mode and 
status flags variables and how to call decimal functions when the library is 
built using any of the 8 combinations specified by DECIMAL_CALL_BY_REFERENCE, 
DECIMAL_GLOBAL_ROUNDING, and DECIMAL_GLOBAL_EXCEPTION_FLAGS, please see the 
EXAMPLES directory.


Footnotes:
==========
* BID stands for Binary Integer Decimal, which is an informal name for
the binary encoding format of decimal floating-point values, described in the
IEEE Standard 754-2008.

** Other names and brands may be claimed as the property of others.

*** Microsoft, Windows, and the Windows logo are trademarks, or registered
trademarks of Microsoft Corporation in the United States and/or other countries


Note 1:
=======
  Functions operating on the BID32 format are implemented, but some are not 
  listed here (for example bid32_add). See the prototypes in 
  LIBRARY/src/bid_functions.h for a complete list of the library functions.

Note 2:
=======
  UNCHANGED_BINARY_STATUS_FLAGS allows for prevention of binary flag pollution