]>
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 0xffffff80 | |
32 | #define INVALID_RESULT 0x80 | |
33 | ||
34 | ||
35 | ||
36 | BID_TO_SMALL_INT_CVT_FUNCTION (char, bid64_to_int8_rnint, UINT64, x, | |
37 | bid64_to_int32_rnint, int, SIZE_MASK, | |
38 | INVALID_RESULT) | |
39 | ||
40 | BID_TO_SMALL_INT_CVT_FUNCTION (char, bid64_to_int8_xrnint, UINT64, x, | |
41 | bid64_to_int32_xrnint, int, SIZE_MASK, | |
42 | INVALID_RESULT) | |
43 | ||
44 | BID_TO_SMALL_INT_CVT_FUNCTION (char, bid64_to_int8_rninta, UINT64, x, | |
45 | bid64_to_int32_rninta, int, SIZE_MASK, | |
46 | INVALID_RESULT) | |
47 | ||
48 | BID_TO_SMALL_INT_CVT_FUNCTION (char, bid64_to_int8_xrninta, UINT64, x, | |
49 | bid64_to_int32_xrninta, int, SIZE_MASK, | |
50 | INVALID_RESULT) | |
51 | ||
52 | BID_TO_SMALL_INT_CVT_FUNCTION (char, bid64_to_int8_int, UINT64, x, | |
53 | bid64_to_int32_int, int, SIZE_MASK, | |
54 | INVALID_RESULT) | |
55 | ||
56 | BID_TO_SMALL_INT_CVT_FUNCTION (char, bid64_to_int8_xint, UINT64, x, | |
57 | bid64_to_int32_xint, int, SIZE_MASK, | |
58 | INVALID_RESULT) | |
59 | ||
60 | BID_TO_SMALL_INT_CVT_FUNCTION (char, bid64_to_int8_floor, UINT64, x, | |
61 | bid64_to_int32_floor, int, SIZE_MASK, | |
62 | INVALID_RESULT) | |
63 | ||
64 | BID_TO_SMALL_INT_CVT_FUNCTION (char, bid64_to_int8_ceil, UINT64, x, | |
65 | bid64_to_int32_ceil, int, SIZE_MASK, | |
66 | INVALID_RESULT) | |
67 | ||
68 | BID_TO_SMALL_INT_CVT_FUNCTION (char, bid64_to_int8_xfloor, UINT64, x, | |
69 | bid64_to_int32_xfloor, int, SIZE_MASK, | |
70 | INVALID_RESULT) | |
71 | ||
72 | BID_TO_SMALL_INT_CVT_FUNCTION (char, bid64_to_int8_xceil, UINT64, x, | |
73 | bid64_to_int32_xceil, int, SIZE_MASK, | |
74 | INVALID_RESULT) |