• Home
  • Raw
  • Download

Lines Matching refs:val

56 void printInt64Bang(SStream *O, int64_t val)  in printInt64Bang()  argument
58 if (val >= 0) { in printInt64Bang()
59 if (val > HEX_THRESHOLD) in printInt64Bang()
60 SStream_concat(O, "#0x%"PRIx64, val); in printInt64Bang()
62 SStream_concat(O, "#%"PRIu64, val); in printInt64Bang()
64 if (val <- HEX_THRESHOLD) { in printInt64Bang()
65 if (val == LONG_MIN) in printInt64Bang()
66 SStream_concat(O, "#-0x%"PRIx64, (uint64_t)val); in printInt64Bang()
68 SStream_concat(O, "#-0x%"PRIx64, (uint64_t)-val); in printInt64Bang()
71 SStream_concat(O, "#-%"PRIu64, -val); in printInt64Bang()
75 void printUInt64Bang(SStream *O, uint64_t val) in printUInt64Bang() argument
77 if (val > HEX_THRESHOLD) in printUInt64Bang()
78 SStream_concat(O, "#0x%"PRIx64, val); in printUInt64Bang()
80 SStream_concat(O, "#%"PRIu64, val); in printUInt64Bang()
84 void printInt64(SStream *O, int64_t val) in printInt64() argument
86 if (val >= 0) { in printInt64()
87 if (val > HEX_THRESHOLD) in printInt64()
88 SStream_concat(O, "0x%"PRIx64, val); in printInt64()
90 SStream_concat(O, "%"PRIu64, val); in printInt64()
92 if (val <- HEX_THRESHOLD) { in printInt64()
93 if (val == LONG_MIN) in printInt64()
94 SStream_concat(O, "-0x%"PRIx64, (uint64_t)val); in printInt64()
96 SStream_concat(O, "-0x%"PRIx64, (uint64_t)-val); in printInt64()
99 SStream_concat(O, "-%"PRIu64, -val); in printInt64()
104 void printInt32BangDec(SStream *O, int32_t val) in printInt32BangDec() argument
106 if (val >= 0) in printInt32BangDec()
107 SStream_concat(O, "#%u", val); in printInt32BangDec()
109 if (val == INT_MIN) in printInt32BangDec()
110 SStream_concat(O, "#-%u", val); in printInt32BangDec()
112 SStream_concat(O, "#-%u", (uint32_t)-val); in printInt32BangDec()
115 void printInt32Bang(SStream *O, int32_t val) in printInt32Bang() argument
117 if (val >= 0) { in printInt32Bang()
118 if (val > HEX_THRESHOLD) in printInt32Bang()
119 SStream_concat(O, "#0x%x", val); in printInt32Bang()
121 SStream_concat(O, "#%u", val); in printInt32Bang()
123 if (val <- HEX_THRESHOLD) { in printInt32Bang()
124 if (val == INT_MIN) in printInt32Bang()
125 SStream_concat(O, "#-0x%x", (uint32_t)val); in printInt32Bang()
127 SStream_concat(O, "#-0x%x", (uint32_t)-val); in printInt32Bang()
130 SStream_concat(O, "#-%u", -val); in printInt32Bang()
134 void printInt32(SStream *O, int32_t val) in printInt32() argument
136 if (val >= 0) { in printInt32()
137 if (val > HEX_THRESHOLD) in printInt32()
138 SStream_concat(O, "0x%x", val); in printInt32()
140 SStream_concat(O, "%u", val); in printInt32()
142 if (val <- HEX_THRESHOLD) { in printInt32()
143 if (val == INT_MIN) in printInt32()
144 SStream_concat(O, "-0x%x", (uint32_t)val); in printInt32()
146 SStream_concat(O, "-0x%x", (uint32_t)-val); in printInt32()
149 SStream_concat(O, "-%u", -val); in printInt32()
153 void printUInt32Bang(SStream *O, uint32_t val) in printUInt32Bang() argument
155 if (val > HEX_THRESHOLD) in printUInt32Bang()
156 SStream_concat(O, "#0x%x", val); in printUInt32Bang()
158 SStream_concat(O, "#%u", val); in printUInt32Bang()
161 void printUInt32(SStream *O, uint32_t val) in printUInt32() argument
163 if (val > HEX_THRESHOLD) in printUInt32()
164 SStream_concat(O, "0x%x", val); in printUInt32()
166 SStream_concat(O, "%u", val); in printUInt32()