xref: /netbsd-src/external/gpl3/gcc/dist/libgcc/config/rl78/lib2mul.c (revision b1e838363e3c6fc78a55519254d99869742dd33c)
148fb7bfaSmrg /* libgcc routines for RL78
2*b1e83836Smrg    Copyright (C) 2005-2022 Free Software Foundation, Inc.
348fb7bfaSmrg    Contributed by Red Hat.
448fb7bfaSmrg 
548fb7bfaSmrg    This file is part of GCC.
648fb7bfaSmrg 
748fb7bfaSmrg    GCC is free software; you can redistribute it and/or modify it
848fb7bfaSmrg    under the terms of the GNU General Public License as published
948fb7bfaSmrg    by the Free Software Foundation; either version 3, or (at your
1048fb7bfaSmrg    option) any later version.
1148fb7bfaSmrg 
1248fb7bfaSmrg    GCC is distributed in the hope that it will be useful, but WITHOUT
1348fb7bfaSmrg    ANY WARRANTY; without even the implied warranty of MERCHANTABILITY
1448fb7bfaSmrg    or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public
1548fb7bfaSmrg    License for more details.
1648fb7bfaSmrg 
1748fb7bfaSmrg    Under Section 7 of GPL version 3, you are granted additional
1848fb7bfaSmrg    permissions described in the GCC Runtime Library Exception, version
1948fb7bfaSmrg    3.1, as published by the Free Software Foundation.
2048fb7bfaSmrg 
2148fb7bfaSmrg    You should have received a copy of the GNU General Public License and
2248fb7bfaSmrg    a copy of the GCC Runtime Library Exception along with this program;
2348fb7bfaSmrg    see the files COPYING3 and COPYING.RUNTIME respectively.  If not, see
2448fb7bfaSmrg    <http://www.gnu.org/licenses/>.  */
2548fb7bfaSmrg 
2648fb7bfaSmrg typedef unsigned int  uint32_type   __attribute__ ((mode (SI)));
2748fb7bfaSmrg typedef unsigned int  uint16_type   __attribute__ ((mode (HI)));
2848fb7bfaSmrg typedef unsigned int  uint08_type   __attribute__ ((mode (QI)));
2948fb7bfaSmrg 
3048fb7bfaSmrg #define C3B(a,b,c) a##b##c
3148fb7bfaSmrg #define C3(a,b,c) C3B(a,b,c)
3248fb7bfaSmrg 
3348fb7bfaSmrg #undef UINT_TYPE
3448fb7bfaSmrg #undef BITS_MINUS_1
3548fb7bfaSmrg #undef NAME_MODE
3648fb7bfaSmrg 
3748fb7bfaSmrg #define UINT_TYPE	uint08_type
3848fb7bfaSmrg #define BITS_MINUS_1	7
3948fb7bfaSmrg #define NAME_MODE	qi
4048fb7bfaSmrg 
4148fb7bfaSmrg #include "rl78-mul.h"
42