wide-int-print.h 1.4 KB

1234567891011121314151617181920212223242526272829303132333435363738
  1. /* Print wide integers.
  2. Copyright (C) 2013-2019 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. #define WIDE_INT_PRINT_BUFFER_SIZE (WIDE_INT_MAX_PRECISION / 4 + 4)
  19. /* Printing functions. */
  20. extern void print_dec (const wide_int_ref &wi, char *buf, signop sgn);
  21. extern void print_dec (const wide_int_ref &wi, FILE *file, signop sgn);
  22. extern void print_decs (const wide_int_ref &wi, char *buf);
  23. extern void print_decs (const wide_int_ref &wi, FILE *file);
  24. extern void print_decu (const wide_int_ref &wi, char *buf);
  25. extern void print_decu (const wide_int_ref &wi, FILE *file);
  26. extern void print_hex (const wide_int_ref &wi, char *buf);
  27. extern void print_hex (const wide_int_ref &wi, FILE *file);
  28. #endif /* WIDE_INT_PRINT_H */