Mercurial > hg > CbC > CbC_gcc
diff gcc/double-int.c @ 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 |
line wrap: on
line diff
--- a/gcc/double-int.c Sun Feb 07 18:28:00 2010 +0900 +++ b/gcc/double-int.c Fri Feb 12 23:39:51 2010 +0900 @@ -1,18 +1,18 @@ /* Operations with long integers. - Copyright (C) 2006, 2007 Free Software Foundation, Inc. - + Copyright (C) 2006, 2007, 2009 Free Software Foundation, Inc. + This file is part of GCC. - + GCC is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation; either version 3, or (at your option) any later version. - + GCC is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details. - + You should have received a copy of the GNU General Public License along with GCC; see the file COPYING3. If not see <http://www.gnu.org/licenses/>. */ @@ -50,7 +50,7 @@ /* Clears the bits of CST over the precision PREC. If UNS is false, the bits outside of the precision are set to the sign bit (i.e., the PREC-th one), otherwise they are set to zero. - + This corresponds to returning the value represented by PREC lowermost bits of CST, with the given signedness. */ @@ -102,7 +102,7 @@ { r.low = cst.low & mask.low; r.high = cst.high & mask.high; - } + } return r; } @@ -211,8 +211,9 @@ { double_int ret; - div_and_round_double (code, uns, a.low, a.high, b.low, b.high, - &ret.low, &ret.high, &mod->low, &mod->high); + div_and_round_double ((enum tree_code) code, uns, a.low, a.high, + b.low, b.high, &ret.low, &ret.high, + &mod->low, &mod->high); return ret; } @@ -449,7 +450,7 @@ double_int res; if (!wrap) - { + { mpz_t min, max; mpz_init (min);