comparison gcc/double-int.h @ 55:77e2b8dfacca gcc-4.4.5

update it from 4.4.3 to 4.5.0
author ryoma <e075725@ie.u-ryukyu.ac.jp>
date Fri, 12 Feb 2010 23:39:51 +0900
parents a06113de4d67
children b7f97abdc517
comparison
equal deleted inserted replaced
52:c156f1bd5cd9 55:77e2b8dfacca
1 /* Operations with long integers. 1 /* Operations with long integers.
2 Copyright (C) 2006, 2007, 2008 Free Software Foundation, Inc. 2 Copyright (C) 2006, 2007, 2008 Free Software Foundation, Inc.
3 3
4 This file is part of GCC. 4 This file is part of GCC.
5 5
6 GCC is free software; you can redistribute it and/or modify it 6 GCC is free software; you can redistribute it and/or modify it
7 under the terms of the GNU General Public License as published by the 7 under the terms of the GNU General Public License as published by the
8 Free Software Foundation; either version 3, or (at your option) any 8 Free Software Foundation; either version 3, or (at your option) any
9 later version. 9 later version.
10 10
11 GCC is distributed in the hope that it will be useful, but WITHOUT 11 GCC is distributed in the hope that it will be useful, but WITHOUT
12 ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or 12 ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
13 FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License 13 FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
14 for more details. 14 for more details.
15 15
16 You should have received a copy of the GNU General Public License 16 You should have received a copy of the GNU General Public License
17 along with GCC; see the file COPYING3. If not see 17 along with GCC; see the file COPYING3. If not see
18 <http://www.gnu.org/licenses/>. */ 18 <http://www.gnu.org/licenses/>. */
19 19
20 #ifndef DOUBLE_INT_H 20 #ifndef DOUBLE_INT_H
70 70
71 static inline double_int 71 static inline double_int
72 shwi_to_double_int (HOST_WIDE_INT cst) 72 shwi_to_double_int (HOST_WIDE_INT cst)
73 { 73 {
74 double_int r; 74 double_int r;
75 75
76 r.low = (unsigned HOST_WIDE_INT) cst; 76 r.low = (unsigned HOST_WIDE_INT) cst;
77 r.high = cst < 0 ? -1 : 0; 77 r.high = cst < 0 ? -1 : 0;
78 78
79 return r; 79 return r;
80 } 80 }
92 92
93 static inline double_int 93 static inline double_int
94 uhwi_to_double_int (unsigned HOST_WIDE_INT cst) 94 uhwi_to_double_int (unsigned HOST_WIDE_INT cst)
95 { 95 {
96 double_int r; 96 double_int r;
97 97
98 r.low = cst; 98 r.low = cst;
99 r.high = 0; 99 r.high = 0;
100 100
101 return r; 101 return r;
102 } 102 }