]> git.ipfire.org Git - thirdparty/gcc.git/blame - libdecnumber/decSingle.c
Update copyright years.
[thirdparty/gcc.git] / libdecnumber / decSingle.c
CommitLineData
c8ac5d9a 1/* decSingle module for the decNumber C Library.
f1717362 2 Copyright (C) 2007-2016 Free Software Foundation, Inc.
c8ac5d9a 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
6bc9506f 9 Software Foundation; either version 3, or (at your option) any later
c8ac5d9a 10 version.
11
c8ac5d9a 12 GCC is distributed in the hope that it will be useful, but WITHOUT ANY
13 WARRANTY; without even the implied warranty of MERCHANTABILITY or
14 FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
15 for more details.
16
6bc9506f 17Under Section 7 of GPL version 3, you are granted additional
18permissions described in the GCC Runtime Library Exception, version
193.1, as published by the Free Software Foundation.
20
21You should have received a copy of the GNU General Public License and
22a copy of the GCC Runtime Library Exception along with this program;
23see the files COPYING3 and COPYING.RUNTIME respectively. If not, see
24<http://www.gnu.org/licenses/>. */
c8ac5d9a 25
26/* ------------------------------------------------------------------ */
27/* decSingle.c -- decSingle operations module */
28/* ------------------------------------------------------------------ */
c8ac5d9a 29
f3b943d0 30#include "decContext.h" /* public includes */
c8ac5d9a 31#include "decSingle.h" /* public includes */
32
33/* Constant mappings for shared code */
f3b943d0 34#define DECPMAX DECSINGLE_Pmax
35#define DECEMIN DECSINGLE_Emin
36#define DECEMAX DECSINGLE_Emax
c8ac5d9a 37#define DECEMAXD DECSINGLE_EmaxD
38#define DECBYTES DECSINGLE_Bytes
39#define DECSTRING DECSINGLE_String
40#define DECECONL DECSINGLE_EconL
f3b943d0 41#define DECBIAS DECSINGLE_Bias
42#define DECLETS DECSINGLE_Declets
c8ac5d9a 43#define DECQTINY (-DECSINGLE_Bias)
44/* parameters of next-wider format */
45#define DECWBYTES DECDOUBLE_Bytes
46#define DECWPMAX DECDOUBLE_Pmax
47#define DECWECONL DECDOUBLE_EconL
48#define DECWBIAS DECDOUBLE_Bias
49
50/* Type and function mappings for shared code */
f3b943d0 51#define decFloat decSingle /* Type name */
52#define decFloatWider decDouble /* Type name */
c8ac5d9a 53
54/* Utility (binary results, extractors, etc.) */
f3b943d0 55#define decFloatFromBCD decSingleFromBCD
56#define decFloatFromPacked decSingleFromPacked
57#define decFloatFromPackedChecked decSingleFromPackedChecked
58#define decFloatFromString decSingleFromString
59#define decFloatFromWider decSingleFromWider
60#define decFloatGetCoefficient decSingleGetCoefficient
61#define decFloatGetExponent decSingleGetExponent
62#define decFloatSetCoefficient decSingleSetCoefficient
63#define decFloatSetExponent decSingleSetExponent
64#define decFloatShow decSingleShow
65#define decFloatToBCD decSingleToBCD
66#define decFloatToEngString decSingleToEngString
67#define decFloatToPacked decSingleToPacked
68#define decFloatToString decSingleToString
69#define decFloatToWider decSingleToWider
70#define decFloatZero decSingleZero
c8ac5d9a 71
72/* Non-computational */
f3b943d0 73#define decFloatRadix decSingleRadix
74#define decFloatVersion decSingleVersion
c8ac5d9a 75
76#include "decNumberLocal.h" /* local includes (need DECPMAX) */
77#include "decCommon.c" /* non-basic decFloat routines */
78/* [Do not include decBasic.c for decimal32] */
79