lib2-divmod-di.c 1.2 KB

1234567891011121314151617181920212223242526272829303132333435
  1. /* Copyright (C) 2021-2022 Free Software Foundation, Inc.
  2. Contributed by Mentor Graphics, Inc.
  3. This file is free software; you can redistribute it and/or modify it
  4. under the terms of the GNU General Public License as published by the
  5. Free Software Foundation; either version 3, or (at your option) any
  6. later version.
  7. This file is distributed in the hope that it will be useful, but
  8. WITHOUT ANY WARRANTY; without even the implied warranty of
  9. MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
  10. General Public License for more details.
  11. Under Section 7 of GPL version 3, you are granted additional
  12. permissions described in the GCC Runtime Library Exception, version
  13. 3.1, as published by the Free Software Foundation.
  14. You should have received a copy of the GNU General Public License and
  15. a copy of the GCC Runtime Library Exception along with this program;
  16. see the files COPYING3 and COPYING.RUNTIME respectively. If not, see
  17. <http://www.gnu.org/licenses/>. */
  18. #include "lib2-gcn.h"
  19. /* We really want DImode here: override LIBGCC2_UNITS_PER_WORD. */
  20. #define LIBGCC2_UNITS_PER_WORD 4
  21. #define TARGET_HAS_NO_HW_DIVIDE
  22. #define L_divmoddi4
  23. #define L_divdi3
  24. #define L_moddi3
  25. #define L_udivdi3
  26. #define L_umoddi3
  27. #include "libgcc2.c"