1c56c65806e7ad8843b91ca864e780a10ff132db
[deliverable/binutils-gdb.git] / libdecnumber / decSingle.c
1 /* decSingle module for the decNumber C Library.
2 Copyright (C) 2007 Free Software Foundation, Inc.
3 Contributed by IBM Corporation. Author Mike Cowlishaw.
4
5 This file is part of GCC.
6
7 GCC is free software; you can redistribute it and/or modify it under
8 the terms of the GNU General Public License as published by the Free
9 Software Foundation; either version 2, or (at your option) any later
10 version.
11
12 In addition to the permissions in the GNU General Public License,
13 the Free Software Foundation gives you unlimited permission to link
14 the compiled version of this file into combinations with other
15 programs, and to distribute those combinations without any
16 restriction coming from the use of this file. (The General Public
17 License restrictions do apply in other respects; for example, they
18 cover modification of the file, and distribution when not linked
19 into a combine executable.)
20
21 GCC is distributed in the hope that it will be useful, but WITHOUT ANY
22 WARRANTY; without even the implied warranty of MERCHANTABILITY or
23 FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
24 for more details.
25
26 You should have received a copy of the GNU General Public License
27 along with GCC; see the file COPYING. If not, write to the Free
28 Software Foundation, 51 Franklin Street, Fifth Floor, Boston, MA
29 02110-1301, USA. */
30
31 /* ------------------------------------------------------------------ */
32 /* decSingle.c -- decSingle operations module */
33 /* ------------------------------------------------------------------ */
34
35 #include "decContext.h" /* public includes */
36 #include "decSingle.h" /* public includes */
37
38 /* Constant mappings for shared code */
39 #define DECPMAX DECSINGLE_Pmax
40 #define DECEMIN DECSINGLE_Emin
41 #define DECEMAX DECSINGLE_Emax
42 #define DECEMAXD DECSINGLE_EmaxD
43 #define DECBYTES DECSINGLE_Bytes
44 #define DECSTRING DECSINGLE_String
45 #define DECECONL DECSINGLE_EconL
46 #define DECBIAS DECSINGLE_Bias
47 #define DECLETS DECSINGLE_Declets
48 #define DECQTINY (-DECSINGLE_Bias)
49 /* parameters of next-wider format */
50 #define DECWBYTES DECDOUBLE_Bytes
51 #define DECWPMAX DECDOUBLE_Pmax
52 #define DECWECONL DECDOUBLE_EconL
53 #define DECWBIAS DECDOUBLE_Bias
54
55 /* Type and function mappings for shared code */
56 #define decFloat decSingle /* Type name */
57 #define decFloatWider decDouble /* Type name */
58
59 /* Utility (binary results, extractors, etc.) */
60 #define decFloatFromBCD decSingleFromBCD
61 #define decFloatFromPacked decSingleFromPacked
62 #define decFloatFromPackedChecked decSingleFromPackedChecked
63 #define decFloatFromString decSingleFromString
64 #define decFloatFromWider decSingleFromWider
65 #define decFloatGetCoefficient decSingleGetCoefficient
66 #define decFloatGetExponent decSingleGetExponent
67 #define decFloatSetCoefficient decSingleSetCoefficient
68 #define decFloatSetExponent decSingleSetExponent
69 #define decFloatShow decSingleShow
70 #define decFloatToBCD decSingleToBCD
71 #define decFloatToEngString decSingleToEngString
72 #define decFloatToPacked decSingleToPacked
73 #define decFloatToString decSingleToString
74 #define decFloatToWider decSingleToWider
75 #define decFloatZero decSingleZero
76
77 /* Non-computational */
78 #define decFloatRadix decSingleRadix
79 #define decFloatVersion decSingleVersion
80
81 #include "decNumberLocal.h" /* local includes (need DECPMAX) */
82 #include "decCommon.c" /* non-basic decFloat routines */
83 /* [Do not include decBasic.c for decimal32] */
84
This page took 0.031776 seconds and 4 git commands to generate.