forked from libdfp/libdfp
-
Notifications
You must be signed in to change notification settings - Fork 0
/
get_digits.h
38 lines (27 loc) · 1.46 KB
/
get_digits.h
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
/* Prototype for getting the number of digits in a _Decimal[32|64|128]
Copyright (C) 2009 IBM Corporation.
Copyright (C) 2009-2015 Free Software Foundation, Inc.
This file is part of the Decimal Floating Point C Library.
Author(s): Ryan S. Arnold <[email protected]>
The Decimal Floating Point C Library is free software; you can
redistribute it and/or modify it under the terms of the GNU Lesser
General Public License version 2.1.
The Decimal Floating Point C Library 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 Lesser General Public License version 2.1 for more details.
You should have received a copy of the GNU Lesser General Public
License version 2.1 along with the Decimal Floating Point C Library;
if not, write to the Free Software Foundation, Inc., 51 Franklin
Street, Fifth Floor, Boston, MA 02110-1301 USA.
Please see dfp/COPYING.txt for more information. */
#ifndef _GET_DIGITS_H
#define _GET_DIGITS_H 1
/* Define the number of digits necessary to store a DEC_TYPE in a string. */
#define NDIGITS_32 8
#define NDIGITS_64 17
#define NDIGITS_128 35
void __get_digits_d32 (_Decimal32, char*, int*, int*, int *, int *);
void __get_digits_d64 (_Decimal64, char*, int*, int*, int *, int *);
void __get_digits_d128 (_Decimal128, char*, int*, int*, int *, int *);
#endif /* _GET_DIGITS_H */