Go to the documentation of this file.
19 typedef __int64
int64;
20 inline const char*
int32_format() {
static const char s[] =
"%d";
return s;}
21 inline const char*
int64_format() {
static const char s[] =
"%ld";
return s;}
23 typedef unsigned int uint32;
24 typedef unsigned __int64
uint64;
25 inline const char*
uint32_format() {
static const char s[] =
"%u";
return s;}
26 inline const char*
uint64_format() {
static const char s[] =
"%lu";
return s;}
36 inline const char*
upointer_format() {
static const char s[] =
"%llu";
return s;}
37 inline const char*
upointer_format_x() {
static const char s[] =
"0x%llx";
return s;}
40 inline const char*
upointer_format() {
static const char s[] =
"%lu";
return s;}
41 inline const char*
upointer_format_x() {
static const char s[] =
"0x%lx";
return s;}
49 inline const char*
int32_format() {
static const char s[] =
"%d";
return s;}
50 inline const char*
int64_format() {
static const char s[] =
"%ld";
return s;}
52 typedef unsigned int uint32;
53 typedef unsigned long uint64;
54 inline const char*
uint32_format() {
static const char s[] =
"%u";
return s;}
55 inline const char*
uint64_format() {
static const char s[] =
"%lu";
return s;}
60 inline const char*
upointer_format() {
static const char s[] =
"%lu";
return s;}
61 inline const char*
upointer_format_x() {
static const char s[] =
"0x%lx";
return s;}
68 inline const char*
int32_format() {
static const char s[] =
"%d";
return s;}
69 inline const char*
int64_format() {
static const char s[] =
"%lld";
return s;}
73 inline const char*
uint32_format() {
static const char s[] =
"%u";
return s;}
74 inline const char*
uint64_format() {
static const char s[] =
"%llu";
return s;}
86 for(
unsigned int i=0;i<32;i++) n += 1<<i;
92 for(
unsigned int i=0;i<64;i++) n += one<<i;
96 typedef unsigned char byte;
118 inline const char*
type_format(
float) {
static const char s[] =
"%g";
return s;}
119 inline const char*
type_format(
double) {
static const char s[] =
"%g";
return s;}
121 inline const char*
type_format(
char) {
static const char s[] =
"%d";
return s;}
122 inline const char*
type_format(
short) {
static const char s[] =
"%d";
return s;}
123 inline const char*
type_format(
int) {
static const char s[] =
"%d";
return s;}
126 inline const char*
type_format(
unsigned char) {
static const char s[] =
"%u";
return s;}
127 inline const char*
type_format(
unsigned short) {
static const char s[] =
"%u";
return s;}
128 inline const char*
type_format(
unsigned int) {
static const char s[] =
"%u";
return s;}