• Home
  • Raw
  • Download

Lines Matching refs:i

124   int i, j;  in test_unsigned_short_formatting()  local
130 i = 1; us_test[i].num = 0xFFU; us_test[i].expected = "256"; in test_unsigned_short_formatting()
131 i++; us_test[i].num = 0xF0U; us_test[i].expected = "240"; in test_unsigned_short_formatting()
132 i++; us_test[i].num = 0x0FU; us_test[i].expected = "15"; in test_unsigned_short_formatting()
134 i++; us_test[i].num = 0xE0U; us_test[i].expected = "224"; in test_unsigned_short_formatting()
135 i++; us_test[i].num = 0x0EU; us_test[i].expected = "14"; in test_unsigned_short_formatting()
137 i++; us_test[i].num = 0xC0U; us_test[i].expected = "192"; in test_unsigned_short_formatting()
138 i++; us_test[i].num = 0x0CU; us_test[i].expected = "12"; in test_unsigned_short_formatting()
140 i++; us_test[i].num = 0x01U; us_test[i].expected = "1"; in test_unsigned_short_formatting()
141 i++; us_test[i].num = 0x00U; us_test[i].expected = "0"; in test_unsigned_short_formatting()
143 num_ushort_tests = i; in test_unsigned_short_formatting()
147 i = 1; us_test[i].num = 0xFFFFU; us_test[i].expected = "65535"; in test_unsigned_short_formatting()
148 i++; us_test[i].num = 0xFF00U; us_test[i].expected = "65280"; in test_unsigned_short_formatting()
149 i++; us_test[i].num = 0x00FFU; us_test[i].expected = "255"; in test_unsigned_short_formatting()
151 i++; us_test[i].num = 0xF000U; us_test[i].expected = "61440"; in test_unsigned_short_formatting()
152 i++; us_test[i].num = 0x0F00U; us_test[i].expected = "3840"; in test_unsigned_short_formatting()
153 i++; us_test[i].num = 0x00F0U; us_test[i].expected = "240"; in test_unsigned_short_formatting()
154 i++; us_test[i].num = 0x000FU; us_test[i].expected = "15"; in test_unsigned_short_formatting()
156 i++; us_test[i].num = 0xC000U; us_test[i].expected = "49152"; in test_unsigned_short_formatting()
157 i++; us_test[i].num = 0x0C00U; us_test[i].expected = "3072"; in test_unsigned_short_formatting()
158 i++; us_test[i].num = 0x00C0U; us_test[i].expected = "192"; in test_unsigned_short_formatting()
159 i++; us_test[i].num = 0x000CU; us_test[i].expected = "12"; in test_unsigned_short_formatting()
161 i++; us_test[i].num = 0x0001U; us_test[i].expected = "1"; in test_unsigned_short_formatting()
162 i++; us_test[i].num = 0x0000U; us_test[i].expected = "0"; in test_unsigned_short_formatting()
164 num_ushort_tests = i; in test_unsigned_short_formatting()
168 i = 1; us_test[i].num = 0xFFFFFFFFU; us_test[i].expected = "4294967295"; in test_unsigned_short_formatting()
169 i++; us_test[i].num = 0xFFFF0000U; us_test[i].expected = "4294901760"; in test_unsigned_short_formatting()
170 i++; us_test[i].num = 0x0000FFFFU; us_test[i].expected = "65535"; in test_unsigned_short_formatting()
172 i++; us_test[i].num = 0xFF000000U; us_test[i].expected = "4278190080"; in test_unsigned_short_formatting()
173 i++; us_test[i].num = 0x00FF0000U; us_test[i].expected = "16711680"; in test_unsigned_short_formatting()
174 i++; us_test[i].num = 0x0000FF00U; us_test[i].expected = "65280"; in test_unsigned_short_formatting()
175 i++; us_test[i].num = 0x000000FFU; us_test[i].expected = "255"; in test_unsigned_short_formatting()
177 i++; us_test[i].num = 0xF0000000U; us_test[i].expected = "4026531840"; in test_unsigned_short_formatting()
178 i++; us_test[i].num = 0x0F000000U; us_test[i].expected = "251658240"; in test_unsigned_short_formatting()
179 i++; us_test[i].num = 0x00F00000U; us_test[i].expected = "15728640"; in test_unsigned_short_formatting()
180 i++; us_test[i].num = 0x000F0000U; us_test[i].expected = "983040"; in test_unsigned_short_formatting()
181 i++; us_test[i].num = 0x0000F000U; us_test[i].expected = "61440"; in test_unsigned_short_formatting()
182 i++; us_test[i].num = 0x00000F00U; us_test[i].expected = "3840"; in test_unsigned_short_formatting()
183 i++; us_test[i].num = 0x000000F0U; us_test[i].expected = "240"; in test_unsigned_short_formatting()
184 i++; us_test[i].num = 0x0000000FU; us_test[i].expected = "15"; in test_unsigned_short_formatting()
186 i++; us_test[i].num = 0xC0000000U; us_test[i].expected = "3221225472"; in test_unsigned_short_formatting()
187 i++; us_test[i].num = 0x0C000000U; us_test[i].expected = "201326592"; in test_unsigned_short_formatting()
188 i++; us_test[i].num = 0x00C00000U; us_test[i].expected = "12582912"; in test_unsigned_short_formatting()
189 i++; us_test[i].num = 0x000C0000U; us_test[i].expected = "786432"; in test_unsigned_short_formatting()
190 i++; us_test[i].num = 0x0000C000U; us_test[i].expected = "49152"; in test_unsigned_short_formatting()
191 i++; us_test[i].num = 0x00000C00U; us_test[i].expected = "3072"; in test_unsigned_short_formatting()
192 i++; us_test[i].num = 0x000000C0U; us_test[i].expected = "192"; in test_unsigned_short_formatting()
193 i++; us_test[i].num = 0x0000000CU; us_test[i].expected = "12"; in test_unsigned_short_formatting()
195 i++; us_test[i].num = 0x00000001U; us_test[i].expected = "1"; in test_unsigned_short_formatting()
196 i++; us_test[i].num = 0x00000000U; us_test[i].expected = "0"; in test_unsigned_short_formatting()
198 num_ushort_tests = i; in test_unsigned_short_formatting()
202 for(i = 1; i <= num_ushort_tests; i++) { in test_unsigned_short_formatting()
205 us_test[i].result[j] = 'X'; in test_unsigned_short_formatting()
206 us_test[i].result[BUFSZ-1] = '\0'; in test_unsigned_short_formatting()
208 (void)curl_msprintf(us_test[i].result, "%hu", us_test[i].num); in test_unsigned_short_formatting()
210 if(memcmp(us_test[i].result, in test_unsigned_short_formatting()
211 us_test[i].expected, in test_unsigned_short_formatting()
212 strlen(us_test[i].expected))) { in test_unsigned_short_formatting()
214 i, us_test[i].expected, us_test[i].result); in test_unsigned_short_formatting()
231 int i, j; in test_signed_short_formatting() local
237 i = 1; ss_test[i].num = 0x7F; ss_test[i].expected = "127"; in test_signed_short_formatting()
239 i++; ss_test[i].num = 0x70; ss_test[i].expected = "112"; in test_signed_short_formatting()
240 i++; ss_test[i].num = 0x07; ss_test[i].expected = "7"; in test_signed_short_formatting()
242 i++; ss_test[i].num = 0x50; ss_test[i].expected = "80"; in test_signed_short_formatting()
243 i++; ss_test[i].num = 0x05; ss_test[i].expected = "5"; in test_signed_short_formatting()
245 i++; ss_test[i].num = 0x01; ss_test[i].expected = "1"; in test_signed_short_formatting()
246 i++; ss_test[i].num = 0x00; ss_test[i].expected = "0"; in test_signed_short_formatting()
248 i++; ss_test[i].num = -0x7F -1; ss_test[i].expected = "-128"; in test_signed_short_formatting()
250 i++; ss_test[i].num = -0x70 -1; ss_test[i].expected = "-113"; in test_signed_short_formatting()
251 i++; ss_test[i].num = -0x07 -1; ss_test[i].expected = "-8"; in test_signed_short_formatting()
253 i++; ss_test[i].num = -0x50 -1; ss_test[i].expected = "-81"; in test_signed_short_formatting()
254 i++; ss_test[i].num = -0x05 -1; ss_test[i].expected = "-6"; in test_signed_short_formatting()
256 i++; ss_test[i].num = 0x00 -1; ss_test[i].expected = "-1"; in test_signed_short_formatting()
258 num_sshort_tests = i; in test_signed_short_formatting()
262 i = 1; ss_test[i].num = 0x7FFF; ss_test[i].expected = "32767"; in test_signed_short_formatting()
263 i++; ss_test[i].num = 0x7FFE; ss_test[i].expected = "32766"; in test_signed_short_formatting()
264 i++; ss_test[i].num = 0x7FFD; ss_test[i].expected = "32765"; in test_signed_short_formatting()
265 i++; ss_test[i].num = 0x7F00; ss_test[i].expected = "32512"; in test_signed_short_formatting()
266 i++; ss_test[i].num = 0x07F0; ss_test[i].expected = "2032"; in test_signed_short_formatting()
267 i++; ss_test[i].num = 0x007F; ss_test[i].expected = "127"; in test_signed_short_formatting()
269 i++; ss_test[i].num = 0x7000; ss_test[i].expected = "28672"; in test_signed_short_formatting()
270 i++; ss_test[i].num = 0x0700; ss_test[i].expected = "1792"; in test_signed_short_formatting()
271 i++; ss_test[i].num = 0x0070; ss_test[i].expected = "112"; in test_signed_short_formatting()
272 i++; ss_test[i].num = 0x0007; ss_test[i].expected = "7"; in test_signed_short_formatting()
274 i++; ss_test[i].num = 0x5000; ss_test[i].expected = "20480"; in test_signed_short_formatting()
275 i++; ss_test[i].num = 0x0500; ss_test[i].expected = "1280"; in test_signed_short_formatting()
276 i++; ss_test[i].num = 0x0050; ss_test[i].expected = "80"; in test_signed_short_formatting()
277 i++; ss_test[i].num = 0x0005; ss_test[i].expected = "5"; in test_signed_short_formatting()
279 i++; ss_test[i].num = 0x0001; ss_test[i].expected = "1"; in test_signed_short_formatting()
280 i++; ss_test[i].num = 0x0000; ss_test[i].expected = "0"; in test_signed_short_formatting()
282 i++; ss_test[i].num = -0x7FFF -1; ss_test[i].expected = "-32768"; in test_signed_short_formatting()
283 i++; ss_test[i].num = -0x7FFE -1; ss_test[i].expected = "-32767"; in test_signed_short_formatting()
284 i++; ss_test[i].num = -0x7FFD -1; ss_test[i].expected = "-32766"; in test_signed_short_formatting()
285 i++; ss_test[i].num = -0x7F00 -1; ss_test[i].expected = "-32513"; in test_signed_short_formatting()
286 i++; ss_test[i].num = -0x07F0 -1; ss_test[i].expected = "-2033"; in test_signed_short_formatting()
287 i++; ss_test[i].num = -0x007F -1; ss_test[i].expected = "-128"; in test_signed_short_formatting()
289 i++; ss_test[i].num = -0x7000 -1; ss_test[i].expected = "-28673"; in test_signed_short_formatting()
290 i++; ss_test[i].num = -0x0700 -1; ss_test[i].expected = "-1793"; in test_signed_short_formatting()
291 i++; ss_test[i].num = -0x0070 -1; ss_test[i].expected = "-113"; in test_signed_short_formatting()
292 i++; ss_test[i].num = -0x0007 -1; ss_test[i].expected = "-8"; in test_signed_short_formatting()
294 i++; ss_test[i].num = -0x5000 -1; ss_test[i].expected = "-20481"; in test_signed_short_formatting()
295 i++; ss_test[i].num = -0x0500 -1; ss_test[i].expected = "-1281"; in test_signed_short_formatting()
296 i++; ss_test[i].num = -0x0050 -1; ss_test[i].expected = "-81"; in test_signed_short_formatting()
297 i++; ss_test[i].num = -0x0005 -1; ss_test[i].expected = "-6"; in test_signed_short_formatting()
299 i++; ss_test[i].num = 0x0000 -1; ss_test[i].expected = "-1"; in test_signed_short_formatting()
301 num_sshort_tests = i; in test_signed_short_formatting()
305 i = 1; ss_test[i].num = 0x7FFFFFFF; ss_test[i].expected = "2147483647"; in test_signed_short_formatting()
306 i++; ss_test[i].num = 0x7FFFFFFE; ss_test[i].expected = "2147483646"; in test_signed_short_formatting()
307 i++; ss_test[i].num = 0x7FFFFFFD; ss_test[i].expected = "2147483645"; in test_signed_short_formatting()
308 i++; ss_test[i].num = 0x7FFF0000; ss_test[i].expected = "2147418112"; in test_signed_short_formatting()
309 i++; ss_test[i].num = 0x00007FFF; ss_test[i].expected = "32767"; in test_signed_short_formatting()
311 i++; ss_test[i].num = 0x7F000000; ss_test[i].expected = "2130706432"; in test_signed_short_formatting()
312 i++; ss_test[i].num = 0x007F0000; ss_test[i].expected = "8323072"; in test_signed_short_formatting()
313 i++; ss_test[i].num = 0x00007F00; ss_test[i].expected = "32512"; in test_signed_short_formatting()
314 i++; ss_test[i].num = 0x0000007F; ss_test[i].expected = "127"; in test_signed_short_formatting()
316 i++; ss_test[i].num = 0x70000000; ss_test[i].expected = "1879048192"; in test_signed_short_formatting()
317 i++; ss_test[i].num = 0x07000000; ss_test[i].expected = "117440512"; in test_signed_short_formatting()
318 i++; ss_test[i].num = 0x00700000; ss_test[i].expected = "7340032"; in test_signed_short_formatting()
319 i++; ss_test[i].num = 0x00070000; ss_test[i].expected = "458752"; in test_signed_short_formatting()
320 i++; ss_test[i].num = 0x00007000; ss_test[i].expected = "28672"; in test_signed_short_formatting()
321 i++; ss_test[i].num = 0x00000700; ss_test[i].expected = "1792"; in test_signed_short_formatting()
322 i++; ss_test[i].num = 0x00000070; ss_test[i].expected = "112"; in test_signed_short_formatting()
323 i++; ss_test[i].num = 0x00000007; ss_test[i].expected = "7"; in test_signed_short_formatting()
325 i++; ss_test[i].num = 0x50000000; ss_test[i].expected = "1342177280"; in test_signed_short_formatting()
326 i++; ss_test[i].num = 0x05000000; ss_test[i].expected = "83886080"; in test_signed_short_formatting()
327 i++; ss_test[i].num = 0x00500000; ss_test[i].expected = "5242880"; in test_signed_short_formatting()
328 i++; ss_test[i].num = 0x00050000; ss_test[i].expected = "327680"; in test_signed_short_formatting()
329 i++; ss_test[i].num = 0x00005000; ss_test[i].expected = "20480"; in test_signed_short_formatting()
330 i++; ss_test[i].num = 0x00000500; ss_test[i].expected = "1280"; in test_signed_short_formatting()
331 i++; ss_test[i].num = 0x00000050; ss_test[i].expected = "80"; in test_signed_short_formatting()
332 i++; ss_test[i].num = 0x00000005; ss_test[i].expected = "5"; in test_signed_short_formatting()
334 i++; ss_test[i].num = 0x00000001; ss_test[i].expected = "1"; in test_signed_short_formatting()
335 i++; ss_test[i].num = 0x00000000; ss_test[i].expected = "0"; in test_signed_short_formatting()
337 i++; ss_test[i].num = -0x7FFFFFFF -1; ss_test[i].expected = "-2147483648"; in test_signed_short_formatting()
338 i++; ss_test[i].num = -0x7FFFFFFE -1; ss_test[i].expected = "-2147483647"; in test_signed_short_formatting()
339 i++; ss_test[i].num = -0x7FFFFFFD -1; ss_test[i].expected = "-2147483646"; in test_signed_short_formatting()
340 i++; ss_test[i].num = -0x7FFF0000 -1; ss_test[i].expected = "-2147418113"; in test_signed_short_formatting()
341 i++; ss_test[i].num = -0x00007FFF -1; ss_test[i].expected = "-32768"; in test_signed_short_formatting()
343 i++; ss_test[i].num = -0x7F000000 -1; ss_test[i].expected = "-2130706433"; in test_signed_short_formatting()
344 i++; ss_test[i].num = -0x007F0000 -1; ss_test[i].expected = "-8323073"; in test_signed_short_formatting()
345 i++; ss_test[i].num = -0x00007F00 -1; ss_test[i].expected = "-32513"; in test_signed_short_formatting()
346 i++; ss_test[i].num = -0x0000007F -1; ss_test[i].expected = "-128"; in test_signed_short_formatting()
348 i++; ss_test[i].num = -0x70000000 -1; ss_test[i].expected = "-1879048193"; in test_signed_short_formatting()
349 i++; ss_test[i].num = -0x07000000 -1; ss_test[i].expected = "-117440513"; in test_signed_short_formatting()
350 i++; ss_test[i].num = -0x00700000 -1; ss_test[i].expected = "-7340033"; in test_signed_short_formatting()
351 i++; ss_test[i].num = -0x00070000 -1; ss_test[i].expected = "-458753"; in test_signed_short_formatting()
352 i++; ss_test[i].num = -0x00007000 -1; ss_test[i].expected = "-28673"; in test_signed_short_formatting()
353 i++; ss_test[i].num = -0x00000700 -1; ss_test[i].expected = "-1793"; in test_signed_short_formatting()
354 i++; ss_test[i].num = -0x00000070 -1; ss_test[i].expected = "-113"; in test_signed_short_formatting()
355 i++; ss_test[i].num = -0x00000007 -1; ss_test[i].expected = "-8"; in test_signed_short_formatting()
357 i++; ss_test[i].num = -0x50000000 -1; ss_test[i].expected = "-1342177281"; in test_signed_short_formatting()
358 i++; ss_test[i].num = -0x05000000 -1; ss_test[i].expected = "-83886081"; in test_signed_short_formatting()
359 i++; ss_test[i].num = -0x00500000 -1; ss_test[i].expected = "-5242881"; in test_signed_short_formatting()
360 i++; ss_test[i].num = -0x00050000 -1; ss_test[i].expected = "-327681"; in test_signed_short_formatting()
361 i++; ss_test[i].num = -0x00005000 -1; ss_test[i].expected = "-20481"; in test_signed_short_formatting()
362 i++; ss_test[i].num = -0x00000500 -1; ss_test[i].expected = "-1281"; in test_signed_short_formatting()
363 i++; ss_test[i].num = -0x00000050 -1; ss_test[i].expected = "-81"; in test_signed_short_formatting()
364 i++; ss_test[i].num = -0x00000005 -1; ss_test[i].expected = "-6"; in test_signed_short_formatting()
366 i++; ss_test[i].num = 0x00000000 -1; ss_test[i].expected = "-1"; in test_signed_short_formatting()
368 num_sshort_tests = i; in test_signed_short_formatting()
372 for(i = 1; i <= num_sshort_tests; i++) { in test_signed_short_formatting()
375 ss_test[i].result[j] = 'X'; in test_signed_short_formatting()
376 ss_test[i].result[BUFSZ-1] = '\0'; in test_signed_short_formatting()
378 (void)curl_msprintf(ss_test[i].result, "%hd", ss_test[i].num); in test_signed_short_formatting()
380 if(memcmp(ss_test[i].result, in test_signed_short_formatting()
381 ss_test[i].expected, in test_signed_short_formatting()
382 strlen(ss_test[i].expected))) { in test_signed_short_formatting()
384 i, ss_test[i].expected, ss_test[i].result); in test_signed_short_formatting()
401 int i, j; in test_unsigned_int_formatting() local
407 i = 1; ui_test[i].num = 0xFFFFU; ui_test[i].expected = "65535"; in test_unsigned_int_formatting()
408 i++; ui_test[i].num = 0xFF00U; ui_test[i].expected = "65280"; in test_unsigned_int_formatting()
409 i++; ui_test[i].num = 0x00FFU; ui_test[i].expected = "255"; in test_unsigned_int_formatting()
411 i++; ui_test[i].num = 0xF000U; ui_test[i].expected = "61440"; in test_unsigned_int_formatting()
412 i++; ui_test[i].num = 0x0F00U; ui_test[i].expected = "3840"; in test_unsigned_int_formatting()
413 i++; ui_test[i].num = 0x00F0U; ui_test[i].expected = "240"; in test_unsigned_int_formatting()
414 i++; ui_test[i].num = 0x000FU; ui_test[i].expected = "15"; in test_unsigned_int_formatting()
416 i++; ui_test[i].num = 0xC000U; ui_test[i].expected = "49152"; in test_unsigned_int_formatting()
417 i++; ui_test[i].num = 0x0C00U; ui_test[i].expected = "3072"; in test_unsigned_int_formatting()
418 i++; ui_test[i].num = 0x00C0U; ui_test[i].expected = "192"; in test_unsigned_int_formatting()
419 i++; ui_test[i].num = 0x000CU; ui_test[i].expected = "12"; in test_unsigned_int_formatting()
421 i++; ui_test[i].num = 0x0001U; ui_test[i].expected = "1"; in test_unsigned_int_formatting()
422 i++; ui_test[i].num = 0x0000U; ui_test[i].expected = "0"; in test_unsigned_int_formatting()
424 num_uint_tests = i; in test_unsigned_int_formatting()
428 i = 1; ui_test[i].num = 0xFFFFFFFFU; ui_test[i].expected = "4294967295"; in test_unsigned_int_formatting()
429 i++; ui_test[i].num = 0xFFFF0000U; ui_test[i].expected = "4294901760"; in test_unsigned_int_formatting()
430 i++; ui_test[i].num = 0x0000FFFFU; ui_test[i].expected = "65535"; in test_unsigned_int_formatting()
432 i++; ui_test[i].num = 0xFF000000U; ui_test[i].expected = "4278190080"; in test_unsigned_int_formatting()
433 i++; ui_test[i].num = 0x00FF0000U; ui_test[i].expected = "16711680"; in test_unsigned_int_formatting()
434 i++; ui_test[i].num = 0x0000FF00U; ui_test[i].expected = "65280"; in test_unsigned_int_formatting()
435 i++; ui_test[i].num = 0x000000FFU; ui_test[i].expected = "255"; in test_unsigned_int_formatting()
437 i++; ui_test[i].num = 0xF0000000U; ui_test[i].expected = "4026531840"; in test_unsigned_int_formatting()
438 i++; ui_test[i].num = 0x0F000000U; ui_test[i].expected = "251658240"; in test_unsigned_int_formatting()
439 i++; ui_test[i].num = 0x00F00000U; ui_test[i].expected = "15728640"; in test_unsigned_int_formatting()
440 i++; ui_test[i].num = 0x000F0000U; ui_test[i].expected = "983040"; in test_unsigned_int_formatting()
441 i++; ui_test[i].num = 0x0000F000U; ui_test[i].expected = "61440"; in test_unsigned_int_formatting()
442 i++; ui_test[i].num = 0x00000F00U; ui_test[i].expected = "3840"; in test_unsigned_int_formatting()
443 i++; ui_test[i].num = 0x000000F0U; ui_test[i].expected = "240"; in test_unsigned_int_formatting()
444 i++; ui_test[i].num = 0x0000000FU; ui_test[i].expected = "15"; in test_unsigned_int_formatting()
446 i++; ui_test[i].num = 0xC0000000U; ui_test[i].expected = "3221225472"; in test_unsigned_int_formatting()
447 i++; ui_test[i].num = 0x0C000000U; ui_test[i].expected = "201326592"; in test_unsigned_int_formatting()
448 i++; ui_test[i].num = 0x00C00000U; ui_test[i].expected = "12582912"; in test_unsigned_int_formatting()
449 i++; ui_test[i].num = 0x000C0000U; ui_test[i].expected = "786432"; in test_unsigned_int_formatting()
450 i++; ui_test[i].num = 0x0000C000U; ui_test[i].expected = "49152"; in test_unsigned_int_formatting()
451 i++; ui_test[i].num = 0x00000C00U; ui_test[i].expected = "3072"; in test_unsigned_int_formatting()
452 i++; ui_test[i].num = 0x000000C0U; ui_test[i].expected = "192"; in test_unsigned_int_formatting()
453 i++; ui_test[i].num = 0x0000000CU; ui_test[i].expected = "12"; in test_unsigned_int_formatting()
455 i++; ui_test[i].num = 0x00000001U; ui_test[i].expected = "1"; in test_unsigned_int_formatting()
456 i++; ui_test[i].num = 0x00000000U; ui_test[i].expected = "0"; in test_unsigned_int_formatting()
458 num_uint_tests = i; in test_unsigned_int_formatting()
463 i = 1; ui_test[i].num = 0xFFFFFFFFFFFFFFFFU; ui_test[i].expected = "18446744073709551615"; in test_unsigned_int_formatting()
464 i++; ui_test[i].num = 0xFFFFFFFF00000000U; ui_test[i].expected = "18446744069414584320"; in test_unsigned_int_formatting()
465 i++; ui_test[i].num = 0x00000000FFFFFFFFU; ui_test[i].expected = "4294967295"; in test_unsigned_int_formatting()
467 i++; ui_test[i].num = 0xFFFF000000000000U; ui_test[i].expected = "18446462598732840960"; in test_unsigned_int_formatting()
468 i++; ui_test[i].num = 0x0000FFFF00000000U; ui_test[i].expected = "281470681743360"; in test_unsigned_int_formatting()
469 i++; ui_test[i].num = 0x00000000FFFF0000U; ui_test[i].expected = "4294901760"; in test_unsigned_int_formatting()
470 i++; ui_test[i].num = 0x000000000000FFFFU; ui_test[i].expected = "65535"; in test_unsigned_int_formatting()
472 i++; ui_test[i].num = 0xFF00000000000000U; ui_test[i].expected = "18374686479671623680"; in test_unsigned_int_formatting()
473 i++; ui_test[i].num = 0x00FF000000000000U; ui_test[i].expected = "71776119061217280"; in test_unsigned_int_formatting()
474 i++; ui_test[i].num = 0x0000FF0000000000U; ui_test[i].expected = "280375465082880"; in test_unsigned_int_formatting()
475 i++; ui_test[i].num = 0x000000FF00000000U; ui_test[i].expected = "1095216660480"; in test_unsigned_int_formatting()
476 i++; ui_test[i].num = 0x00000000FF000000U; ui_test[i].expected = "4278190080"; in test_unsigned_int_formatting()
477 i++; ui_test[i].num = 0x0000000000FF0000U; ui_test[i].expected = "16711680"; in test_unsigned_int_formatting()
478 i++; ui_test[i].num = 0x000000000000FF00U; ui_test[i].expected = "65280"; in test_unsigned_int_formatting()
479 i++; ui_test[i].num = 0x00000000000000FFU; ui_test[i].expected = "255"; in test_unsigned_int_formatting()
481 i++; ui_test[i].num = 0xF000000000000000U; ui_test[i].expected = "17293822569102704640"; in test_unsigned_int_formatting()
482 i++; ui_test[i].num = 0x0F00000000000000U; ui_test[i].expected = "1080863910568919040"; in test_unsigned_int_formatting()
483 i++; ui_test[i].num = 0x00F0000000000000U; ui_test[i].expected = "67553994410557440"; in test_unsigned_int_formatting()
484 i++; ui_test[i].num = 0x000F000000000000U; ui_test[i].expected = "4222124650659840"; in test_unsigned_int_formatting()
485 i++; ui_test[i].num = 0x0000F00000000000U; ui_test[i].expected = "263882790666240"; in test_unsigned_int_formatting()
486 i++; ui_test[i].num = 0x00000F0000000000U; ui_test[i].expected = "16492674416640"; in test_unsigned_int_formatting()
487 i++; ui_test[i].num = 0x000000F000000000U; ui_test[i].expected = "1030792151040"; in test_unsigned_int_formatting()
488 i++; ui_test[i].num = 0x0000000F00000000U; ui_test[i].expected = "64424509440"; in test_unsigned_int_formatting()
489 i++; ui_test[i].num = 0x00000000F0000000U; ui_test[i].expected = "4026531840"; in test_unsigned_int_formatting()
490 i++; ui_test[i].num = 0x000000000F000000U; ui_test[i].expected = "251658240"; in test_unsigned_int_formatting()
491 i++; ui_test[i].num = 0x0000000000F00000U; ui_test[i].expected = "15728640"; in test_unsigned_int_formatting()
492 i++; ui_test[i].num = 0x00000000000F0000U; ui_test[i].expected = "983040"; in test_unsigned_int_formatting()
493 i++; ui_test[i].num = 0x000000000000F000U; ui_test[i].expected = "61440"; in test_unsigned_int_formatting()
494 i++; ui_test[i].num = 0x0000000000000F00U; ui_test[i].expected = "3840"; in test_unsigned_int_formatting()
495 i++; ui_test[i].num = 0x00000000000000F0U; ui_test[i].expected = "240"; in test_unsigned_int_formatting()
496 i++; ui_test[i].num = 0x000000000000000FU; ui_test[i].expected = "15"; in test_unsigned_int_formatting()
498 i++; ui_test[i].num = 0xC000000000000000U; ui_test[i].expected = "13835058055282163712"; in test_unsigned_int_formatting()
499 i++; ui_test[i].num = 0x0C00000000000000U; ui_test[i].expected = "864691128455135232"; in test_unsigned_int_formatting()
500 i++; ui_test[i].num = 0x00C0000000000000U; ui_test[i].expected = "54043195528445952"; in test_unsigned_int_formatting()
501 i++; ui_test[i].num = 0x000C000000000000U; ui_test[i].expected = "3377699720527872"; in test_unsigned_int_formatting()
502 i++; ui_test[i].num = 0x0000C00000000000U; ui_test[i].expected = "211106232532992"; in test_unsigned_int_formatting()
503 i++; ui_test[i].num = 0x00000C0000000000U; ui_test[i].expected = "13194139533312"; in test_unsigned_int_formatting()
504 i++; ui_test[i].num = 0x000000C000000000U; ui_test[i].expected = "824633720832"; in test_unsigned_int_formatting()
505 i++; ui_test[i].num = 0x0000000C00000000U; ui_test[i].expected = "51539607552"; in test_unsigned_int_formatting()
506 i++; ui_test[i].num = 0x00000000C0000000U; ui_test[i].expected = "3221225472"; in test_unsigned_int_formatting()
507 i++; ui_test[i].num = 0x000000000C000000U; ui_test[i].expected = "201326592"; in test_unsigned_int_formatting()
508 i++; ui_test[i].num = 0x0000000000C00000U; ui_test[i].expected = "12582912"; in test_unsigned_int_formatting()
509 i++; ui_test[i].num = 0x00000000000C0000U; ui_test[i].expected = "786432"; in test_unsigned_int_formatting()
510 i++; ui_test[i].num = 0x000000000000C000U; ui_test[i].expected = "49152"; in test_unsigned_int_formatting()
511 i++; ui_test[i].num = 0x0000000000000C00U; ui_test[i].expected = "3072"; in test_unsigned_int_formatting()
512 i++; ui_test[i].num = 0x00000000000000C0U; ui_test[i].expected = "192"; in test_unsigned_int_formatting()
513 i++; ui_test[i].num = 0x000000000000000CU; ui_test[i].expected = "12"; in test_unsigned_int_formatting()
515 i++; ui_test[i].num = 0x00000001U; ui_test[i].expected = "1"; in test_unsigned_int_formatting()
516 i++; ui_test[i].num = 0x00000000U; ui_test[i].expected = "0"; in test_unsigned_int_formatting()
518 num_uint_tests = i; in test_unsigned_int_formatting()
522 for(i = 1; i <= num_uint_tests; i++) { in test_unsigned_int_formatting()
525 ui_test[i].result[j] = 'X'; in test_unsigned_int_formatting()
526 ui_test[i].result[BUFSZ-1] = '\0'; in test_unsigned_int_formatting()
528 (void)curl_msprintf(ui_test[i].result, "%u", ui_test[i].num); in test_unsigned_int_formatting()
530 if(memcmp(ui_test[i].result, in test_unsigned_int_formatting()
531 ui_test[i].expected, in test_unsigned_int_formatting()
532 strlen(ui_test[i].expected))) { in test_unsigned_int_formatting()
534 i, ui_test[i].expected, ui_test[i].result); in test_unsigned_int_formatting()
551 int i, j; in test_signed_int_formatting() local
557 i = 1; si_test[i].num = 0x7FFF; si_test[i].expected = "32767"; in test_signed_int_formatting()
558 i++; si_test[i].num = 0x7FFE; si_test[i].expected = "32766"; in test_signed_int_formatting()
559 i++; si_test[i].num = 0x7FFD; si_test[i].expected = "32765"; in test_signed_int_formatting()
560 i++; si_test[i].num = 0x7F00; si_test[i].expected = "32512"; in test_signed_int_formatting()
561 i++; si_test[i].num = 0x07F0; si_test[i].expected = "2032"; in test_signed_int_formatting()
562 i++; si_test[i].num = 0x007F; si_test[i].expected = "127"; in test_signed_int_formatting()
564 i++; si_test[i].num = 0x7000; si_test[i].expected = "28672"; in test_signed_int_formatting()
565 i++; si_test[i].num = 0x0700; si_test[i].expected = "1792"; in test_signed_int_formatting()
566 i++; si_test[i].num = 0x0070; si_test[i].expected = "112"; in test_signed_int_formatting()
567 i++; si_test[i].num = 0x0007; si_test[i].expected = "7"; in test_signed_int_formatting()
569 i++; si_test[i].num = 0x5000; si_test[i].expected = "20480"; in test_signed_int_formatting()
570 i++; si_test[i].num = 0x0500; si_test[i].expected = "1280"; in test_signed_int_formatting()
571 i++; si_test[i].num = 0x0050; si_test[i].expected = "80"; in test_signed_int_formatting()
572 i++; si_test[i].num = 0x0005; si_test[i].expected = "5"; in test_signed_int_formatting()
574 i++; si_test[i].num = 0x0001; si_test[i].expected = "1"; in test_signed_int_formatting()
575 i++; si_test[i].num = 0x0000; si_test[i].expected = "0"; in test_signed_int_formatting()
577 i++; si_test[i].num = -0x7FFF -1; si_test[i].expected = "-32768"; in test_signed_int_formatting()
578 i++; si_test[i].num = -0x7FFE -1; si_test[i].expected = "-32767"; in test_signed_int_formatting()
579 i++; si_test[i].num = -0x7FFD -1; si_test[i].expected = "-32766"; in test_signed_int_formatting()
580 i++; si_test[i].num = -0x7F00 -1; si_test[i].expected = "-32513"; in test_signed_int_formatting()
581 i++; si_test[i].num = -0x07F0 -1; si_test[i].expected = "-2033"; in test_signed_int_formatting()
582 i++; si_test[i].num = -0x007F -1; si_test[i].expected = "-128"; in test_signed_int_formatting()
584 i++; si_test[i].num = -0x7000 -1; si_test[i].expected = "-28673"; in test_signed_int_formatting()
585 i++; si_test[i].num = -0x0700 -1; si_test[i].expected = "-1793"; in test_signed_int_formatting()
586 i++; si_test[i].num = -0x0070 -1; si_test[i].expected = "-113"; in test_signed_int_formatting()
587 i++; si_test[i].num = -0x0007 -1; si_test[i].expected = "-8"; in test_signed_int_formatting()
589 i++; si_test[i].num = -0x5000 -1; si_test[i].expected = "-20481"; in test_signed_int_formatting()
590 i++; si_test[i].num = -0x0500 -1; si_test[i].expected = "-1281"; in test_signed_int_formatting()
591 i++; si_test[i].num = -0x0050 -1; si_test[i].expected = "-81"; in test_signed_int_formatting()
592 i++; si_test[i].num = -0x0005 -1; si_test[i].expected = "-6"; in test_signed_int_formatting()
594 i++; si_test[i].num = 0x0000 -1; si_test[i].expected = "-1"; in test_signed_int_formatting()
596 num_sint_tests = i; in test_signed_int_formatting()
600 i = 1; si_test[i].num = 0x7FFFFFFF; si_test[i].expected = "2147483647"; in test_signed_int_formatting()
601 i++; si_test[i].num = 0x7FFFFFFE; si_test[i].expected = "2147483646"; in test_signed_int_formatting()
602 i++; si_test[i].num = 0x7FFFFFFD; si_test[i].expected = "2147483645"; in test_signed_int_formatting()
603 i++; si_test[i].num = 0x7FFF0000; si_test[i].expected = "2147418112"; in test_signed_int_formatting()
604 i++; si_test[i].num = 0x00007FFF; si_test[i].expected = "32767"; in test_signed_int_formatting()
606 i++; si_test[i].num = 0x7F000000; si_test[i].expected = "2130706432"; in test_signed_int_formatting()
607 i++; si_test[i].num = 0x007F0000; si_test[i].expected = "8323072"; in test_signed_int_formatting()
608 i++; si_test[i].num = 0x00007F00; si_test[i].expected = "32512"; in test_signed_int_formatting()
609 i++; si_test[i].num = 0x0000007F; si_test[i].expected = "127"; in test_signed_int_formatting()
611 i++; si_test[i].num = 0x70000000; si_test[i].expected = "1879048192"; in test_signed_int_formatting()
612 i++; si_test[i].num = 0x07000000; si_test[i].expected = "117440512"; in test_signed_int_formatting()
613 i++; si_test[i].num = 0x00700000; si_test[i].expected = "7340032"; in test_signed_int_formatting()
614 i++; si_test[i].num = 0x00070000; si_test[i].expected = "458752"; in test_signed_int_formatting()
615 i++; si_test[i].num = 0x00007000; si_test[i].expected = "28672"; in test_signed_int_formatting()
616 i++; si_test[i].num = 0x00000700; si_test[i].expected = "1792"; in test_signed_int_formatting()
617 i++; si_test[i].num = 0x00000070; si_test[i].expected = "112"; in test_signed_int_formatting()
618 i++; si_test[i].num = 0x00000007; si_test[i].expected = "7"; in test_signed_int_formatting()
620 i++; si_test[i].num = 0x50000000; si_test[i].expected = "1342177280"; in test_signed_int_formatting()
621 i++; si_test[i].num = 0x05000000; si_test[i].expected = "83886080"; in test_signed_int_formatting()
622 i++; si_test[i].num = 0x00500000; si_test[i].expected = "5242880"; in test_signed_int_formatting()
623 i++; si_test[i].num = 0x00050000; si_test[i].expected = "327680"; in test_signed_int_formatting()
624 i++; si_test[i].num = 0x00005000; si_test[i].expected = "20480"; in test_signed_int_formatting()
625 i++; si_test[i].num = 0x00000500; si_test[i].expected = "1280"; in test_signed_int_formatting()
626 i++; si_test[i].num = 0x00000050; si_test[i].expected = "80"; in test_signed_int_formatting()
627 i++; si_test[i].num = 0x00000005; si_test[i].expected = "5"; in test_signed_int_formatting()
629 i++; si_test[i].num = 0x00000001; si_test[i].expected = "1"; in test_signed_int_formatting()
630 i++; si_test[i].num = 0x00000000; si_test[i].expected = "0"; in test_signed_int_formatting()
632 i++; si_test[i].num = -0x7FFFFFFF -1; si_test[i].expected = "-2147483648"; in test_signed_int_formatting()
633 i++; si_test[i].num = -0x7FFFFFFE -1; si_test[i].expected = "-2147483647"; in test_signed_int_formatting()
634 i++; si_test[i].num = -0x7FFFFFFD -1; si_test[i].expected = "-2147483646"; in test_signed_int_formatting()
635 i++; si_test[i].num = -0x7FFF0000 -1; si_test[i].expected = "-2147418113"; in test_signed_int_formatting()
636 i++; si_test[i].num = -0x00007FFF -1; si_test[i].expected = "-32768"; in test_signed_int_formatting()
638 i++; si_test[i].num = -0x7F000000 -1; si_test[i].expected = "-2130706433"; in test_signed_int_formatting()
639 i++; si_test[i].num = -0x007F0000 -1; si_test[i].expected = "-8323073"; in test_signed_int_formatting()
640 i++; si_test[i].num = -0x00007F00 -1; si_test[i].expected = "-32513"; in test_signed_int_formatting()
641 i++; si_test[i].num = -0x0000007F -1; si_test[i].expected = "-128"; in test_signed_int_formatting()
643 i++; si_test[i].num = -0x70000000 -1; si_test[i].expected = "-1879048193"; in test_signed_int_formatting()
644 i++; si_test[i].num = -0x07000000 -1; si_test[i].expected = "-117440513"; in test_signed_int_formatting()
645 i++; si_test[i].num = -0x00700000 -1; si_test[i].expected = "-7340033"; in test_signed_int_formatting()
646 i++; si_test[i].num = -0x00070000 -1; si_test[i].expected = "-458753"; in test_signed_int_formatting()
647 i++; si_test[i].num = -0x00007000 -1; si_test[i].expected = "-28673"; in test_signed_int_formatting()
648 i++; si_test[i].num = -0x00000700 -1; si_test[i].expected = "-1793"; in test_signed_int_formatting()
649 i++; si_test[i].num = -0x00000070 -1; si_test[i].expected = "-113"; in test_signed_int_formatting()
650 i++; si_test[i].num = -0x00000007 -1; si_test[i].expected = "-8"; in test_signed_int_formatting()
652 i++; si_test[i].num = -0x50000000 -1; si_test[i].expected = "-1342177281"; in test_signed_int_formatting()
653 i++; si_test[i].num = -0x05000000 -1; si_test[i].expected = "-83886081"; in test_signed_int_formatting()
654 i++; si_test[i].num = -0x00500000 -1; si_test[i].expected = "-5242881"; in test_signed_int_formatting()
655 i++; si_test[i].num = -0x00050000 -1; si_test[i].expected = "-327681"; in test_signed_int_formatting()
656 i++; si_test[i].num = -0x00005000 -1; si_test[i].expected = "-20481"; in test_signed_int_formatting()
657 i++; si_test[i].num = -0x00000500 -1; si_test[i].expected = "-1281"; in test_signed_int_formatting()
658 i++; si_test[i].num = -0x00000050 -1; si_test[i].expected = "-81"; in test_signed_int_formatting()
659 i++; si_test[i].num = -0x00000005 -1; si_test[i].expected = "-6"; in test_signed_int_formatting()
661 i++; si_test[i].num = 0x00000000 -1; si_test[i].expected = "-1"; in test_signed_int_formatting()
663 num_sint_tests = i; in test_signed_int_formatting()
667 i = 1; si_test[i].num = 0x7FFFFFFFFFFFFFFF; si_test[i].expected = "9223372036854775807"; in test_signed_int_formatting()
668 i++; si_test[i].num = 0x7FFFFFFFFFFFFFFE; si_test[i].expected = "9223372036854775806"; in test_signed_int_formatting()
669 i++; si_test[i].num = 0x7FFFFFFFFFFFFFFD; si_test[i].expected = "9223372036854775805"; in test_signed_int_formatting()
670 i++; si_test[i].num = 0x7FFFFFFF00000000; si_test[i].expected = "9223372032559808512"; in test_signed_int_formatting()
671 i++; si_test[i].num = 0x000000007FFFFFFF; si_test[i].expected = "2147483647"; in test_signed_int_formatting()
673 i++; si_test[i].num = 0x7FFF000000000000; si_test[i].expected = "9223090561878065152"; in test_signed_int_formatting()
674 i++; si_test[i].num = 0x00007FFF00000000; si_test[i].expected = "140733193388032"; in test_signed_int_formatting()
675 i++; si_test[i].num = 0x000000007FFF0000; si_test[i].expected = "2147418112"; in test_signed_int_formatting()
676 i++; si_test[i].num = 0x0000000000007FFF; si_test[i].expected = "32767"; in test_signed_int_formatting()
678 i++; si_test[i].num = 0x7F00000000000000; si_test[i].expected = "9151314442816847872"; in test_signed_int_formatting()
679 i++; si_test[i].num = 0x007F000000000000; si_test[i].expected = "35747322042253312"; in test_signed_int_formatting()
680 i++; si_test[i].num = 0x00007F0000000000; si_test[i].expected = "139637976727552"; in test_signed_int_formatting()
681 i++; si_test[i].num = 0x0000007F00000000; si_test[i].expected = "545460846592"; in test_signed_int_formatting()
682 i++; si_test[i].num = 0x000000007F000000; si_test[i].expected = "2130706432"; in test_signed_int_formatting()
683 i++; si_test[i].num = 0x00000000007F0000; si_test[i].expected = "8323072"; in test_signed_int_formatting()
684 i++; si_test[i].num = 0x0000000000007F00; si_test[i].expected = "32512"; in test_signed_int_formatting()
685 i++; si_test[i].num = 0x000000000000007F; si_test[i].expected = "127"; in test_signed_int_formatting()
687 i++; si_test[i].num = 0x7000000000000000; si_test[i].expected = "8070450532247928832"; in test_signed_int_formatting()
688 i++; si_test[i].num = 0x0700000000000000; si_test[i].expected = "504403158265495552"; in test_signed_int_formatting()
689 i++; si_test[i].num = 0x0070000000000000; si_test[i].expected = "31525197391593472"; in test_signed_int_formatting()
690 i++; si_test[i].num = 0x0007000000000000; si_test[i].expected = "1970324836974592"; in test_signed_int_formatting()
691 i++; si_test[i].num = 0x0000700000000000; si_test[i].expected = "123145302310912"; in test_signed_int_formatting()
692 i++; si_test[i].num = 0x0000070000000000; si_test[i].expected = "7696581394432"; in test_signed_int_formatting()
693 i++; si_test[i].num = 0x0000007000000000; si_test[i].expected = "481036337152"; in test_signed_int_formatting()
694 i++; si_test[i].num = 0x0000000700000000; si_test[i].expected = "30064771072"; in test_signed_int_formatting()
695 i++; si_test[i].num = 0x0000000070000000; si_test[i].expected = "1879048192"; in test_signed_int_formatting()
696 i++; si_test[i].num = 0x0000000007000000; si_test[i].expected = "117440512"; in test_signed_int_formatting()
697 i++; si_test[i].num = 0x0000000000700000; si_test[i].expected = "7340032"; in test_signed_int_formatting()
698 i++; si_test[i].num = 0x0000000000070000; si_test[i].expected = "458752"; in test_signed_int_formatting()
699 i++; si_test[i].num = 0x0000000000007000; si_test[i].expected = "28672"; in test_signed_int_formatting()
700 i++; si_test[i].num = 0x0000000000000700; si_test[i].expected = "1792"; in test_signed_int_formatting()
701 i++; si_test[i].num = 0x0000000000000070; si_test[i].expected = "112"; in test_signed_int_formatting()
702 i++; si_test[i].num = 0x0000000000000007; si_test[i].expected = "7"; in test_signed_int_formatting()
704 i++; si_test[i].num = 0x0000000000000001; si_test[i].expected = "1"; in test_signed_int_formatting()
705 i++; si_test[i].num = 0x0000000000000000; si_test[i].expected = "0"; in test_signed_int_formatting()
707 i++; si_test[i].num = -0x7FFFFFFFFFFFFFFF -1; si_test[i].expected = "-9223372036854775808"; in test_signed_int_formatting()
708 i++; si_test[i].num = -0x7FFFFFFFFFFFFFFE -1; si_test[i].expected = "-9223372036854775807"; in test_signed_int_formatting()
709 i++; si_test[i].num = -0x7FFFFFFFFFFFFFFD -1; si_test[i].expected = "-9223372036854775806"; in test_signed_int_formatting()
710 i++; si_test[i].num = -0x7FFFFFFF00000000 -1; si_test[i].expected = "-9223372032559808513"; in test_signed_int_formatting()
711 i++; si_test[i].num = -0x000000007FFFFFFF -1; si_test[i].expected = "-2147483648"; in test_signed_int_formatting()
713 i++; si_test[i].num = -0x7FFF000000000000 -1; si_test[i].expected = "-9223090561878065153"; in test_signed_int_formatting()
714 i++; si_test[i].num = -0x00007FFF00000000 -1; si_test[i].expected = "-140733193388033"; in test_signed_int_formatting()
715 i++; si_test[i].num = -0x000000007FFF0000 -1; si_test[i].expected = "-2147418113"; in test_signed_int_formatting()
716 i++; si_test[i].num = -0x0000000000007FFF -1; si_test[i].expected = "-32768"; in test_signed_int_formatting()
718 i++; si_test[i].num = -0x7F00000000000000 -1; si_test[i].expected = "-9151314442816847873"; in test_signed_int_formatting()
719 i++; si_test[i].num = -0x007F000000000000 -1; si_test[i].expected = "-35747322042253313"; in test_signed_int_formatting()
720 i++; si_test[i].num = -0x00007F0000000000 -1; si_test[i].expected = "-139637976727553"; in test_signed_int_formatting()
721 i++; si_test[i].num = -0x0000007F00000000 -1; si_test[i].expected = "-545460846593"; in test_signed_int_formatting()
722 i++; si_test[i].num = -0x000000007F000000 -1; si_test[i].expected = "-2130706433"; in test_signed_int_formatting()
723 i++; si_test[i].num = -0x00000000007F0000 -1; si_test[i].expected = "-8323073"; in test_signed_int_formatting()
724 i++; si_test[i].num = -0x0000000000007F00 -1; si_test[i].expected = "-32513"; in test_signed_int_formatting()
725 i++; si_test[i].num = -0x000000000000007F -1; si_test[i].expected = "-128"; in test_signed_int_formatting()
727 i++; si_test[i].num = -0x7000000000000000 -1; si_test[i].expected = "-8070450532247928833"; in test_signed_int_formatting()
728 i++; si_test[i].num = -0x0700000000000000 -1; si_test[i].expected = "-504403158265495553"; in test_signed_int_formatting()
729 i++; si_test[i].num = -0x0070000000000000 -1; si_test[i].expected = "-31525197391593473"; in test_signed_int_formatting()
730 i++; si_test[i].num = -0x0007000000000000 -1; si_test[i].expected = "-1970324836974593"; in test_signed_int_formatting()
731 i++; si_test[i].num = -0x0000700000000000 -1; si_test[i].expected = "-123145302310913"; in test_signed_int_formatting()
732 i++; si_test[i].num = -0x0000070000000000 -1; si_test[i].expected = "-7696581394433"; in test_signed_int_formatting()
733 i++; si_test[i].num = -0x0000007000000000 -1; si_test[i].expected = "-481036337153"; in test_signed_int_formatting()
734 i++; si_test[i].num = -0x0000000700000000 -1; si_test[i].expected = "-30064771073"; in test_signed_int_formatting()
735 i++; si_test[i].num = -0x0000000070000000 -1; si_test[i].expected = "-1879048193"; in test_signed_int_formatting()
736 i++; si_test[i].num = -0x0000000007000000 -1; si_test[i].expected = "-117440513"; in test_signed_int_formatting()
737 i++; si_test[i].num = -0x0000000000700000 -1; si_test[i].expected = "-7340033"; in test_signed_int_formatting()
738 i++; si_test[i].num = -0x0000000000070000 -1; si_test[i].expected = "-458753"; in test_signed_int_formatting()
739 i++; si_test[i].num = -0x0000000000007000 -1; si_test[i].expected = "-28673"; in test_signed_int_formatting()
740 i++; si_test[i].num = -0x0000000000000700 -1; si_test[i].expected = "-1793"; in test_signed_int_formatting()
741 i++; si_test[i].num = -0x0000000000000070 -1; si_test[i].expected = "-113"; in test_signed_int_formatting()
742 i++; si_test[i].num = -0x0000000000000007 -1; si_test[i].expected = "-8"; in test_signed_int_formatting()
744 i++; si_test[i].num = 0x0000000000000000 -1; si_test[i].expected = "-1"; in test_signed_int_formatting()
746 num_sint_tests = i; in test_signed_int_formatting()
750 for(i = 1; i <= num_sint_tests; i++) { in test_signed_int_formatting()
753 si_test[i].result[j] = 'X'; in test_signed_int_formatting()
754 si_test[i].result[BUFSZ-1] = '\0'; in test_signed_int_formatting()
756 (void)curl_msprintf(si_test[i].result, "%d", si_test[i].num); in test_signed_int_formatting()
758 if(memcmp(si_test[i].result, in test_signed_int_formatting()
759 si_test[i].expected, in test_signed_int_formatting()
760 strlen(si_test[i].expected))) { in test_signed_int_formatting()
762 i, si_test[i].expected, si_test[i].result); in test_signed_int_formatting()
779 int i, j; in test_unsigned_long_formatting() local
785 i = 1; ul_test[i].num = 0xFFFFUL; ul_test[i].expected = "65535"; in test_unsigned_long_formatting()
786 i++; ul_test[i].num = 0xFF00UL; ul_test[i].expected = "65280"; in test_unsigned_long_formatting()
787 i++; ul_test[i].num = 0x00FFUL; ul_test[i].expected = "255"; in test_unsigned_long_formatting()
789 i++; ul_test[i].num = 0xF000UL; ul_test[i].expected = "61440"; in test_unsigned_long_formatting()
790 i++; ul_test[i].num = 0x0F00UL; ul_test[i].expected = "3840"; in test_unsigned_long_formatting()
791 i++; ul_test[i].num = 0x00F0UL; ul_test[i].expected = "240"; in test_unsigned_long_formatting()
792 i++; ul_test[i].num = 0x000FUL; ul_test[i].expected = "15"; in test_unsigned_long_formatting()
794 i++; ul_test[i].num = 0xC000UL; ul_test[i].expected = "49152"; in test_unsigned_long_formatting()
795 i++; ul_test[i].num = 0x0C00UL; ul_test[i].expected = "3072"; in test_unsigned_long_formatting()
796 i++; ul_test[i].num = 0x00C0UL; ul_test[i].expected = "192"; in test_unsigned_long_formatting()
797 i++; ul_test[i].num = 0x000CUL; ul_test[i].expected = "12"; in test_unsigned_long_formatting()
799 i++; ul_test[i].num = 0x0001UL; ul_test[i].expected = "1"; in test_unsigned_long_formatting()
800 i++; ul_test[i].num = 0x0000UL; ul_test[i].expected = "0"; in test_unsigned_long_formatting()
802 num_ulong_tests = i; in test_unsigned_long_formatting()
806 i = 1; ul_test[i].num = 0xFFFFFFFFUL; ul_test[i].expected = "4294967295"; in test_unsigned_long_formatting()
807 i++; ul_test[i].num = 0xFFFF0000UL; ul_test[i].expected = "4294901760"; in test_unsigned_long_formatting()
808 i++; ul_test[i].num = 0x0000FFFFUL; ul_test[i].expected = "65535"; in test_unsigned_long_formatting()
810 i++; ul_test[i].num = 0xFF000000UL; ul_test[i].expected = "4278190080"; in test_unsigned_long_formatting()
811 i++; ul_test[i].num = 0x00FF0000UL; ul_test[i].expected = "16711680"; in test_unsigned_long_formatting()
812 i++; ul_test[i].num = 0x0000FF00UL; ul_test[i].expected = "65280"; in test_unsigned_long_formatting()
813 i++; ul_test[i].num = 0x000000FFUL; ul_test[i].expected = "255"; in test_unsigned_long_formatting()
815 i++; ul_test[i].num = 0xF0000000UL; ul_test[i].expected = "4026531840"; in test_unsigned_long_formatting()
816 i++; ul_test[i].num = 0x0F000000UL; ul_test[i].expected = "251658240"; in test_unsigned_long_formatting()
817 i++; ul_test[i].num = 0x00F00000UL; ul_test[i].expected = "15728640"; in test_unsigned_long_formatting()
818 i++; ul_test[i].num = 0x000F0000UL; ul_test[i].expected = "983040"; in test_unsigned_long_formatting()
819 i++; ul_test[i].num = 0x0000F000UL; ul_test[i].expected = "61440"; in test_unsigned_long_formatting()
820 i++; ul_test[i].num = 0x00000F00UL; ul_test[i].expected = "3840"; in test_unsigned_long_formatting()
821 i++; ul_test[i].num = 0x000000F0UL; ul_test[i].expected = "240"; in test_unsigned_long_formatting()
822 i++; ul_test[i].num = 0x0000000FUL; ul_test[i].expected = "15"; in test_unsigned_long_formatting()
824 i++; ul_test[i].num = 0xC0000000UL; ul_test[i].expected = "3221225472"; in test_unsigned_long_formatting()
825 i++; ul_test[i].num = 0x0C000000UL; ul_test[i].expected = "201326592"; in test_unsigned_long_formatting()
826 i++; ul_test[i].num = 0x00C00000UL; ul_test[i].expected = "12582912"; in test_unsigned_long_formatting()
827 i++; ul_test[i].num = 0x000C0000UL; ul_test[i].expected = "786432"; in test_unsigned_long_formatting()
828 i++; ul_test[i].num = 0x0000C000UL; ul_test[i].expected = "49152"; in test_unsigned_long_formatting()
829 i++; ul_test[i].num = 0x00000C00UL; ul_test[i].expected = "3072"; in test_unsigned_long_formatting()
830 i++; ul_test[i].num = 0x000000C0UL; ul_test[i].expected = "192"; in test_unsigned_long_formatting()
831 i++; ul_test[i].num = 0x0000000CUL; ul_test[i].expected = "12"; in test_unsigned_long_formatting()
833 i++; ul_test[i].num = 0x00000001UL; ul_test[i].expected = "1"; in test_unsigned_long_formatting()
834 i++; ul_test[i].num = 0x00000000UL; ul_test[i].expected = "0"; in test_unsigned_long_formatting()
836 num_ulong_tests = i; in test_unsigned_long_formatting()
840 i = 1; ul_test[i].num = 0xFFFFFFFFFFFFFFFFUL; ul_test[i].expected = "18446744073709551615"; in test_unsigned_long_formatting()
841 i++; ul_test[i].num = 0xFFFFFFFF00000000UL; ul_test[i].expected = "18446744069414584320"; in test_unsigned_long_formatting()
842 i++; ul_test[i].num = 0x00000000FFFFFFFFUL; ul_test[i].expected = "4294967295"; in test_unsigned_long_formatting()
844 i++; ul_test[i].num = 0xFFFF000000000000UL; ul_test[i].expected = "18446462598732840960"; in test_unsigned_long_formatting()
845 i++; ul_test[i].num = 0x0000FFFF00000000UL; ul_test[i].expected = "281470681743360"; in test_unsigned_long_formatting()
846 i++; ul_test[i].num = 0x00000000FFFF0000UL; ul_test[i].expected = "4294901760"; in test_unsigned_long_formatting()
847 i++; ul_test[i].num = 0x000000000000FFFFUL; ul_test[i].expected = "65535"; in test_unsigned_long_formatting()
849 i++; ul_test[i].num = 0xFF00000000000000UL; ul_test[i].expected = "18374686479671623680"; in test_unsigned_long_formatting()
850 i++; ul_test[i].num = 0x00FF000000000000UL; ul_test[i].expected = "71776119061217280"; in test_unsigned_long_formatting()
851 i++; ul_test[i].num = 0x0000FF0000000000UL; ul_test[i].expected = "280375465082880"; in test_unsigned_long_formatting()
852 i++; ul_test[i].num = 0x000000FF00000000UL; ul_test[i].expected = "1095216660480"; in test_unsigned_long_formatting()
853 i++; ul_test[i].num = 0x00000000FF000000UL; ul_test[i].expected = "4278190080"; in test_unsigned_long_formatting()
854 i++; ul_test[i].num = 0x0000000000FF0000UL; ul_test[i].expected = "16711680"; in test_unsigned_long_formatting()
855 i++; ul_test[i].num = 0x000000000000FF00UL; ul_test[i].expected = "65280"; in test_unsigned_long_formatting()
856 i++; ul_test[i].num = 0x00000000000000FFUL; ul_test[i].expected = "255"; in test_unsigned_long_formatting()
858 i++; ul_test[i].num = 0xF000000000000000UL; ul_test[i].expected = "17293822569102704640"; in test_unsigned_long_formatting()
859 i++; ul_test[i].num = 0x0F00000000000000UL; ul_test[i].expected = "1080863910568919040"; in test_unsigned_long_formatting()
860 i++; ul_test[i].num = 0x00F0000000000000UL; ul_test[i].expected = "67553994410557440"; in test_unsigned_long_formatting()
861 i++; ul_test[i].num = 0x000F000000000000UL; ul_test[i].expected = "4222124650659840"; in test_unsigned_long_formatting()
862 i++; ul_test[i].num = 0x0000F00000000000UL; ul_test[i].expected = "263882790666240"; in test_unsigned_long_formatting()
863 i++; ul_test[i].num = 0x00000F0000000000UL; ul_test[i].expected = "16492674416640"; in test_unsigned_long_formatting()
864 i++; ul_test[i].num = 0x000000F000000000UL; ul_test[i].expected = "1030792151040"; in test_unsigned_long_formatting()
865 i++; ul_test[i].num = 0x0000000F00000000UL; ul_test[i].expected = "64424509440"; in test_unsigned_long_formatting()
866 i++; ul_test[i].num = 0x00000000F0000000UL; ul_test[i].expected = "4026531840"; in test_unsigned_long_formatting()
867 i++; ul_test[i].num = 0x000000000F000000UL; ul_test[i].expected = "251658240"; in test_unsigned_long_formatting()
868 i++; ul_test[i].num = 0x0000000000F00000UL; ul_test[i].expected = "15728640"; in test_unsigned_long_formatting()
869 i++; ul_test[i].num = 0x00000000000F0000UL; ul_test[i].expected = "983040"; in test_unsigned_long_formatting()
870 i++; ul_test[i].num = 0x000000000000F000UL; ul_test[i].expected = "61440"; in test_unsigned_long_formatting()
871 i++; ul_test[i].num = 0x0000000000000F00UL; ul_test[i].expected = "3840"; in test_unsigned_long_formatting()
872 i++; ul_test[i].num = 0x00000000000000F0UL; ul_test[i].expected = "240"; in test_unsigned_long_formatting()
873 i++; ul_test[i].num = 0x000000000000000FUL; ul_test[i].expected = "15"; in test_unsigned_long_formatting()
875 i++; ul_test[i].num = 0xC000000000000000UL; ul_test[i].expected = "13835058055282163712"; in test_unsigned_long_formatting()
876 i++; ul_test[i].num = 0x0C00000000000000UL; ul_test[i].expected = "864691128455135232"; in test_unsigned_long_formatting()
877 i++; ul_test[i].num = 0x00C0000000000000UL; ul_test[i].expected = "54043195528445952"; in test_unsigned_long_formatting()
878 i++; ul_test[i].num = 0x000C000000000000UL; ul_test[i].expected = "3377699720527872"; in test_unsigned_long_formatting()
879 i++; ul_test[i].num = 0x0000C00000000000UL; ul_test[i].expected = "211106232532992"; in test_unsigned_long_formatting()
880 i++; ul_test[i].num = 0x00000C0000000000UL; ul_test[i].expected = "13194139533312"; in test_unsigned_long_formatting()
881 i++; ul_test[i].num = 0x000000C000000000UL; ul_test[i].expected = "824633720832"; in test_unsigned_long_formatting()
882 i++; ul_test[i].num = 0x0000000C00000000UL; ul_test[i].expected = "51539607552"; in test_unsigned_long_formatting()
883 i++; ul_test[i].num = 0x00000000C0000000UL; ul_test[i].expected = "3221225472"; in test_unsigned_long_formatting()
884 i++; ul_test[i].num = 0x000000000C000000UL; ul_test[i].expected = "201326592"; in test_unsigned_long_formatting()
885 i++; ul_test[i].num = 0x0000000000C00000UL; ul_test[i].expected = "12582912"; in test_unsigned_long_formatting()
886 i++; ul_test[i].num = 0x00000000000C0000UL; ul_test[i].expected = "786432"; in test_unsigned_long_formatting()
887 i++; ul_test[i].num = 0x000000000000C000UL; ul_test[i].expected = "49152"; in test_unsigned_long_formatting()
888 i++; ul_test[i].num = 0x0000000000000C00UL; ul_test[i].expected = "3072"; in test_unsigned_long_formatting()
889 i++; ul_test[i].num = 0x00000000000000C0UL; ul_test[i].expected = "192"; in test_unsigned_long_formatting()
890 i++; ul_test[i].num = 0x000000000000000CUL; ul_test[i].expected = "12"; in test_unsigned_long_formatting()
892 i++; ul_test[i].num = 0x00000001UL; ul_test[i].expected = "1"; in test_unsigned_long_formatting()
893 i++; ul_test[i].num = 0x00000000UL; ul_test[i].expected = "0"; in test_unsigned_long_formatting()
895 num_ulong_tests = i; in test_unsigned_long_formatting()
899 for(i = 1; i <= num_ulong_tests; i++) { in test_unsigned_long_formatting()
902 ul_test[i].result[j] = 'X'; in test_unsigned_long_formatting()
903 ul_test[i].result[BUFSZ-1] = '\0'; in test_unsigned_long_formatting()
905 (void)curl_msprintf(ul_test[i].result, "%lu", ul_test[i].num); in test_unsigned_long_formatting()
907 if(memcmp(ul_test[i].result, in test_unsigned_long_formatting()
908 ul_test[i].expected, in test_unsigned_long_formatting()
909 strlen(ul_test[i].expected))) { in test_unsigned_long_formatting()
911 i, ul_test[i].expected, ul_test[i].result); in test_unsigned_long_formatting()
928 int i, j; in test_signed_long_formatting() local
934 i = 1; sl_test[i].num = 0x7FFFL; sl_test[i].expected = "32767"; in test_signed_long_formatting()
935 i++; sl_test[i].num = 0x7FFEL; sl_test[i].expected = "32766"; in test_signed_long_formatting()
936 i++; sl_test[i].num = 0x7FFDL; sl_test[i].expected = "32765"; in test_signed_long_formatting()
937 i++; sl_test[i].num = 0x7F00L; sl_test[i].expected = "32512"; in test_signed_long_formatting()
938 i++; sl_test[i].num = 0x07F0L; sl_test[i].expected = "2032"; in test_signed_long_formatting()
939 i++; sl_test[i].num = 0x007FL; sl_test[i].expected = "127"; in test_signed_long_formatting()
941 i++; sl_test[i].num = 0x7000L; sl_test[i].expected = "28672"; in test_signed_long_formatting()
942 i++; sl_test[i].num = 0x0700L; sl_test[i].expected = "1792"; in test_signed_long_formatting()
943 i++; sl_test[i].num = 0x0070L; sl_test[i].expected = "112"; in test_signed_long_formatting()
944 i++; sl_test[i].num = 0x0007L; sl_test[i].expected = "7"; in test_signed_long_formatting()
946 i++; sl_test[i].num = 0x5000L; sl_test[i].expected = "20480"; in test_signed_long_formatting()
947 i++; sl_test[i].num = 0x0500L; sl_test[i].expected = "1280"; in test_signed_long_formatting()
948 i++; sl_test[i].num = 0x0050L; sl_test[i].expected = "80"; in test_signed_long_formatting()
949 i++; sl_test[i].num = 0x0005L; sl_test[i].expected = "5"; in test_signed_long_formatting()
951 i++; sl_test[i].num = 0x0001L; sl_test[i].expected = "1"; in test_signed_long_formatting()
952 i++; sl_test[i].num = 0x0000L; sl_test[i].expected = "0"; in test_signed_long_formatting()
954 i++; sl_test[i].num = -0x7FFFL -1L; sl_test[i].expected = "-32768"; in test_signed_long_formatting()
955 i++; sl_test[i].num = -0x7FFEL -1L; sl_test[i].expected = "-32767"; in test_signed_long_formatting()
956 i++; sl_test[i].num = -0x7FFDL -1L; sl_test[i].expected = "-32766"; in test_signed_long_formatting()
957 i++; sl_test[i].num = -0x7F00L -1L; sl_test[i].expected = "-32513"; in test_signed_long_formatting()
958 i++; sl_test[i].num = -0x07F0L -1L; sl_test[i].expected = "-2033"; in test_signed_long_formatting()
959 i++; sl_test[i].num = -0x007FL -1L; sl_test[i].expected = "-128"; in test_signed_long_formatting()
961 i++; sl_test[i].num = -0x7000L -1L; sl_test[i].expected = "-28673"; in test_signed_long_formatting()
962 i++; sl_test[i].num = -0x0700L -1L; sl_test[i].expected = "-1793"; in test_signed_long_formatting()
963 i++; sl_test[i].num = -0x0070L -1L; sl_test[i].expected = "-113"; in test_signed_long_formatting()
964 i++; sl_test[i].num = -0x0007L -1L; sl_test[i].expected = "-8"; in test_signed_long_formatting()
966 i++; sl_test[i].num = -0x5000L -1L; sl_test[i].expected = "-20481"; in test_signed_long_formatting()
967 i++; sl_test[i].num = -0x0500L -1L; sl_test[i].expected = "-1281"; in test_signed_long_formatting()
968 i++; sl_test[i].num = -0x0050L -1L; sl_test[i].expected = "-81"; in test_signed_long_formatting()
969 i++; sl_test[i].num = -0x0005L -1L; sl_test[i].expected = "-6"; in test_signed_long_formatting()
971 i++; sl_test[i].num = 0x0000L -1L; sl_test[i].expected = "-1"; in test_signed_long_formatting()
973 num_slong_tests = i; in test_signed_long_formatting()
977 i = 1; sl_test[i].num = 0x7FFFFFFFL; sl_test[i].expected = "2147483647"; in test_signed_long_formatting()
978 i++; sl_test[i].num = 0x7FFFFFFEL; sl_test[i].expected = "2147483646"; in test_signed_long_formatting()
979 i++; sl_test[i].num = 0x7FFFFFFDL; sl_test[i].expected = "2147483645"; in test_signed_long_formatting()
980 i++; sl_test[i].num = 0x7FFF0000L; sl_test[i].expected = "2147418112"; in test_signed_long_formatting()
981 i++; sl_test[i].num = 0x00007FFFL; sl_test[i].expected = "32767"; in test_signed_long_formatting()
983 i++; sl_test[i].num = 0x7F000000L; sl_test[i].expected = "2130706432"; in test_signed_long_formatting()
984 i++; sl_test[i].num = 0x007F0000L; sl_test[i].expected = "8323072"; in test_signed_long_formatting()
985 i++; sl_test[i].num = 0x00007F00L; sl_test[i].expected = "32512"; in test_signed_long_formatting()
986 i++; sl_test[i].num = 0x0000007FL; sl_test[i].expected = "127"; in test_signed_long_formatting()
988 i++; sl_test[i].num = 0x70000000L; sl_test[i].expected = "1879048192"; in test_signed_long_formatting()
989 i++; sl_test[i].num = 0x07000000L; sl_test[i].expected = "117440512"; in test_signed_long_formatting()
990 i++; sl_test[i].num = 0x00700000L; sl_test[i].expected = "7340032"; in test_signed_long_formatting()
991 i++; sl_test[i].num = 0x00070000L; sl_test[i].expected = "458752"; in test_signed_long_formatting()
992 i++; sl_test[i].num = 0x00007000L; sl_test[i].expected = "28672"; in test_signed_long_formatting()
993 i++; sl_test[i].num = 0x00000700L; sl_test[i].expected = "1792"; in test_signed_long_formatting()
994 i++; sl_test[i].num = 0x00000070L; sl_test[i].expected = "112"; in test_signed_long_formatting()
995 i++; sl_test[i].num = 0x00000007L; sl_test[i].expected = "7"; in test_signed_long_formatting()
997 i++; sl_test[i].num = 0x50000000L; sl_test[i].expected = "1342177280"; in test_signed_long_formatting()
998 i++; sl_test[i].num = 0x05000000L; sl_test[i].expected = "83886080"; in test_signed_long_formatting()
999 i++; sl_test[i].num = 0x00500000L; sl_test[i].expected = "5242880"; in test_signed_long_formatting()
1000 i++; sl_test[i].num = 0x00050000L; sl_test[i].expected = "327680"; in test_signed_long_formatting()
1001 i++; sl_test[i].num = 0x00005000L; sl_test[i].expected = "20480"; in test_signed_long_formatting()
1002 i++; sl_test[i].num = 0x00000500L; sl_test[i].expected = "1280"; in test_signed_long_formatting()
1003 i++; sl_test[i].num = 0x00000050L; sl_test[i].expected = "80"; in test_signed_long_formatting()
1004 i++; sl_test[i].num = 0x00000005L; sl_test[i].expected = "5"; in test_signed_long_formatting()
1006 i++; sl_test[i].num = 0x00000001L; sl_test[i].expected = "1"; in test_signed_long_formatting()
1007 i++; sl_test[i].num = 0x00000000L; sl_test[i].expected = "0"; in test_signed_long_formatting()
1009 i++; sl_test[i].num = -0x7FFFFFFFL -1L; sl_test[i].expected = "-2147483648"; in test_signed_long_formatting()
1010 i++; sl_test[i].num = -0x7FFFFFFEL -1L; sl_test[i].expected = "-2147483647"; in test_signed_long_formatting()
1011 i++; sl_test[i].num = -0x7FFFFFFDL -1L; sl_test[i].expected = "-2147483646"; in test_signed_long_formatting()
1012 i++; sl_test[i].num = -0x7FFF0000L -1L; sl_test[i].expected = "-2147418113"; in test_signed_long_formatting()
1013 i++; sl_test[i].num = -0x00007FFFL -1L; sl_test[i].expected = "-32768"; in test_signed_long_formatting()
1015 i++; sl_test[i].num = -0x7F000000L -1L; sl_test[i].expected = "-2130706433"; in test_signed_long_formatting()
1016 i++; sl_test[i].num = -0x007F0000L -1L; sl_test[i].expected = "-8323073"; in test_signed_long_formatting()
1017 i++; sl_test[i].num = -0x00007F00L -1L; sl_test[i].expected = "-32513"; in test_signed_long_formatting()
1018 i++; sl_test[i].num = -0x0000007FL -1L; sl_test[i].expected = "-128"; in test_signed_long_formatting()
1020 i++; sl_test[i].num = -0x70000000L -1L; sl_test[i].expected = "-1879048193"; in test_signed_long_formatting()
1021 i++; sl_test[i].num = -0x07000000L -1L; sl_test[i].expected = "-117440513"; in test_signed_long_formatting()
1022 i++; sl_test[i].num = -0x00700000L -1L; sl_test[i].expected = "-7340033"; in test_signed_long_formatting()
1023 i++; sl_test[i].num = -0x00070000L -1L; sl_test[i].expected = "-458753"; in test_signed_long_formatting()
1024 i++; sl_test[i].num = -0x00007000L -1L; sl_test[i].expected = "-28673"; in test_signed_long_formatting()
1025 i++; sl_test[i].num = -0x00000700L -1L; sl_test[i].expected = "-1793"; in test_signed_long_formatting()
1026 i++; sl_test[i].num = -0x00000070L -1L; sl_test[i].expected = "-113"; in test_signed_long_formatting()
1027 i++; sl_test[i].num = -0x00000007L -1L; sl_test[i].expected = "-8"; in test_signed_long_formatting()
1029 i++; sl_test[i].num = -0x50000000L -1L; sl_test[i].expected = "-1342177281"; in test_signed_long_formatting()
1030 i++; sl_test[i].num = -0x05000000L -1L; sl_test[i].expected = "-83886081"; in test_signed_long_formatting()
1031 i++; sl_test[i].num = -0x00500000L -1L; sl_test[i].expected = "-5242881"; in test_signed_long_formatting()
1032 i++; sl_test[i].num = -0x00050000L -1L; sl_test[i].expected = "-327681"; in test_signed_long_formatting()
1033 i++; sl_test[i].num = -0x00005000L -1L; sl_test[i].expected = "-20481"; in test_signed_long_formatting()
1034 i++; sl_test[i].num = -0x00000500L -1L; sl_test[i].expected = "-1281"; in test_signed_long_formatting()
1035 i++; sl_test[i].num = -0x00000050L -1L; sl_test[i].expected = "-81"; in test_signed_long_formatting()
1036 i++; sl_test[i].num = -0x00000005L -1L; sl_test[i].expected = "-6"; in test_signed_long_formatting()
1038 i++; sl_test[i].num = 0x00000000L -1L; sl_test[i].expected = "-1"; in test_signed_long_formatting()
1040 num_slong_tests = i; in test_signed_long_formatting()
1044 i = 1; sl_test[i].num = 0x7FFFFFFFFFFFFFFFL; sl_test[i].expected = "9223372036854775807"; in test_signed_long_formatting()
1045 i++; sl_test[i].num = 0x7FFFFFFFFFFFFFFEL; sl_test[i].expected = "9223372036854775806"; in test_signed_long_formatting()
1046 i++; sl_test[i].num = 0x7FFFFFFFFFFFFFFDL; sl_test[i].expected = "9223372036854775805"; in test_signed_long_formatting()
1047 i++; sl_test[i].num = 0x7FFFFFFF00000000L; sl_test[i].expected = "9223372032559808512"; in test_signed_long_formatting()
1048 i++; sl_test[i].num = 0x000000007FFFFFFFL; sl_test[i].expected = "2147483647"; in test_signed_long_formatting()
1050 i++; sl_test[i].num = 0x7FFF000000000000L; sl_test[i].expected = "9223090561878065152"; in test_signed_long_formatting()
1051 i++; sl_test[i].num = 0x00007FFF00000000L; sl_test[i].expected = "140733193388032"; in test_signed_long_formatting()
1052 i++; sl_test[i].num = 0x000000007FFF0000L; sl_test[i].expected = "2147418112"; in test_signed_long_formatting()
1053 i++; sl_test[i].num = 0x0000000000007FFFL; sl_test[i].expected = "32767"; in test_signed_long_formatting()
1055 i++; sl_test[i].num = 0x7F00000000000000L; sl_test[i].expected = "9151314442816847872"; in test_signed_long_formatting()
1056 i++; sl_test[i].num = 0x007F000000000000L; sl_test[i].expected = "35747322042253312"; in test_signed_long_formatting()
1057 i++; sl_test[i].num = 0x00007F0000000000L; sl_test[i].expected = "139637976727552"; in test_signed_long_formatting()
1058 i++; sl_test[i].num = 0x0000007F00000000L; sl_test[i].expected = "545460846592"; in test_signed_long_formatting()
1059 i++; sl_test[i].num = 0x000000007F000000L; sl_test[i].expected = "2130706432"; in test_signed_long_formatting()
1060 i++; sl_test[i].num = 0x00000000007F0000L; sl_test[i].expected = "8323072"; in test_signed_long_formatting()
1061 i++; sl_test[i].num = 0x0000000000007F00L; sl_test[i].expected = "32512"; in test_signed_long_formatting()
1062 i++; sl_test[i].num = 0x000000000000007FL; sl_test[i].expected = "127"; in test_signed_long_formatting()
1064 i++; sl_test[i].num = 0x7000000000000000L; sl_test[i].expected = "8070450532247928832"; in test_signed_long_formatting()
1065 i++; sl_test[i].num = 0x0700000000000000L; sl_test[i].expected = "504403158265495552"; in test_signed_long_formatting()
1066 i++; sl_test[i].num = 0x0070000000000000L; sl_test[i].expected = "31525197391593472"; in test_signed_long_formatting()
1067 i++; sl_test[i].num = 0x0007000000000000L; sl_test[i].expected = "1970324836974592"; in test_signed_long_formatting()
1068 i++; sl_test[i].num = 0x0000700000000000L; sl_test[i].expected = "123145302310912"; in test_signed_long_formatting()
1069 i++; sl_test[i].num = 0x0000070000000000L; sl_test[i].expected = "7696581394432"; in test_signed_long_formatting()
1070 i++; sl_test[i].num = 0x0000007000000000L; sl_test[i].expected = "481036337152"; in test_signed_long_formatting()
1071 i++; sl_test[i].num = 0x0000000700000000L; sl_test[i].expected = "30064771072"; in test_signed_long_formatting()
1072 i++; sl_test[i].num = 0x0000000070000000L; sl_test[i].expected = "1879048192"; in test_signed_long_formatting()
1073 i++; sl_test[i].num = 0x0000000007000000L; sl_test[i].expected = "117440512"; in test_signed_long_formatting()
1074 i++; sl_test[i].num = 0x0000000000700000L; sl_test[i].expected = "7340032"; in test_signed_long_formatting()
1075 i++; sl_test[i].num = 0x0000000000070000L; sl_test[i].expected = "458752"; in test_signed_long_formatting()
1076 i++; sl_test[i].num = 0x0000000000007000L; sl_test[i].expected = "28672"; in test_signed_long_formatting()
1077 i++; sl_test[i].num = 0x0000000000000700L; sl_test[i].expected = "1792"; in test_signed_long_formatting()
1078 i++; sl_test[i].num = 0x0000000000000070L; sl_test[i].expected = "112"; in test_signed_long_formatting()
1079 i++; sl_test[i].num = 0x0000000000000007L; sl_test[i].expected = "7"; in test_signed_long_formatting()
1081 i++; sl_test[i].num = 0x0000000000000001L; sl_test[i].expected = "1"; in test_signed_long_formatting()
1082 i++; sl_test[i].num = 0x0000000000000000L; sl_test[i].expected = "0"; in test_signed_long_formatting()
1084 i++; sl_test[i].num = -0x7FFFFFFFFFFFFFFFL -1L; sl_test[i].expected = "-9223372036854775808"; in test_signed_long_formatting()
1085 i++; sl_test[i].num = -0x7FFFFFFFFFFFFFFEL -1L; sl_test[i].expected = "-9223372036854775807"; in test_signed_long_formatting()
1086 i++; sl_test[i].num = -0x7FFFFFFFFFFFFFFDL -1L; sl_test[i].expected = "-9223372036854775806"; in test_signed_long_formatting()
1087 i++; sl_test[i].num = -0x7FFFFFFF00000000L -1L; sl_test[i].expected = "-9223372032559808513"; in test_signed_long_formatting()
1088 i++; sl_test[i].num = -0x000000007FFFFFFFL -1L; sl_test[i].expected = "-2147483648"; in test_signed_long_formatting()
1090 i++; sl_test[i].num = -0x7FFF000000000000L -1L; sl_test[i].expected = "-9223090561878065153"; in test_signed_long_formatting()
1091 i++; sl_test[i].num = -0x00007FFF00000000L -1L; sl_test[i].expected = "-140733193388033"; in test_signed_long_formatting()
1092 i++; sl_test[i].num = -0x000000007FFF0000L -1L; sl_test[i].expected = "-2147418113"; in test_signed_long_formatting()
1093 i++; sl_test[i].num = -0x0000000000007FFFL -1L; sl_test[i].expected = "-32768"; in test_signed_long_formatting()
1095 i++; sl_test[i].num = -0x7F00000000000000L -1L; sl_test[i].expected = "-9151314442816847873"; in test_signed_long_formatting()
1096 i++; sl_test[i].num = -0x007F000000000000L -1L; sl_test[i].expected = "-35747322042253313"; in test_signed_long_formatting()
1097 i++; sl_test[i].num = -0x00007F0000000000L -1L; sl_test[i].expected = "-139637976727553"; in test_signed_long_formatting()
1098 i++; sl_test[i].num = -0x0000007F00000000L -1L; sl_test[i].expected = "-545460846593"; in test_signed_long_formatting()
1099 i++; sl_test[i].num = -0x000000007F000000L -1L; sl_test[i].expected = "-2130706433"; in test_signed_long_formatting()
1100 i++; sl_test[i].num = -0x00000000007F0000L -1L; sl_test[i].expected = "-8323073"; in test_signed_long_formatting()
1101 i++; sl_test[i].num = -0x0000000000007F00L -1L; sl_test[i].expected = "-32513"; in test_signed_long_formatting()
1102 i++; sl_test[i].num = -0x000000000000007FL -1L; sl_test[i].expected = "-128"; in test_signed_long_formatting()
1104 i++; sl_test[i].num = -0x7000000000000000L -1L; sl_test[i].expected = "-8070450532247928833"; in test_signed_long_formatting()
1105 i++; sl_test[i].num = -0x0700000000000000L -1L; sl_test[i].expected = "-504403158265495553"; in test_signed_long_formatting()
1106 i++; sl_test[i].num = -0x0070000000000000L -1L; sl_test[i].expected = "-31525197391593473"; in test_signed_long_formatting()
1107 i++; sl_test[i].num = -0x0007000000000000L -1L; sl_test[i].expected = "-1970324836974593"; in test_signed_long_formatting()
1108 i++; sl_test[i].num = -0x0000700000000000L -1L; sl_test[i].expected = "-123145302310913"; in test_signed_long_formatting()
1109 i++; sl_test[i].num = -0x0000070000000000L -1L; sl_test[i].expected = "-7696581394433"; in test_signed_long_formatting()
1110 i++; sl_test[i].num = -0x0000007000000000L -1L; sl_test[i].expected = "-481036337153"; in test_signed_long_formatting()
1111 i++; sl_test[i].num = -0x0000000700000000L -1L; sl_test[i].expected = "-30064771073"; in test_signed_long_formatting()
1112 i++; sl_test[i].num = -0x0000000070000000L -1L; sl_test[i].expected = "-1879048193"; in test_signed_long_formatting()
1113 i++; sl_test[i].num = -0x0000000007000000L -1L; sl_test[i].expected = "-117440513"; in test_signed_long_formatting()
1114 i++; sl_test[i].num = -0x0000000000700000L -1L; sl_test[i].expected = "-7340033"; in test_signed_long_formatting()
1115 i++; sl_test[i].num = -0x0000000000070000L -1L; sl_test[i].expected = "-458753"; in test_signed_long_formatting()
1116 i++; sl_test[i].num = -0x0000000000007000L -1L; sl_test[i].expected = "-28673"; in test_signed_long_formatting()
1117 i++; sl_test[i].num = -0x0000000000000700L -1L; sl_test[i].expected = "-1793"; in test_signed_long_formatting()
1118 i++; sl_test[i].num = -0x0000000000000070L -1L; sl_test[i].expected = "-113"; in test_signed_long_formatting()
1119 i++; sl_test[i].num = -0x0000000000000007L -1L; sl_test[i].expected = "-8"; in test_signed_long_formatting()
1121 i++; sl_test[i].num = 0x0000000000000000L -1L; sl_test[i].expected = "-1"; in test_signed_long_formatting()
1123 num_slong_tests = i; in test_signed_long_formatting()
1127 for(i = 1; i <= num_slong_tests; i++) { in test_signed_long_formatting()
1130 sl_test[i].result[j] = 'X'; in test_signed_long_formatting()
1131 sl_test[i].result[BUFSZ-1] = '\0'; in test_signed_long_formatting()
1133 (void)curl_msprintf(sl_test[i].result, "%ld", sl_test[i].num); in test_signed_long_formatting()
1135 if(memcmp(sl_test[i].result, in test_signed_long_formatting()
1136 sl_test[i].expected, in test_signed_long_formatting()
1137 strlen(sl_test[i].expected))) { in test_signed_long_formatting()
1139 i, sl_test[i].expected, sl_test[i].result); in test_signed_long_formatting()
1156 int i, j; in test_curl_off_t_formatting() local
1162 i = 1; co_test[i].num = MPRNT_OFF_T_C(0x7FFF); co_test[i].expected = "32767"; in test_curl_off_t_formatting()
1163 i++; co_test[i].num = MPRNT_OFF_T_C(0x7FFE); co_test[i].expected = "32766"; in test_curl_off_t_formatting()
1164 i++; co_test[i].num = MPRNT_OFF_T_C(0x7FFD); co_test[i].expected = "32765"; in test_curl_off_t_formatting()
1165 i++; co_test[i].num = MPRNT_OFF_T_C(0x7F00); co_test[i].expected = "32512"; in test_curl_off_t_formatting()
1166 i++; co_test[i].num = MPRNT_OFF_T_C(0x07F0); co_test[i].expected = "2032"; in test_curl_off_t_formatting()
1167 i++; co_test[i].num = MPRNT_OFF_T_C(0x007F); co_test[i].expected = "127"; in test_curl_off_t_formatting()
1169 i++; co_test[i].num = MPRNT_OFF_T_C(0x7000); co_test[i].expected = "28672"; in test_curl_off_t_formatting()
1170 i++; co_test[i].num = MPRNT_OFF_T_C(0x0700); co_test[i].expected = "1792"; in test_curl_off_t_formatting()
1171 i++; co_test[i].num = MPRNT_OFF_T_C(0x0070); co_test[i].expected = "112"; in test_curl_off_t_formatting()
1172 i++; co_test[i].num = MPRNT_OFF_T_C(0x0007); co_test[i].expected = "7"; in test_curl_off_t_formatting()
1174 i++; co_test[i].num = MPRNT_OFF_T_C(0x5000); co_test[i].expected = "20480"; in test_curl_off_t_formatting()
1175 i++; co_test[i].num = MPRNT_OFF_T_C(0x0500); co_test[i].expected = "1280"; in test_curl_off_t_formatting()
1176 i++; co_test[i].num = MPRNT_OFF_T_C(0x0050); co_test[i].expected = "80"; in test_curl_off_t_formatting()
1177 i++; co_test[i].num = MPRNT_OFF_T_C(0x0005); co_test[i].expected = "5"; in test_curl_off_t_formatting()
1179 i++; co_test[i].num = MPRNT_OFF_T_C(0x0001); co_test[i].expected = "1"; in test_curl_off_t_formatting()
1180 i++; co_test[i].num = MPRNT_OFF_T_C(0x0000); co_test[i].expected = "0"; in test_curl_off_t_formatting()
1182 i++; co_test[i].num = -MPRNT_OFF_T_C(0x7FFF) -MPRNT_OFF_T_C(1); co_test[i].expected = "-32768"; in test_curl_off_t_formatting()
1183 i++; co_test[i].num = -MPRNT_OFF_T_C(0x7FFE) -MPRNT_OFF_T_C(1); co_test[i].expected = "-32767"; in test_curl_off_t_formatting()
1184 i++; co_test[i].num = -MPRNT_OFF_T_C(0x7FFD) -MPRNT_OFF_T_C(1); co_test[i].expected = "-32766"; in test_curl_off_t_formatting()
1185 i++; co_test[i].num = -MPRNT_OFF_T_C(0x7F00) -MPRNT_OFF_T_C(1); co_test[i].expected = "-32513"; in test_curl_off_t_formatting()
1186 i++; co_test[i].num = -MPRNT_OFF_T_C(0x07F0) -MPRNT_OFF_T_C(1); co_test[i].expected = "-2033"; in test_curl_off_t_formatting()
1187 i++; co_test[i].num = -MPRNT_OFF_T_C(0x007F) -MPRNT_OFF_T_C(1); co_test[i].expected = "-128"; in test_curl_off_t_formatting()
1189 i++; co_test[i].num = -MPRNT_OFF_T_C(0x7000) -MPRNT_OFF_T_C(1); co_test[i].expected = "-28673"; in test_curl_off_t_formatting()
1190 i++; co_test[i].num = -MPRNT_OFF_T_C(0x0700) -MPRNT_OFF_T_C(1); co_test[i].expected = "-1793"; in test_curl_off_t_formatting()
1191 i++; co_test[i].num = -MPRNT_OFF_T_C(0x0070) -MPRNT_OFF_T_C(1); co_test[i].expected = "-113"; in test_curl_off_t_formatting()
1192 i++; co_test[i].num = -MPRNT_OFF_T_C(0x0007) -MPRNT_OFF_T_C(1); co_test[i].expected = "-8"; in test_curl_off_t_formatting()
1194 i++; co_test[i].num = -MPRNT_OFF_T_C(0x5000) -MPRNT_OFF_T_C(1); co_test[i].expected = "-20481"; in test_curl_off_t_formatting()
1195 i++; co_test[i].num = -MPRNT_OFF_T_C(0x0500) -MPRNT_OFF_T_C(1); co_test[i].expected = "-1281"; in test_curl_off_t_formatting()
1196 i++; co_test[i].num = -MPRNT_OFF_T_C(0x0050) -MPRNT_OFF_T_C(1); co_test[i].expected = "-81"; in test_curl_off_t_formatting()
1197 i++; co_test[i].num = -MPRNT_OFF_T_C(0x0005) -MPRNT_OFF_T_C(1); co_test[i].expected = "-6"; in test_curl_off_t_formatting()
1199 i++; co_test[i].num = MPRNT_OFF_T_C(0x0000) -MPRNT_OFF_T_C(1); co_test[i].expected = "-1"; in test_curl_off_t_formatting()
1201 num_cofft_tests = i; in test_curl_off_t_formatting()
1205 i = 1; co_test[i].num = MPRNT_OFF_T_C(0x7FFFFFFF); co_test[i].expected = "2147483647"; in test_curl_off_t_formatting()
1206 i++; co_test[i].num = MPRNT_OFF_T_C(0x7FFFFFFE); co_test[i].expected = "2147483646"; in test_curl_off_t_formatting()
1207 i++; co_test[i].num = MPRNT_OFF_T_C(0x7FFFFFFD); co_test[i].expected = "2147483645"; in test_curl_off_t_formatting()
1208 i++; co_test[i].num = MPRNT_OFF_T_C(0x7FFF0000); co_test[i].expected = "2147418112"; in test_curl_off_t_formatting()
1209 i++; co_test[i].num = MPRNT_OFF_T_C(0x00007FFF); co_test[i].expected = "32767"; in test_curl_off_t_formatting()
1211 i++; co_test[i].num = MPRNT_OFF_T_C(0x7F000000); co_test[i].expected = "2130706432"; in test_curl_off_t_formatting()
1212 i++; co_test[i].num = MPRNT_OFF_T_C(0x007F0000); co_test[i].expected = "8323072"; in test_curl_off_t_formatting()
1213 i++; co_test[i].num = MPRNT_OFF_T_C(0x00007F00); co_test[i].expected = "32512"; in test_curl_off_t_formatting()
1214 i++; co_test[i].num = MPRNT_OFF_T_C(0x0000007F); co_test[i].expected = "127"; in test_curl_off_t_formatting()
1216 i++; co_test[i].num = MPRNT_OFF_T_C(0x70000000); co_test[i].expected = "1879048192"; in test_curl_off_t_formatting()
1217 i++; co_test[i].num = MPRNT_OFF_T_C(0x07000000); co_test[i].expected = "117440512"; in test_curl_off_t_formatting()
1218 i++; co_test[i].num = MPRNT_OFF_T_C(0x00700000); co_test[i].expected = "7340032"; in test_curl_off_t_formatting()
1219 i++; co_test[i].num = MPRNT_OFF_T_C(0x00070000); co_test[i].expected = "458752"; in test_curl_off_t_formatting()
1220 i++; co_test[i].num = MPRNT_OFF_T_C(0x00007000); co_test[i].expected = "28672"; in test_curl_off_t_formatting()
1221 i++; co_test[i].num = MPRNT_OFF_T_C(0x00000700); co_test[i].expected = "1792"; in test_curl_off_t_formatting()
1222 i++; co_test[i].num = MPRNT_OFF_T_C(0x00000070); co_test[i].expected = "112"; in test_curl_off_t_formatting()
1223 i++; co_test[i].num = MPRNT_OFF_T_C(0x00000007); co_test[i].expected = "7"; in test_curl_off_t_formatting()
1225 i++; co_test[i].num = MPRNT_OFF_T_C(0x50000000); co_test[i].expected = "1342177280"; in test_curl_off_t_formatting()
1226 i++; co_test[i].num = MPRNT_OFF_T_C(0x05000000); co_test[i].expected = "83886080"; in test_curl_off_t_formatting()
1227 i++; co_test[i].num = MPRNT_OFF_T_C(0x00500000); co_test[i].expected = "5242880"; in test_curl_off_t_formatting()
1228 i++; co_test[i].num = MPRNT_OFF_T_C(0x00050000); co_test[i].expected = "327680"; in test_curl_off_t_formatting()
1229 i++; co_test[i].num = MPRNT_OFF_T_C(0x00005000); co_test[i].expected = "20480"; in test_curl_off_t_formatting()
1230 i++; co_test[i].num = MPRNT_OFF_T_C(0x00000500); co_test[i].expected = "1280"; in test_curl_off_t_formatting()
1231 i++; co_test[i].num = MPRNT_OFF_T_C(0x00000050); co_test[i].expected = "80"; in test_curl_off_t_formatting()
1232 i++; co_test[i].num = MPRNT_OFF_T_C(0x00000005); co_test[i].expected = "5"; in test_curl_off_t_formatting()
1234 i++; co_test[i].num = MPRNT_OFF_T_C(0x00000001); co_test[i].expected = "1"; in test_curl_off_t_formatting()
1235 i++; co_test[i].num = MPRNT_OFF_T_C(0x00000000); co_test[i].expected = "0"; in test_curl_off_t_formatting()
1237i++; co_test[i].num = -MPRNT_OFF_T_C(0x7FFFFFFF) -MPRNT_OFF_T_C(1); co_test[i].expected = "-214748… in test_curl_off_t_formatting()
1238i++; co_test[i].num = -MPRNT_OFF_T_C(0x7FFFFFFE) -MPRNT_OFF_T_C(1); co_test[i].expected = "-214748… in test_curl_off_t_formatting()
1239i++; co_test[i].num = -MPRNT_OFF_T_C(0x7FFFFFFD) -MPRNT_OFF_T_C(1); co_test[i].expected = "-214748… in test_curl_off_t_formatting()
1240i++; co_test[i].num = -MPRNT_OFF_T_C(0x7FFF0000) -MPRNT_OFF_T_C(1); co_test[i].expected = "-214741… in test_curl_off_t_formatting()
1241i++; co_test[i].num = -MPRNT_OFF_T_C(0x00007FFF) -MPRNT_OFF_T_C(1); co_test[i].expected = "-32768"; in test_curl_off_t_formatting()
1243i++; co_test[i].num = -MPRNT_OFF_T_C(0x7F000000) -MPRNT_OFF_T_C(1); co_test[i].expected = "-213070… in test_curl_off_t_formatting()
1244i++; co_test[i].num = -MPRNT_OFF_T_C(0x007F0000) -MPRNT_OFF_T_C(1); co_test[i].expected = "-832307… in test_curl_off_t_formatting()
1245i++; co_test[i].num = -MPRNT_OFF_T_C(0x00007F00) -MPRNT_OFF_T_C(1); co_test[i].expected = "-32513"; in test_curl_off_t_formatting()
1246 i++; co_test[i].num = -MPRNT_OFF_T_C(0x0000007F) -MPRNT_OFF_T_C(1); co_test[i].expected = "-128"; in test_curl_off_t_formatting()
1248i++; co_test[i].num = -MPRNT_OFF_T_C(0x70000000) -MPRNT_OFF_T_C(1); co_test[i].expected = "-187904… in test_curl_off_t_formatting()
1249i++; co_test[i].num = -MPRNT_OFF_T_C(0x07000000) -MPRNT_OFF_T_C(1); co_test[i].expected = "-117440… in test_curl_off_t_formatting()
1250i++; co_test[i].num = -MPRNT_OFF_T_C(0x00700000) -MPRNT_OFF_T_C(1); co_test[i].expected = "-734003… in test_curl_off_t_formatting()
1251i++; co_test[i].num = -MPRNT_OFF_T_C(0x00070000) -MPRNT_OFF_T_C(1); co_test[i].expected = "-458753… in test_curl_off_t_formatting()
1252i++; co_test[i].num = -MPRNT_OFF_T_C(0x00007000) -MPRNT_OFF_T_C(1); co_test[i].expected = "-28673"; in test_curl_off_t_formatting()
1253 i++; co_test[i].num = -MPRNT_OFF_T_C(0x00000700) -MPRNT_OFF_T_C(1); co_test[i].expected = "-1793"; in test_curl_off_t_formatting()
1254 i++; co_test[i].num = -MPRNT_OFF_T_C(0x00000070) -MPRNT_OFF_T_C(1); co_test[i].expected = "-113"; in test_curl_off_t_formatting()
1255 i++; co_test[i].num = -MPRNT_OFF_T_C(0x00000007) -MPRNT_OFF_T_C(1); co_test[i].expected = "-8"; in test_curl_off_t_formatting()
1257i++; co_test[i].num = -MPRNT_OFF_T_C(0x50000000) -MPRNT_OFF_T_C(1); co_test[i].expected = "-134217… in test_curl_off_t_formatting()
1258i++; co_test[i].num = -MPRNT_OFF_T_C(0x05000000) -MPRNT_OFF_T_C(1); co_test[i].expected = "-838860… in test_curl_off_t_formatting()
1259i++; co_test[i].num = -MPRNT_OFF_T_C(0x00500000) -MPRNT_OFF_T_C(1); co_test[i].expected = "-524288… in test_curl_off_t_formatting()
1260i++; co_test[i].num = -MPRNT_OFF_T_C(0x00050000) -MPRNT_OFF_T_C(1); co_test[i].expected = "-327681… in test_curl_off_t_formatting()
1261i++; co_test[i].num = -MPRNT_OFF_T_C(0x00005000) -MPRNT_OFF_T_C(1); co_test[i].expected = "-20481"; in test_curl_off_t_formatting()
1262 i++; co_test[i].num = -MPRNT_OFF_T_C(0x00000500) -MPRNT_OFF_T_C(1); co_test[i].expected = "-1281"; in test_curl_off_t_formatting()
1263 i++; co_test[i].num = -MPRNT_OFF_T_C(0x00000050) -MPRNT_OFF_T_C(1); co_test[i].expected = "-81"; in test_curl_off_t_formatting()
1264 i++; co_test[i].num = -MPRNT_OFF_T_C(0x00000005) -MPRNT_OFF_T_C(1); co_test[i].expected = "-6"; in test_curl_off_t_formatting()
1266 i++; co_test[i].num = MPRNT_OFF_T_C(0x00000000) -MPRNT_OFF_T_C(1); co_test[i].expected = "-1"; in test_curl_off_t_formatting()
1268 num_cofft_tests = i; in test_curl_off_t_formatting()
1272i = 1; co_test[i].num = MPRNT_OFF_T_C(0x7FFFFFFFFFFFFFFF); co_test[i].expected = "9223372036854775… in test_curl_off_t_formatting()
1273i++; co_test[i].num = MPRNT_OFF_T_C(0x7FFFFFFFFFFFFFFE); co_test[i].expected = "922337203685477580… in test_curl_off_t_formatting()
1274i++; co_test[i].num = MPRNT_OFF_T_C(0x7FFFFFFFFFFFFFFD); co_test[i].expected = "922337203685477580… in test_curl_off_t_formatting()
1275i++; co_test[i].num = MPRNT_OFF_T_C(0x7FFFFFFF00000000); co_test[i].expected = "922337203255980851… in test_curl_off_t_formatting()
1276 i++; co_test[i].num = MPRNT_OFF_T_C(0x000000007FFFFFFF); co_test[i].expected = "2147483647"; in test_curl_off_t_formatting()
1278i++; co_test[i].num = MPRNT_OFF_T_C(0x7FFF000000000000); co_test[i].expected = "922309056187806515… in test_curl_off_t_formatting()
1279 i++; co_test[i].num = MPRNT_OFF_T_C(0x00007FFF00000000); co_test[i].expected = "140733193388032"; in test_curl_off_t_formatting()
1280 i++; co_test[i].num = MPRNT_OFF_T_C(0x000000007FFF0000); co_test[i].expected = "2147418112"; in test_curl_off_t_formatting()
1281 i++; co_test[i].num = MPRNT_OFF_T_C(0x0000000000007FFF); co_test[i].expected = "32767"; in test_curl_off_t_formatting()
1283i++; co_test[i].num = MPRNT_OFF_T_C(0x7F00000000000000); co_test[i].expected = "915131444281684787… in test_curl_off_t_formatting()
1284i++; co_test[i].num = MPRNT_OFF_T_C(0x007F000000000000); co_test[i].expected = "35747322042253312"; in test_curl_off_t_formatting()
1285 i++; co_test[i].num = MPRNT_OFF_T_C(0x00007F0000000000); co_test[i].expected = "139637976727552"; in test_curl_off_t_formatting()
1286 i++; co_test[i].num = MPRNT_OFF_T_C(0x0000007F00000000); co_test[i].expected = "545460846592"; in test_curl_off_t_formatting()
1287 i++; co_test[i].num = MPRNT_OFF_T_C(0x000000007F000000); co_test[i].expected = "2130706432"; in test_curl_off_t_formatting()
1288 i++; co_test[i].num = MPRNT_OFF_T_C(0x00000000007F0000); co_test[i].expected = "8323072"; in test_curl_off_t_formatting()
1289 i++; co_test[i].num = MPRNT_OFF_T_C(0x0000000000007F00); co_test[i].expected = "32512"; in test_curl_off_t_formatting()
1290 i++; co_test[i].num = MPRNT_OFF_T_C(0x000000000000007F); co_test[i].expected = "127"; in test_curl_off_t_formatting()
1292i++; co_test[i].num = MPRNT_OFF_T_C(0x7000000000000000); co_test[i].expected = "807045053224792883… in test_curl_off_t_formatting()
1293i++; co_test[i].num = MPRNT_OFF_T_C(0x0700000000000000); co_test[i].expected = "504403158265495552… in test_curl_off_t_formatting()
1294i++; co_test[i].num = MPRNT_OFF_T_C(0x0070000000000000); co_test[i].expected = "31525197391593472"; in test_curl_off_t_formatting()
1295 i++; co_test[i].num = MPRNT_OFF_T_C(0x0007000000000000); co_test[i].expected = "1970324836974592"; in test_curl_off_t_formatting()
1296 i++; co_test[i].num = MPRNT_OFF_T_C(0x0000700000000000); co_test[i].expected = "123145302310912"; in test_curl_off_t_formatting()
1297 i++; co_test[i].num = MPRNT_OFF_T_C(0x0000070000000000); co_test[i].expected = "7696581394432"; in test_curl_off_t_formatting()
1298 i++; co_test[i].num = MPRNT_OFF_T_C(0x0000007000000000); co_test[i].expected = "481036337152"; in test_curl_off_t_formatting()
1299 i++; co_test[i].num = MPRNT_OFF_T_C(0x0000000700000000); co_test[i].expected = "30064771072"; in test_curl_off_t_formatting()
1300 i++; co_test[i].num = MPRNT_OFF_T_C(0x0000000070000000); co_test[i].expected = "1879048192"; in test_curl_off_t_formatting()
1301 i++; co_test[i].num = MPRNT_OFF_T_C(0x0000000007000000); co_test[i].expected = "117440512"; in test_curl_off_t_formatting()
1302 i++; co_test[i].num = MPRNT_OFF_T_C(0x0000000000700000); co_test[i].expected = "7340032"; in test_curl_off_t_formatting()
1303 i++; co_test[i].num = MPRNT_OFF_T_C(0x0000000000070000); co_test[i].expected = "458752"; in test_curl_off_t_formatting()
1304 i++; co_test[i].num = MPRNT_OFF_T_C(0x0000000000007000); co_test[i].expected = "28672"; in test_curl_off_t_formatting()
1305 i++; co_test[i].num = MPRNT_OFF_T_C(0x0000000000000700); co_test[i].expected = "1792"; in test_curl_off_t_formatting()
1306 i++; co_test[i].num = MPRNT_OFF_T_C(0x0000000000000070); co_test[i].expected = "112"; in test_curl_off_t_formatting()
1307 i++; co_test[i].num = MPRNT_OFF_T_C(0x0000000000000007); co_test[i].expected = "7"; in test_curl_off_t_formatting()
1309 i++; co_test[i].num = MPRNT_OFF_T_C(0x0000000000000001); co_test[i].expected = "1"; in test_curl_off_t_formatting()
1310 i++; co_test[i].num = MPRNT_OFF_T_C(0x0000000000000000); co_test[i].expected = "0"; in test_curl_off_t_formatting()
1312i++; co_test[i].num = -MPRNT_OFF_T_C(0x7FFFFFFFFFFFFFFF) -MPRNT_OFF_T_C(1); co_test[i].expected = … in test_curl_off_t_formatting()
1313i++; co_test[i].num = -MPRNT_OFF_T_C(0x7FFFFFFFFFFFFFFE) -MPRNT_OFF_T_C(1); co_test[i].expected = … in test_curl_off_t_formatting()
1314i++; co_test[i].num = -MPRNT_OFF_T_C(0x7FFFFFFFFFFFFFFD) -MPRNT_OFF_T_C(1); co_test[i].expected = … in test_curl_off_t_formatting()
1315i++; co_test[i].num = -MPRNT_OFF_T_C(0x7FFFFFFF00000000) -MPRNT_OFF_T_C(1); co_test[i].expected = … in test_curl_off_t_formatting()
1316i++; co_test[i].num = -MPRNT_OFF_T_C(0x000000007FFFFFFF) -MPRNT_OFF_T_C(1); co_test[i].expected = … in test_curl_off_t_formatting()
1318i++; co_test[i].num = -MPRNT_OFF_T_C(0x7FFF000000000000) -MPRNT_OFF_T_C(1); co_test[i].expected = … in test_curl_off_t_formatting()
1319i++; co_test[i].num = -MPRNT_OFF_T_C(0x00007FFF00000000) -MPRNT_OFF_T_C(1); co_test[i].expected = … in test_curl_off_t_formatting()
1320i++; co_test[i].num = -MPRNT_OFF_T_C(0x000000007FFF0000) -MPRNT_OFF_T_C(1); co_test[i].expected = … in test_curl_off_t_formatting()
1321i++; co_test[i].num = -MPRNT_OFF_T_C(0x0000000000007FFF) -MPRNT_OFF_T_C(1); co_test[i].expected = … in test_curl_off_t_formatting()
1323i++; co_test[i].num = -MPRNT_OFF_T_C(0x7F00000000000000) -MPRNT_OFF_T_C(1); co_test[i].expected = … in test_curl_off_t_formatting()
1324i++; co_test[i].num = -MPRNT_OFF_T_C(0x007F000000000000) -MPRNT_OFF_T_C(1); co_test[i].expected = … in test_curl_off_t_formatting()
1325i++; co_test[i].num = -MPRNT_OFF_T_C(0x00007F0000000000) -MPRNT_OFF_T_C(1); co_test[i].expected = … in test_curl_off_t_formatting()
1326i++; co_test[i].num = -MPRNT_OFF_T_C(0x0000007F00000000) -MPRNT_OFF_T_C(1); co_test[i].expected = … in test_curl_off_t_formatting()
1327i++; co_test[i].num = -MPRNT_OFF_T_C(0x000000007F000000) -MPRNT_OFF_T_C(1); co_test[i].expected = … in test_curl_off_t_formatting()
1328i++; co_test[i].num = -MPRNT_OFF_T_C(0x00000000007F0000) -MPRNT_OFF_T_C(1); co_test[i].expected = … in test_curl_off_t_formatting()
1329i++; co_test[i].num = -MPRNT_OFF_T_C(0x0000000000007F00) -MPRNT_OFF_T_C(1); co_test[i].expected = … in test_curl_off_t_formatting()
1330i++; co_test[i].num = -MPRNT_OFF_T_C(0x000000000000007F) -MPRNT_OFF_T_C(1); co_test[i].expected = … in test_curl_off_t_formatting()
1332i++; co_test[i].num = -MPRNT_OFF_T_C(0x7000000000000000) -MPRNT_OFF_T_C(1); co_test[i].expected = … in test_curl_off_t_formatting()
1333i++; co_test[i].num = -MPRNT_OFF_T_C(0x0700000000000000) -MPRNT_OFF_T_C(1); co_test[i].expected = … in test_curl_off_t_formatting()
1334i++; co_test[i].num = -MPRNT_OFF_T_C(0x0070000000000000) -MPRNT_OFF_T_C(1); co_test[i].expected = … in test_curl_off_t_formatting()
1335i++; co_test[i].num = -MPRNT_OFF_T_C(0x0007000000000000) -MPRNT_OFF_T_C(1); co_test[i].expected = … in test_curl_off_t_formatting()
1336i++; co_test[i].num = -MPRNT_OFF_T_C(0x0000700000000000) -MPRNT_OFF_T_C(1); co_test[i].expected = … in test_curl_off_t_formatting()
1337i++; co_test[i].num = -MPRNT_OFF_T_C(0x0000070000000000) -MPRNT_OFF_T_C(1); co_test[i].expected = … in test_curl_off_t_formatting()
1338i++; co_test[i].num = -MPRNT_OFF_T_C(0x0000007000000000) -MPRNT_OFF_T_C(1); co_test[i].expected = … in test_curl_off_t_formatting()
1339i++; co_test[i].num = -MPRNT_OFF_T_C(0x0000000700000000) -MPRNT_OFF_T_C(1); co_test[i].expected = … in test_curl_off_t_formatting()
1340i++; co_test[i].num = -MPRNT_OFF_T_C(0x0000000070000000) -MPRNT_OFF_T_C(1); co_test[i].expected = … in test_curl_off_t_formatting()
1341i++; co_test[i].num = -MPRNT_OFF_T_C(0x0000000007000000) -MPRNT_OFF_T_C(1); co_test[i].expected = … in test_curl_off_t_formatting()
1342i++; co_test[i].num = -MPRNT_OFF_T_C(0x0000000000700000) -MPRNT_OFF_T_C(1); co_test[i].expected = … in test_curl_off_t_formatting()
1343i++; co_test[i].num = -MPRNT_OFF_T_C(0x0000000000070000) -MPRNT_OFF_T_C(1); co_test[i].expected = … in test_curl_off_t_formatting()
1344i++; co_test[i].num = -MPRNT_OFF_T_C(0x0000000000007000) -MPRNT_OFF_T_C(1); co_test[i].expected = … in test_curl_off_t_formatting()
1345i++; co_test[i].num = -MPRNT_OFF_T_C(0x0000000000000700) -MPRNT_OFF_T_C(1); co_test[i].expected = … in test_curl_off_t_formatting()
1346i++; co_test[i].num = -MPRNT_OFF_T_C(0x0000000000000070) -MPRNT_OFF_T_C(1); co_test[i].expected = … in test_curl_off_t_formatting()
1347i++; co_test[i].num = -MPRNT_OFF_T_C(0x0000000000000007) -MPRNT_OFF_T_C(1); co_test[i].expected = … in test_curl_off_t_formatting()
1349i++; co_test[i].num = MPRNT_OFF_T_C(0x0000000000000000) -MPRNT_OFF_T_C(1); co_test[i].expected = … in test_curl_off_t_formatting()
1351 num_cofft_tests = i; in test_curl_off_t_formatting()
1355 for(i = 1; i <= num_cofft_tests; i++) { in test_curl_off_t_formatting()
1358 co_test[i].result[j] = 'X'; in test_curl_off_t_formatting()
1359 co_test[i].result[BUFSZ-1] = '\0'; in test_curl_off_t_formatting()
1361 (void)curl_msprintf(co_test[i].result, "%" CURL_FORMAT_CURL_OFF_T, in test_curl_off_t_formatting()
1362 co_test[i].num); in test_curl_off_t_formatting()
1364 if(memcmp(co_test[i].result, in test_curl_off_t_formatting()
1365 co_test[i].expected, in test_curl_off_t_formatting()
1366 strlen(co_test[i].expected))) { in test_curl_off_t_formatting()
1368 i, co_test[i].expected, co_test[i].result); in test_curl_off_t_formatting()