wide-int-print.h 1.4 KB

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