signop.h 1.1 KB

1234567891011121314151617181920212223242526272829303132333435
  1. /* Operations with SIGNED and UNSIGNED. -*- C++ -*-
  2. Copyright (C) 2012-2015 Free Software Foundation, Inc.
  3. This file is part of GCC.
  4. GCC is free software; you can redistribute it and/or modify it
  5. under the terms of the GNU General Public License as published by the
  6. Free Software Foundation; either version 3, or (at your option) any
  7. later version.
  8. GCC is distributed in the hope that it will be useful, but WITHOUT
  9. ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
  10. FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
  11. for more details.
  12. You should have received a copy of the GNU General Public License
  13. along with GCC; see the file COPYING3. If not see
  14. <http://www.gnu.org/licenses/>. */
  15. #ifndef SIGNOP_H
  16. #define SIGNOP_H
  17. /* This type is used for the large number of functions that produce
  18. different results depending on if the operands are signed types or
  19. unsigned types. The signedness of a tree type can be found by
  20. using the TYPE_SIGN macro. */
  21. enum signop_e {
  22. SIGNED,
  23. UNSIGNED
  24. };
  25. typedef enum signop_e signop;
  26. #endif