GCC Middle and Back End API Reference
wide-int-print.cc File Reference
#include "config.h"
#include "system.h"
#include "coretypes.h"
#include "pretty-print.h"
Include dependency graph for wide-int-print.cc:

Macros

#define BLOCKS_NEEDED(PREC)    (((PREC) + HOST_BITS_PER_WIDE_INT - 1) / HOST_BITS_PER_WIDE_INT)
 

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 &val, char *buf)
 
void print_hex (const wide_int_ref &wi, FILE *file)
 
void pp_wide_int_large (pretty_printer *pp, const wide_int_ref &w, signop sgn)
 

Macro Definition Documentation

◆ BLOCKS_NEEDED

#define BLOCKS_NEEDED ( PREC)     (((PREC) + HOST_BITS_PER_WIDE_INT - 1) / HOST_BITS_PER_WIDE_INT)
Printing operations with very long integers.
   Copyright (C) 2012-2024 Free Software Foundation, Inc.
   Contributed by Kenneth Zadeck <zadeck@naturalbridge.com>

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/>.   

Function Documentation

◆ pp_wide_int_large()

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

References ggc_alloc(), 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 )

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

◆ print_decs() [1/2]

◆ print_decs() [2/2]

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

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

◆ print_decu() [1/2]

◆ print_decu() [2/2]

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

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

◆ print_hex() [1/2]

◆ print_hex() [2/2]

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

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