GCC Middle and Back End API Reference
wide-int-print.h File Reference
#include <stdio.h>
Include dependency graph for wide-int-print.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Macros

#define WIDE_INT_PRINT_BUFFER_SIZE   (WIDE_INT_MAX_INL_PRECISION / 4 + 4)
 

Functions

void print_dec (const wide_int_ref &wi, char *buf, signop sgn)
 
void print_dec (const wide_int_ref &wi, FILE *file, signop sgn)
 
void print_decs (const wide_int_ref &wi, char *buf)
 
void print_decs (const wide_int_ref &wi, FILE *file)
 
void print_decu (const wide_int_ref &wi, char *buf)
 
void print_decu (const wide_int_ref &wi, FILE *file)
 
void print_hex (const wide_int_ref &wi, char *buf)
 
void print_hex (const wide_int_ref &wi, FILE *file)
 
void pp_wide_int_large (pretty_printer *, const wide_int_ref &, signop)
 
bool print_dec_buf_size (const wide_int_ref &wi, signop sgn, unsigned int *len)
 
bool print_decs_buf_size (const wide_int_ref &wi, unsigned int *len)
 
bool print_decu_buf_size (const wide_int_ref &wi, unsigned int *len)
 
bool print_hex_buf_size (const wide_int_ref &wi, unsigned int *len)
 

Macro Definition Documentation

◆ WIDE_INT_PRINT_BUFFER_SIZE

#define WIDE_INT_PRINT_BUFFER_SIZE   (WIDE_INT_MAX_INL_PRECISION / 4 + 4)
Print wide integers.
   Copyright (C) 2013-2024 Free Software Foundation, Inc.

This file is part of GCC.

GCC is free software; you can redistribute it and/or modify it
under the terms of the GNU General Public License as published by the
Free Software Foundation; either version 3, or (at your option) any
later version.

GCC 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 General Public License
for more details.

You should have received a copy of the GNU General Public License
along with GCC; see the file COPYING3.  If not see
<http://www.gnu.org/licenses/>.   

Referenced by do_warn_aggressive_loop_optimizations(), irange_bitmask::dump(), go_output_typedef(), print_dec_buf_size(), print_decs(), print_decu(), print_hex(), print_hex_buf_size(), and print_irange_bitmasks().

Function Documentation

◆ pp_wide_int_large()

void pp_wide_int_large ( pretty_printer * pp,
const wide_int_ref & w,
signop sgn )
extern
Print larger precision wide_int.  Not defined as inline in a header
together with pp_wide_int because XALLOCAVEC will make it uninlinable.   

References pp_string(), print_dec(), and print_dec_buf_size().

◆ print_dec() [1/2]

◆ print_dec() [2/2]

void print_dec ( const wide_int_ref & wi,
FILE * file,
signop sgn )
extern

References print_decs(), print_decu(), and SIGNED.

◆ print_dec_buf_size()

◆ print_decs() [1/2]

◆ print_decs() [2/2]

void print_decs ( const wide_int_ref & wi,
FILE * file )
extern
Try to print the signed self in decimal to FILE.   

References print_decs(), print_decs_buf_size(), and WIDE_INT_PRINT_BUFFER_SIZE.

◆ print_decs_buf_size()

bool print_decs_buf_size ( const wide_int_ref & wi,
unsigned int * len )
inline

References print_dec_buf_size(), and SIGNED.

Referenced by print_decs().

◆ print_decu() [1/2]

◆ print_decu() [2/2]

void print_decu ( const wide_int_ref & wi,
FILE * file )
extern
Try to print the signed self in decimal to FILE.   

References print_decu(), print_decu_buf_size(), and WIDE_INT_PRINT_BUFFER_SIZE.

◆ print_decu_buf_size()

bool print_decu_buf_size ( const wide_int_ref & wi,
unsigned int * len )
inline

References print_dec_buf_size(), and UNSIGNED.

Referenced by print_decu().

◆ print_hex() [1/2]

◆ print_hex() [2/2]

void print_hex ( const wide_int_ref & wi,
FILE * file )
extern
Print one big hex number to FILE.  Note that some assemblers may not
accept this for large modes.   

References print_hex(), print_hex_buf_size(), and WIDE_INT_PRINT_BUFFER_SIZE.

◆ print_hex_buf_size()