1*dc268d07Schristos /* Copyright (C) 2007-2018 Free Software Foundation, Inc.
297ec5308Schristos 
397ec5308Schristos This file is part of GCC.
497ec5308Schristos 
597ec5308Schristos GCC is free software; you can redistribute it and/or modify it under
697ec5308Schristos the terms of the GNU General Public License as published by the Free
797ec5308Schristos Software Foundation; either version 3, or (at your option) any later
897ec5308Schristos version.
997ec5308Schristos 
1097ec5308Schristos GCC is distributed in the hope that it will be useful, but WITHOUT ANY
1197ec5308Schristos WARRANTY; without even the implied warranty of MERCHANTABILITY or
1297ec5308Schristos FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License
1397ec5308Schristos for more details.
1497ec5308Schristos 
1597ec5308Schristos Under Section 7 of GPL version 3, you are granted additional
1697ec5308Schristos permissions described in the GCC Runtime Library Exception, version
1797ec5308Schristos 3.1, as published by the Free Software Foundation.
1897ec5308Schristos 
1997ec5308Schristos You should have received a copy of the GNU General Public License and
2097ec5308Schristos a copy of the GCC Runtime Library Exception along with this program;
2197ec5308Schristos see the files COPYING3 and COPYING.RUNTIME respectively.  If not, see
2297ec5308Schristos <http://www.gnu.org/licenses/>.  */
2397ec5308Schristos 
2497ec5308Schristos typedef unsigned int UINT32;
2597ec5308Schristos typedef unsigned long long UINT64;
2697ec5308Schristos typedef struct { UINT64 w[2]; } UINT128;
2797ec5308Schristos 
2897ec5308Schristos #ifndef IN_LIBGCC2
2997ec5308Schristos #define _Decimal32 UINT32
3097ec5308Schristos #define _Decimal64 UINT64
3197ec5308Schristos #define _Decimal128 UINT128
3297ec5308Schristos #endif
3397ec5308Schristos 
3497ec5308Schristos void _bid_to_dpd32 (_Decimal32 *, _Decimal32 *);
3597ec5308Schristos void _dpd_to_bid32 (_Decimal32 *, _Decimal32 *);
3697ec5308Schristos void _bid_to_dpd64 (_Decimal64 *, _Decimal64 *);
3797ec5308Schristos void _dpd_to_bid64 (_Decimal64 *, _Decimal64 *);
3897ec5308Schristos void _bid_to_dpd128 (_Decimal128 *, _Decimal128 *);
3997ec5308Schristos void _dpd_to_bid128 (_Decimal128 *, _Decimal128 *);
40