tree.c (169690) | tree.c (220150) |
---|---|
1/* Language-independent node constructors for parse phase of GNU compiler. 2 Copyright (C) 1987, 1988, 1992, 1993, 1994, 1995, 1996, 1997, 1998, 3 1999, 2000, 2001, 2002, 2003, 2004, 2005, 2006 4 Free Software Foundation, Inc. 5 6This file is part of GCC. 7 8GCC is free software; you can redistribute it and/or modify it under --- 4526 unchanged lines hidden (view full) --- 4535int 4536host_integerp (tree t, int pos) 4537{ 4538 return (TREE_CODE (t) == INTEGER_CST 4539 && ((TREE_INT_CST_HIGH (t) == 0 4540 && (HOST_WIDE_INT) TREE_INT_CST_LOW (t) >= 0) 4541 || (! pos && TREE_INT_CST_HIGH (t) == -1 4542 && (HOST_WIDE_INT) TREE_INT_CST_LOW (t) < 0 | 1/* Language-independent node constructors for parse phase of GNU compiler. 2 Copyright (C) 1987, 1988, 1992, 1993, 1994, 1995, 1996, 1997, 1998, 3 1999, 2000, 2001, 2002, 2003, 2004, 2005, 2006 4 Free Software Foundation, Inc. 5 6This file is part of GCC. 7 8GCC is free software; you can redistribute it and/or modify it under --- 4526 unchanged lines hidden (view full) --- 4535int 4536host_integerp (tree t, int pos) 4537{ 4538 return (TREE_CODE (t) == INTEGER_CST 4539 && ((TREE_INT_CST_HIGH (t) == 0 4540 && (HOST_WIDE_INT) TREE_INT_CST_LOW (t) >= 0) 4541 || (! pos && TREE_INT_CST_HIGH (t) == -1 4542 && (HOST_WIDE_INT) TREE_INT_CST_LOW (t) < 0 |
4543 && !TYPE_UNSIGNED (TREE_TYPE (t))) | 4543 && (!TYPE_UNSIGNED (TREE_TYPE (t)) 4544 || TYPE_IS_SIZETYPE (TREE_TYPE (t)))) |
4544 || (pos && TREE_INT_CST_HIGH (t) == 0))); 4545} 4546 4547/* Return the HOST_WIDE_INT least significant bits of T if it is an 4548 INTEGER_CST and there is no overflow. POS is nonzero if the result must 4549 be non-negative. We must be able to satisfy the above conditions. */ 4550 4551HOST_WIDE_INT --- 3224 unchanged lines hidden --- | 4545 || (pos && TREE_INT_CST_HIGH (t) == 0))); 4546} 4547 4548/* Return the HOST_WIDE_INT least significant bits of T if it is an 4549 INTEGER_CST and there is no overflow. POS is nonzero if the result must 4550 be non-negative. We must be able to satisfy the above conditions. */ 4551 4552HOST_WIDE_INT --- 3224 unchanged lines hidden --- |