lib2funcs.c revision 1.3
129964Sache/* libgcc routines for MIPS
229964Sache   Copyright (C) 2013-2017 Free Software Foundation, Inc.
329964Sache   DMULT/DDIV replacement support by Juergen Urban, JuergenUrban@gmx.de.
492906Smarkm
529964SacheThis file is part of GCC.
629964Sache
729964SacheGCC is free software; you can redistribute it and/or modify it under
829964Sachethe terms of the GNU General Public License as published by the Free
929964SacheSoftware Foundation; either version 3, or (at your option) any later
1029964Sacheversion.
1129964Sache
1229964SacheGCC is distributed in the hope that it will be useful, but WITHOUT ANY
1329964SacheWARRANTY; without even the implied warranty of MERCHANTABILITY or
1429964SacheFITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License
1529964Sachefor more details.
1629964Sache
1792906SmarkmUnder Section 7 of GPL version 3, you are granted additional
1892906Smarkmpermissions described in the GCC Runtime Library Exception, version
1959118Skris3.1, as published by the Free Software Foundation.
2059118Skris
2159118SkrisYou should have received a copy of the GNU General Public License and
2229964Sachea copy of the GCC Runtime Library Exception along with this program;
2359118Skrissee the files COPYING3 and COPYING.RUNTIME respectively.  If not, see
2429964Sache<http://www.gnu.org/licenses/>.  */
2529964Sache
2659118Skris#if defined(__mips64) && defined(_MIPS_ARCH_R5900)
2729964Sache
2829964Sache/* Build DI version of libgcc functions. */
2929964Sache#define LIBGCC2_UNITS_PER_WORD 4
3029964Sache
3129964Sache/* The following function is needed when !ISA_HAS_DMULT. */
3229964Sache#define L_muldi3
3329964Sache
3429964Sache/* The following functions are needed when !ISA_HAS_DDIV. */
3529964Sache#define L_divdi3
3629964Sache#define L_moddi3
3729964Sache#define L_udivdi3
3829964Sache#define L_umoddi3
3929964Sache#define L_udivmoddi4
4029964Sache
4129964Sache/* Use generic definition of functions. */
4229964Sache#include "libgcc2.c"
4329964Sache
4429964Sache#endif
4529964Sache