lib2div.c 1.9 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849
  1. /* libgcc routines for RL78
  2. Copyright (C) 2005-2022 Free Software Foundation, Inc.
  3. Contributed by Red Hat.
  4. This file is part of GCC.
  5. GCC is free software; you can redistribute it and/or modify it
  6. under the terms of the GNU General Public License as published
  7. by the Free Software Foundation; either version 3, or (at your
  8. option) any later version.
  9. GCC is distributed in the hope that it will be useful, but WITHOUT
  10. ANY WARRANTY; without even the implied warranty of MERCHANTABILITY
  11. or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public
  12. License for more details.
  13. Under Section 7 of GPL version 3, you are granted additional
  14. permissions described in the GCC Runtime Library Exception, version
  15. 3.1, as published by the Free Software Foundation.
  16. You should have received a copy of the GNU General Public License and
  17. a copy of the GCC Runtime Library Exception along with this program;
  18. see the files COPYING3 and COPYING.RUNTIME respectively. If not, see
  19. <http://www.gnu.org/licenses/>. */
  20. typedef int sint32_type __attribute__ ((mode (SI)));
  21. typedef unsigned int uint32_type __attribute__ ((mode (SI)));
  22. typedef int sint16_type __attribute__ ((mode (HI)));
  23. typedef unsigned int uint16_type __attribute__ ((mode (HI)));
  24. typedef int sint08_type __attribute__ ((mode (QI)));
  25. typedef unsigned int uint08_type __attribute__ ((mode (QI)));
  26. typedef int word_type __attribute__ ((mode (__word__)));
  27. #define C3B(a,b,c) a##b##c
  28. #define C3(a,b,c) C3B(a,b,c)
  29. /* See the comment by the definition of LIBGCC2_UNITS_PER_WORD in
  30. m32c.h for why we are creating extra versions of some of the
  31. functions defined in libgcc2.c. */
  32. #define LIBGCC2_UNITS_PER_WORD 2
  33. #define L_clzsi2
  34. #define L_ctzsi2
  35. #define L_ffssi2
  36. #define L_paritysi2
  37. #define L_popcountsi2
  38. #include "libgcc2.c"