]>
Commit | Line | Data |
---|---|---|
b2a00c89 L |
1 | /* Copyright (C) 2007 Free Software Foundation, Inc. |
2 | ||
3 | This file is part of GCC. | |
4 | ||
5 | GCC is free software; you can redistribute it and/or modify it under | |
6 | the terms of the GNU General Public License as published by the Free | |
7 | Software Foundation; either version 2, or (at your option) any later | |
8 | version. | |
9 | ||
10 | In addition to the permissions in the GNU General Public License, the | |
11 | Free Software Foundation gives you unlimited permission to link the | |
12 | compiled version of this file into combinations with other programs, | |
13 | and to distribute those combinations without any restriction coming | |
14 | from the use of this file. (The General Public License restrictions | |
15 | do apply in other respects; for example, they cover modification of | |
16 | the file, and distribution when not linked into a combine | |
17 | executable.) | |
18 | ||
19 | GCC is distributed in the hope that it will be useful, but WITHOUT ANY | |
20 | WARRANTY; without even the implied warranty of MERCHANTABILITY or | |
21 | FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License | |
22 | for more details. | |
23 | ||
24 | You should have received a copy of the GNU General Public License | |
25 | along with GCC; see the file COPYING. If not, write to the Free | |
26 | Software Foundation, 51 Franklin Street, Fifth Floor, Boston, MA | |
27 | 02110-1301, USA. */ | |
28 | ||
29 | #include "bid_internal.h" | |
30 | ||
31 | #define SIZE_MASK 0xffff0000 | |
32 | #define INVALID_RESULT 0x8000 | |
33 | ||
34 | BID_TO_SMALL_UINT_CVT_FUNCTION (unsigned short, bid64_to_uint16_rnint, | |
35 | UINT64, x, bid64_to_uint32_rnint, | |
36 | unsigned int, SIZE_MASK, INVALID_RESULT) | |
37 | ||
38 | BID_TO_SMALL_UINT_CVT_FUNCTION (unsigned short, bid64_to_uint16_xrnint, | |
39 | UINT64, x, bid64_to_uint32_xrnint, | |
40 | unsigned int, SIZE_MASK, INVALID_RESULT) | |
41 | ||
42 | BID_TO_SMALL_UINT_CVT_FUNCTION (unsigned short, bid64_to_uint16_rninta, | |
43 | UINT64, x, bid64_to_uint32_rninta, | |
44 | unsigned int, SIZE_MASK, INVALID_RESULT) | |
45 | ||
46 | BID_TO_SMALL_UINT_CVT_FUNCTION (unsigned short, bid64_to_uint16_xrninta, | |
47 | UINT64, x, bid64_to_uint32_xrninta, | |
48 | unsigned int, SIZE_MASK, INVALID_RESULT) | |
49 | ||
50 | BID_TO_SMALL_UINT_CVT_FUNCTION (unsigned short, bid64_to_uint16_int, | |
51 | UINT64, x, bid64_to_uint32_int, | |
52 | unsigned int, SIZE_MASK, INVALID_RESULT) | |
53 | ||
54 | BID_TO_SMALL_UINT_CVT_FUNCTION (unsigned short, bid64_to_uint16_xint, | |
55 | UINT64, x, bid64_to_uint32_xint, | |
56 | unsigned int, SIZE_MASK, INVALID_RESULT) | |
57 | ||
58 | BID_TO_SMALL_UINT_CVT_FUNCTION (unsigned short, bid64_to_uint16_floor, | |
59 | UINT64, x, bid64_to_uint32_floor, | |
60 | unsigned int, SIZE_MASK, INVALID_RESULT) | |
61 | ||
62 | BID_TO_SMALL_UINT_CVT_FUNCTION (unsigned short, bid64_to_uint16_ceil, | |
63 | UINT64, x, bid64_to_uint32_ceil, | |
64 | unsigned int, SIZE_MASK, INVALID_RESULT) | |
65 | ||
66 | BID_TO_SMALL_UINT_CVT_FUNCTION (unsigned short, bid64_to_uint16_xfloor, | |
67 | UINT64, x, bid64_to_uint32_xfloor, | |
68 | unsigned int, SIZE_MASK, INVALID_RESULT) | |
69 | ||
70 | BID_TO_SMALL_UINT_CVT_FUNCTION (unsigned short, bid64_to_uint16_xceil, | |
71 | UINT64, x, bid64_to_uint32_xceil, | |
72 | unsigned int, SIZE_MASK, INVALID_RESULT) |