xref: /netbsd-src/external/gpl3/gcc.old/dist/gcc/signop.h (revision 8feb0f0b7eaff0608f8350bbfa3098827b4bb91b)
11debfc3dSmrg /* Operations with SIGNED and UNSIGNED.  -*- C++ -*-
2*8feb0f0bSmrg    Copyright (C) 2012-2020 Free Software Foundation, Inc.
31debfc3dSmrg 
41debfc3dSmrg This file is part of GCC.
51debfc3dSmrg 
61debfc3dSmrg GCC is free software; you can redistribute it and/or modify it
71debfc3dSmrg under the terms of the GNU General Public License as published by the
81debfc3dSmrg Free Software Foundation; either version 3, or (at your option) any
91debfc3dSmrg later version.
101debfc3dSmrg 
111debfc3dSmrg GCC is distributed in the hope that it will be useful, but WITHOUT
121debfc3dSmrg ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
131debfc3dSmrg FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License
141debfc3dSmrg for more details.
151debfc3dSmrg 
161debfc3dSmrg You should have received a copy of the GNU General Public License
171debfc3dSmrg along with GCC; see the file COPYING3.  If not see
181debfc3dSmrg <http://www.gnu.org/licenses/>.  */
191debfc3dSmrg 
201debfc3dSmrg #ifndef SIGNOP_H
211debfc3dSmrg #define SIGNOP_H
221debfc3dSmrg 
231debfc3dSmrg /* This type is used for the large number of functions that produce
241debfc3dSmrg    different results depending on if the operands are signed types or
251debfc3dSmrg    unsigned types.  The signedness of a tree type can be found by
261debfc3dSmrg    using the TYPE_SIGN macro.  */
271debfc3dSmrg 
281debfc3dSmrg enum signop {
291debfc3dSmrg   SIGNED,
301debfc3dSmrg   UNSIGNED
311debfc3dSmrg };
321debfc3dSmrg 
331debfc3dSmrg #endif
34