| 1 |
/* Operations with SIGNED and UNSIGNED. -*- C++ -*- |
| 2 |
Copyright (C) 2012-2025 Free Software Foundation, Inc. |
| 3 |
|
| 4 |
This file is part of GCC. |
| 5 |
|
| 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 |
| 8 |
Free Software Foundation; either version 3, or (at your option) any |
| 9 |
later version. |
| 10 |
|
| 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 |
| 13 |
FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License |
| 14 |
for more details. |
| 15 |
|
| 16 |
You should have received a copy of the GNU General Public License |
| 17 |
along with GCC; see the file COPYING3. If not see |
| 18 |
<http://www.gnu.org/licenses/>. */ |
| 19 |
|
| 20 |
#ifndef SIGNOP_H |
| 21 |
#define SIGNOP_H |
| 22 |
|
| 23 |
/* This type is used for the large number of functions that produce |
| 24 |
different results depending on if the operands are signed types or |
| 25 |
unsigned types. The signedness of a tree type can be found by |
| 26 |
using the TYPE_SIGN macro. */ |
| 27 |
|
| 28 |
enum signop { |
| 29 |
SIGNED, |
| 30 |
UNSIGNED |
| 31 |
}; |
| 32 |
|
| 33 |
#endif |