]>
Commit | Line | Data |
---|---|---|
807e902e KZ |
1 | /* Print wide integers. |
2 | Copyright (C) 2013 Free Software Foundation, Inc. | |
3 | ||
4 | This file is part of GCC. | |
5 | ||
6 | GCC is free software; you can redistribute it and/or modify it | |
7 | under the terms of the GNU General Public License as published by the | |
8 | Free Software Foundation; either version 3, or (at your option) any | |
9 | later version. | |
10 | ||
11 | GCC is distributed in the hope that it will be useful, but WITHOUT | |
12 | ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or | |
13 | FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License | |
14 | for more details. | |
15 | ||
16 | You should have received a copy of the GNU General Public License | |
17 | along with GCC; see the file COPYING3. If not see | |
18 | <http://www.gnu.org/licenses/>. */ | |
19 | ||
20 | #ifndef WIDE_INT_PRINT_H | |
21 | #define WIDE_INT_PRINT_H | |
22 | ||
23 | #include <stdio.h> | |
24 | #include "wide-int.h" | |
25 | ||
26 | #define WIDE_INT_PRINT_BUFFER_SIZE (WIDE_INT_MAX_PRECISION / 4 + 4) | |
27 | ||
28 | /* Printing functions. */ | |
29 | ||
30 | extern void print_dec (const wide_int_ref &wi, char *buf, signop sgn); | |
31 | extern void print_dec (const wide_int_ref &wi, FILE *file, signop sgn); | |
32 | extern void print_decs (const wide_int_ref &wi, char *buf); | |
33 | extern void print_decs (const wide_int_ref &wi, FILE *file); | |
34 | extern void print_decu (const wide_int_ref &wi, char *buf); | |
35 | extern void print_decu (const wide_int_ref &wi, FILE *file); | |
36 | extern void print_hex (const wide_int_ref &wi, char *buf); | |
37 | extern void print_hex (const wide_int_ref &wi, FILE *file); | |
38 | ||
39 | #endif /* WIDE_INT_PRINT_H */ |