Audacity  3.0.3
Classes | Functions | Variables
internal::itoa_impl Namespace Reference

Classes

struct  pair
 

Functions

char * u64toa_jeaiii (uint64_t n, char *b)
 

Variables

static const pair s_pairs [] = { P('0'), P('1'), P('2'), P('3'), P('4'), P('5'), P('6'), P('7'), P('8'), P('9') }
 

Function Documentation

◆ u64toa_jeaiii()

char* internal::itoa_impl::u64toa_jeaiii ( uint64_t  n,
char *  b 
)

Definition at line 93 of file ToChars.cpp.

94 {
95  uint32_t u;
96  uint64_t t;
97 
98  if (uint32_t(n >> 32) == 0)
99  {
100  u = uint32_t(n);
101  return LG(LZ);
102  }
103 
104  uint64_t a = n / 100000000;
105 
106  if (uint32_t(a >> 32) == 0)
107  {
108  u = uint32_t(a);
109  LG(LN);
110  }
111  else
112  {
113  u = uint32_t(a / 100000000);
114  LG(LN);
115  u = a % 100000000;
116  LN(7);
117  }
118 
119  u = n % 100000000;
120  return LZ(7);
121 }

References LG, LN, and LZ.

Referenced by ToChars().

Here is the caller graph for this function:

Variable Documentation

◆ s_pairs

const pair internal::itoa_impl::s_pairs[] = { P('0'), P('1'), P('2'), P('3'), P('4'), P('5'), P('6'), P('7'), P('8'), P('9') }
static

Definition at line 58 of file ToChars.cpp.

LN
#define LN(N)
Definition: ToChars.cpp:79
LZ
#define LZ
Definition: ToChars.cpp:80
LG
#define LG(F)
Definition: ToChars.cpp:84