diff options
author | Daniel Jacobowitz <drow@false.org> | 2007-10-11 18:15:02 +0000 |
---|---|---|
committer | Daniel Jacobowitz <drow@false.org> | 2007-10-11 18:15:02 +0000 |
commit | f5bc1778c3150f6e9364a1af81f3ba2658f9e68c (patch) | |
tree | 70a9ff23817fe9ed2dadc01f6fd3a179bb7d18b9 /libdecnumber/bid/bid-dpd.h | |
parent | 607ae575a784d7d02956031883ae407faf06fd89 (diff) | |
download | gdb-f5bc1778c3150f6e9364a1af81f3ba2658f9e68c.zip gdb-f5bc1778c3150f6e9364a1af81f3ba2658f9e68c.tar.gz gdb-f5bc1778c3150f6e9364a1af81f3ba2658f9e68c.tar.bz2 |
* src-release (GDB_SUPPORT_DIRS): Add libdecnumber.
* libdecnumber: New directory, imported from GCC.
Diffstat (limited to 'libdecnumber/bid/bid-dpd.h')
-rw-r--r-- | libdecnumber/bid/bid-dpd.h | 43 |
1 files changed, 43 insertions, 0 deletions
diff --git a/libdecnumber/bid/bid-dpd.h b/libdecnumber/bid/bid-dpd.h new file mode 100644 index 0000000..d8bf327 --- /dev/null +++ b/libdecnumber/bid/bid-dpd.h @@ -0,0 +1,43 @@ +/* Copyright (C) 2007 + Free Software Foundation, Inc. + +This file is part of GCC. + +GCC is free software; you can redistribute it and/or modify it under +the terms of the GNU General Public License as published by the Free +Software Foundation; either version 2, or (at your option) any later +version. + +GCC is distributed in the hope that it will be useful, but WITHOUT ANY +WARRANTY; without even the implied warranty of MERCHANTABILITY or +FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License +for more details. + +You should have received a copy of the GNU General Public License +along with GCC; see the file COPYING. If not, write to the Free +Software Foundation, 51 Franklin Street, Fifth Floor, Boston, MA +02110-1301, USA. */ + +/* As a special exception, if you link this library with other files, + some of which are compiled with GCC, to produce an executable, + this library does not by itself cause the resulting executable + to be covered by the GNU General Public License. + This exception does not however invalidate any other reasons why + the executable file might be covered by the GNU General Public License. */ + +typedef unsigned int UINT32; +typedef unsigned long long UINT64; +typedef struct { UINT64 w[2]; } UINT128; + +#ifndef IN_LIBGCC2 +#define _Decimal32 UINT32 +#define _Decimal64 UINT64 +#define _Decimal128 UINT128 +#endif + +void _bid_to_dpd32 (_Decimal32 *, _Decimal32 *); +void _dpd_to_bid32 (_Decimal32 *, _Decimal32 *); +void _bid_to_dpd64 (_Decimal64 *, _Decimal64 *); +void _dpd_to_bid64 (_Decimal64 *, _Decimal64 *); +void _bid_to_dpd128 (_Decimal128 *, _Decimal128 *); +void _dpd_to_bid128 (_Decimal128 *, _Decimal128 *); |