Lines Matching refs:i

135   int i, j;  in test_unsigned_short_formatting()  local
139 i = 1; us_test[i].num = 0xFFFFU; us_test[i].expected = "65535"; in test_unsigned_short_formatting()
140 i++; us_test[i].num = 0xFF00U; us_test[i].expected = "65280"; in test_unsigned_short_formatting()
141 i++; us_test[i].num = 0x00FFU; us_test[i].expected = "255"; in test_unsigned_short_formatting()
143 i++; us_test[i].num = 0xF000U; us_test[i].expected = "61440"; in test_unsigned_short_formatting()
144 i++; us_test[i].num = 0x0F00U; us_test[i].expected = "3840"; in test_unsigned_short_formatting()
145 i++; us_test[i].num = 0x00F0U; us_test[i].expected = "240"; in test_unsigned_short_formatting()
146 i++; us_test[i].num = 0x000FU; us_test[i].expected = "15"; in test_unsigned_short_formatting()
148 i++; us_test[i].num = 0xC000U; us_test[i].expected = "49152"; in test_unsigned_short_formatting()
149 i++; us_test[i].num = 0x0C00U; us_test[i].expected = "3072"; in test_unsigned_short_formatting()
150 i++; us_test[i].num = 0x00C0U; us_test[i].expected = "192"; in test_unsigned_short_formatting()
151 i++; us_test[i].num = 0x000CU; us_test[i].expected = "12"; in test_unsigned_short_formatting()
153 i++; us_test[i].num = 0x0001U; us_test[i].expected = "1"; in test_unsigned_short_formatting()
154 i++; us_test[i].num = 0x0000U; us_test[i].expected = "0"; in test_unsigned_short_formatting()
156 num_ushort_tests = i; in test_unsigned_short_formatting()
158 for(i = 1; i <= num_ushort_tests; i++) { in test_unsigned_short_formatting()
161 us_test[i].result[j] = 'X'; in test_unsigned_short_formatting()
162 us_test[i].result[BUFSZ-1] = '\0'; in test_unsigned_short_formatting()
164 (void)curl_msprintf(us_test[i].result, "%hu", us_test[i].num); in test_unsigned_short_formatting()
166 if(memcmp(us_test[i].result, in test_unsigned_short_formatting()
167 us_test[i].expected, in test_unsigned_short_formatting()
168 strlen(us_test[i].expected))) { in test_unsigned_short_formatting()
170 i, us_test[i].expected, us_test[i].result); in test_unsigned_short_formatting()
187 int i, j; in test_signed_short_formatting() local
191 i = 1; ss_test[i].num = 0x7FFF; ss_test[i].expected = "32767"; in test_signed_short_formatting()
192 i++; ss_test[i].num = 0x7FFE; ss_test[i].expected = "32766"; in test_signed_short_formatting()
193 i++; ss_test[i].num = 0x7FFD; ss_test[i].expected = "32765"; in test_signed_short_formatting()
194 i++; ss_test[i].num = 0x7F00; ss_test[i].expected = "32512"; in test_signed_short_formatting()
195 i++; ss_test[i].num = 0x07F0; ss_test[i].expected = "2032"; in test_signed_short_formatting()
196 i++; ss_test[i].num = 0x007F; ss_test[i].expected = "127"; in test_signed_short_formatting()
198 i++; ss_test[i].num = 0x7000; ss_test[i].expected = "28672"; in test_signed_short_formatting()
199 i++; ss_test[i].num = 0x0700; ss_test[i].expected = "1792"; in test_signed_short_formatting()
200 i++; ss_test[i].num = 0x0070; ss_test[i].expected = "112"; in test_signed_short_formatting()
201 i++; ss_test[i].num = 0x0007; ss_test[i].expected = "7"; in test_signed_short_formatting()
203 i++; ss_test[i].num = 0x5000; ss_test[i].expected = "20480"; in test_signed_short_formatting()
204 i++; ss_test[i].num = 0x0500; ss_test[i].expected = "1280"; in test_signed_short_formatting()
205 i++; ss_test[i].num = 0x0050; ss_test[i].expected = "80"; in test_signed_short_formatting()
206 i++; ss_test[i].num = 0x0005; ss_test[i].expected = "5"; in test_signed_short_formatting()
208 i++; ss_test[i].num = 0x0001; ss_test[i].expected = "1"; in test_signed_short_formatting()
209 i++; ss_test[i].num = 0x0000; ss_test[i].expected = "0"; in test_signed_short_formatting()
211 i++; ss_test[i].num = -0x7FFF -1; ss_test[i].expected = "-32768"; in test_signed_short_formatting()
212 i++; ss_test[i].num = -0x7FFE -1; ss_test[i].expected = "-32767"; in test_signed_short_formatting()
213 i++; ss_test[i].num = -0x7FFD -1; ss_test[i].expected = "-32766"; in test_signed_short_formatting()
214 i++; ss_test[i].num = -0x7F00 -1; ss_test[i].expected = "-32513"; in test_signed_short_formatting()
215 i++; ss_test[i].num = -0x07F0 -1; ss_test[i].expected = "-2033"; in test_signed_short_formatting()
216 i++; ss_test[i].num = -0x007F -1; ss_test[i].expected = "-128"; in test_signed_short_formatting()
218 i++; ss_test[i].num = -0x7000 -1; ss_test[i].expected = "-28673"; in test_signed_short_formatting()
219 i++; ss_test[i].num = -0x0700 -1; ss_test[i].expected = "-1793"; in test_signed_short_formatting()
220 i++; ss_test[i].num = -0x0070 -1; ss_test[i].expected = "-113"; in test_signed_short_formatting()
221 i++; ss_test[i].num = -0x0007 -1; ss_test[i].expected = "-8"; in test_signed_short_formatting()
223 i++; ss_test[i].num = -0x5000 -1; ss_test[i].expected = "-20481"; in test_signed_short_formatting()
224 i++; ss_test[i].num = -0x0500 -1; ss_test[i].expected = "-1281"; in test_signed_short_formatting()
225 i++; ss_test[i].num = -0x0050 -1; ss_test[i].expected = "-81"; in test_signed_short_formatting()
226 i++; ss_test[i].num = -0x0005 -1; ss_test[i].expected = "-6"; in test_signed_short_formatting()
228 i++; ss_test[i].num = 0x0000 -1; ss_test[i].expected = "-1"; in test_signed_short_formatting()
230 num_sshort_tests = i; in test_signed_short_formatting()
232 for(i = 1; i <= num_sshort_tests; i++) { in test_signed_short_formatting()
235 ss_test[i].result[j] = 'X'; in test_signed_short_formatting()
236 ss_test[i].result[BUFSZ-1] = '\0'; in test_signed_short_formatting()
238 (void)curl_msprintf(ss_test[i].result, "%hd", ss_test[i].num); in test_signed_short_formatting()
240 if(memcmp(ss_test[i].result, in test_signed_short_formatting()
241 ss_test[i].expected, in test_signed_short_formatting()
242 strlen(ss_test[i].expected))) { in test_signed_short_formatting()
244 i, ss_test[i].expected, ss_test[i].result); in test_signed_short_formatting()
261 int i, j; in test_unsigned_int_formatting() local
267 i = 1; ui_test[i].num = 0xFFFFU; ui_test[i].expected = "65535"; in test_unsigned_int_formatting()
268 i++; ui_test[i].num = 0xFF00U; ui_test[i].expected = "65280"; in test_unsigned_int_formatting()
269 i++; ui_test[i].num = 0x00FFU; ui_test[i].expected = "255"; in test_unsigned_int_formatting()
271 i++; ui_test[i].num = 0xF000U; ui_test[i].expected = "61440"; in test_unsigned_int_formatting()
272 i++; ui_test[i].num = 0x0F00U; ui_test[i].expected = "3840"; in test_unsigned_int_formatting()
273 i++; ui_test[i].num = 0x00F0U; ui_test[i].expected = "240"; in test_unsigned_int_formatting()
274 i++; ui_test[i].num = 0x000FU; ui_test[i].expected = "15"; in test_unsigned_int_formatting()
276 i++; ui_test[i].num = 0xC000U; ui_test[i].expected = "49152"; in test_unsigned_int_formatting()
277 i++; ui_test[i].num = 0x0C00U; ui_test[i].expected = "3072"; in test_unsigned_int_formatting()
278 i++; ui_test[i].num = 0x00C0U; ui_test[i].expected = "192"; in test_unsigned_int_formatting()
279 i++; ui_test[i].num = 0x000CU; ui_test[i].expected = "12"; in test_unsigned_int_formatting()
281 i++; ui_test[i].num = 0x0001U; ui_test[i].expected = "1"; in test_unsigned_int_formatting()
282 i++; ui_test[i].num = 0x0000U; ui_test[i].expected = "0"; in test_unsigned_int_formatting()
284 num_uint_tests = i; in test_unsigned_int_formatting()
288 i = 1; ui_test[i].num = 0xFFFFFFFFU; ui_test[i].expected = "4294967295"; in test_unsigned_int_formatting()
289 i++; ui_test[i].num = 0xFFFF0000U; ui_test[i].expected = "4294901760"; in test_unsigned_int_formatting()
290 i++; ui_test[i].num = 0x0000FFFFU; ui_test[i].expected = "65535"; in test_unsigned_int_formatting()
292 i++; ui_test[i].num = 0xFF000000U; ui_test[i].expected = "4278190080"; in test_unsigned_int_formatting()
293 i++; ui_test[i].num = 0x00FF0000U; ui_test[i].expected = "16711680"; in test_unsigned_int_formatting()
294 i++; ui_test[i].num = 0x0000FF00U; ui_test[i].expected = "65280"; in test_unsigned_int_formatting()
295 i++; ui_test[i].num = 0x000000FFU; ui_test[i].expected = "255"; in test_unsigned_int_formatting()
297 i++; ui_test[i].num = 0xF0000000U; ui_test[i].expected = "4026531840"; in test_unsigned_int_formatting()
298 i++; ui_test[i].num = 0x0F000000U; ui_test[i].expected = "251658240"; in test_unsigned_int_formatting()
299 i++; ui_test[i].num = 0x00F00000U; ui_test[i].expected = "15728640"; in test_unsigned_int_formatting()
300 i++; ui_test[i].num = 0x000F0000U; ui_test[i].expected = "983040"; in test_unsigned_int_formatting()
301 i++; ui_test[i].num = 0x0000F000U; ui_test[i].expected = "61440"; in test_unsigned_int_formatting()
302 i++; ui_test[i].num = 0x00000F00U; ui_test[i].expected = "3840"; in test_unsigned_int_formatting()
303 i++; ui_test[i].num = 0x000000F0U; ui_test[i].expected = "240"; in test_unsigned_int_formatting()
304 i++; ui_test[i].num = 0x0000000FU; ui_test[i].expected = "15"; in test_unsigned_int_formatting()
306 i++; ui_test[i].num = 0xC0000000U; ui_test[i].expected = "3221225472"; in test_unsigned_int_formatting()
307 i++; ui_test[i].num = 0x0C000000U; ui_test[i].expected = "201326592"; in test_unsigned_int_formatting()
308 i++; ui_test[i].num = 0x00C00000U; ui_test[i].expected = "12582912"; in test_unsigned_int_formatting()
309 i++; ui_test[i].num = 0x000C0000U; ui_test[i].expected = "786432"; in test_unsigned_int_formatting()
310 i++; ui_test[i].num = 0x0000C000U; ui_test[i].expected = "49152"; in test_unsigned_int_formatting()
311 i++; ui_test[i].num = 0x00000C00U; ui_test[i].expected = "3072"; in test_unsigned_int_formatting()
312 i++; ui_test[i].num = 0x000000C0U; ui_test[i].expected = "192"; in test_unsigned_int_formatting()
313 i++; ui_test[i].num = 0x0000000CU; ui_test[i].expected = "12"; in test_unsigned_int_formatting()
315 i++; ui_test[i].num = 0x00000001U; ui_test[i].expected = "1"; in test_unsigned_int_formatting()
316 i++; ui_test[i].num = 0x00000000U; ui_test[i].expected = "0"; in test_unsigned_int_formatting()
318 num_uint_tests = i; in test_unsigned_int_formatting()
323 i = 1; ui_test[i].num = 0xFFFFFFFFFFFFFFFFU; ui_test[i].expected = "18446744073709551615"; in test_unsigned_int_formatting()
324 i++; ui_test[i].num = 0xFFFFFFFF00000000U; ui_test[i].expected = "18446744069414584320"; in test_unsigned_int_formatting()
325 i++; ui_test[i].num = 0x00000000FFFFFFFFU; ui_test[i].expected = "4294967295"; in test_unsigned_int_formatting()
327 i++; ui_test[i].num = 0xFFFF000000000000U; ui_test[i].expected = "18446462598732840960"; in test_unsigned_int_formatting()
328 i++; ui_test[i].num = 0x0000FFFF00000000U; ui_test[i].expected = "281470681743360"; in test_unsigned_int_formatting()
329 i++; ui_test[i].num = 0x00000000FFFF0000U; ui_test[i].expected = "4294901760"; in test_unsigned_int_formatting()
330 i++; ui_test[i].num = 0x000000000000FFFFU; ui_test[i].expected = "65535"; in test_unsigned_int_formatting()
332 i++; ui_test[i].num = 0xFF00000000000000U; ui_test[i].expected = "18374686479671623680"; in test_unsigned_int_formatting()
333 i++; ui_test[i].num = 0x00FF000000000000U; ui_test[i].expected = "71776119061217280"; in test_unsigned_int_formatting()
334 i++; ui_test[i].num = 0x0000FF0000000000U; ui_test[i].expected = "280375465082880"; in test_unsigned_int_formatting()
335 i++; ui_test[i].num = 0x000000FF00000000U; ui_test[i].expected = "1095216660480"; in test_unsigned_int_formatting()
336 i++; ui_test[i].num = 0x00000000FF000000U; ui_test[i].expected = "4278190080"; in test_unsigned_int_formatting()
337 i++; ui_test[i].num = 0x0000000000FF0000U; ui_test[i].expected = "16711680"; in test_unsigned_int_formatting()
338 i++; ui_test[i].num = 0x000000000000FF00U; ui_test[i].expected = "65280"; in test_unsigned_int_formatting()
339 i++; ui_test[i].num = 0x00000000000000FFU; ui_test[i].expected = "255"; in test_unsigned_int_formatting()
341 i++; ui_test[i].num = 0xF000000000000000U; ui_test[i].expected = "17293822569102704640"; in test_unsigned_int_formatting()
342 i++; ui_test[i].num = 0x0F00000000000000U; ui_test[i].expected = "1080863910568919040"; in test_unsigned_int_formatting()
343 i++; ui_test[i].num = 0x00F0000000000000U; ui_test[i].expected = "67553994410557440"; in test_unsigned_int_formatting()
344 i++; ui_test[i].num = 0x000F000000000000U; ui_test[i].expected = "4222124650659840"; in test_unsigned_int_formatting()
345 i++; ui_test[i].num = 0x0000F00000000000U; ui_test[i].expected = "263882790666240"; in test_unsigned_int_formatting()
346 i++; ui_test[i].num = 0x00000F0000000000U; ui_test[i].expected = "16492674416640"; in test_unsigned_int_formatting()
347 i++; ui_test[i].num = 0x000000F000000000U; ui_test[i].expected = "1030792151040"; in test_unsigned_int_formatting()
348 i++; ui_test[i].num = 0x0000000F00000000U; ui_test[i].expected = "64424509440"; in test_unsigned_int_formatting()
349 i++; ui_test[i].num = 0x00000000F0000000U; ui_test[i].expected = "4026531840"; in test_unsigned_int_formatting()
350 i++; ui_test[i].num = 0x000000000F000000U; ui_test[i].expected = "251658240"; in test_unsigned_int_formatting()
351 i++; ui_test[i].num = 0x0000000000F00000U; ui_test[i].expected = "15728640"; in test_unsigned_int_formatting()
352 i++; ui_test[i].num = 0x00000000000F0000U; ui_test[i].expected = "983040"; in test_unsigned_int_formatting()
353 i++; ui_test[i].num = 0x000000000000F000U; ui_test[i].expected = "61440"; in test_unsigned_int_formatting()
354 i++; ui_test[i].num = 0x0000000000000F00U; ui_test[i].expected = "3840"; in test_unsigned_int_formatting()
355 i++; ui_test[i].num = 0x00000000000000F0U; ui_test[i].expected = "240"; in test_unsigned_int_formatting()
356 i++; ui_test[i].num = 0x000000000000000FU; ui_test[i].expected = "15"; in test_unsigned_int_formatting()
358 i++; ui_test[i].num = 0xC000000000000000U; ui_test[i].expected = "13835058055282163712"; in test_unsigned_int_formatting()
359 i++; ui_test[i].num = 0x0C00000000000000U; ui_test[i].expected = "864691128455135232"; in test_unsigned_int_formatting()
360 i++; ui_test[i].num = 0x00C0000000000000U; ui_test[i].expected = "54043195528445952"; in test_unsigned_int_formatting()
361 i++; ui_test[i].num = 0x000C000000000000U; ui_test[i].expected = "3377699720527872"; in test_unsigned_int_formatting()
362 i++; ui_test[i].num = 0x0000C00000000000U; ui_test[i].expected = "211106232532992"; in test_unsigned_int_formatting()
363 i++; ui_test[i].num = 0x00000C0000000000U; ui_test[i].expected = "13194139533312"; in test_unsigned_int_formatting()
364 i++; ui_test[i].num = 0x000000C000000000U; ui_test[i].expected = "824633720832"; in test_unsigned_int_formatting()
365 i++; ui_test[i].num = 0x0000000C00000000U; ui_test[i].expected = "51539607552"; in test_unsigned_int_formatting()
366 i++; ui_test[i].num = 0x00000000C0000000U; ui_test[i].expected = "3221225472"; in test_unsigned_int_formatting()
367 i++; ui_test[i].num = 0x000000000C000000U; ui_test[i].expected = "201326592"; in test_unsigned_int_formatting()
368 i++; ui_test[i].num = 0x0000000000C00000U; ui_test[i].expected = "12582912"; in test_unsigned_int_formatting()
369 i++; ui_test[i].num = 0x00000000000C0000U; ui_test[i].expected = "786432"; in test_unsigned_int_formatting()
370 i++; ui_test[i].num = 0x000000000000C000U; ui_test[i].expected = "49152"; in test_unsigned_int_formatting()
371 i++; ui_test[i].num = 0x0000000000000C00U; ui_test[i].expected = "3072"; in test_unsigned_int_formatting()
372 i++; ui_test[i].num = 0x00000000000000C0U; ui_test[i].expected = "192"; in test_unsigned_int_formatting()
373 i++; ui_test[i].num = 0x000000000000000CU; ui_test[i].expected = "12"; in test_unsigned_int_formatting()
375 i++; ui_test[i].num = 0x00000001U; ui_test[i].expected = "1"; in test_unsigned_int_formatting()
376 i++; ui_test[i].num = 0x00000000U; ui_test[i].expected = "0"; in test_unsigned_int_formatting()
378 num_uint_tests = i; in test_unsigned_int_formatting()
382 for(i = 1; i <= num_uint_tests; i++) { in test_unsigned_int_formatting()
385 ui_test[i].result[j] = 'X'; in test_unsigned_int_formatting()
386 ui_test[i].result[BUFSZ-1] = '\0'; in test_unsigned_int_formatting()
388 (void)curl_msprintf(ui_test[i].result, "%u", ui_test[i].num); in test_unsigned_int_formatting()
390 if(memcmp(ui_test[i].result, in test_unsigned_int_formatting()
391 ui_test[i].expected, in test_unsigned_int_formatting()
392 strlen(ui_test[i].expected))) { in test_unsigned_int_formatting()
394 i, ui_test[i].expected, ui_test[i].result); in test_unsigned_int_formatting()
411 int i, j; in test_signed_int_formatting() local
417 i = 1; si_test[i].num = 0x7FFF; si_test[i].expected = "32767"; in test_signed_int_formatting()
418 i++; si_test[i].num = 0x7FFE; si_test[i].expected = "32766"; in test_signed_int_formatting()
419 i++; si_test[i].num = 0x7FFD; si_test[i].expected = "32765"; in test_signed_int_formatting()
420 i++; si_test[i].num = 0x7F00; si_test[i].expected = "32512"; in test_signed_int_formatting()
421 i++; si_test[i].num = 0x07F0; si_test[i].expected = "2032"; in test_signed_int_formatting()
422 i++; si_test[i].num = 0x007F; si_test[i].expected = "127"; in test_signed_int_formatting()
424 i++; si_test[i].num = 0x7000; si_test[i].expected = "28672"; in test_signed_int_formatting()
425 i++; si_test[i].num = 0x0700; si_test[i].expected = "1792"; in test_signed_int_formatting()
426 i++; si_test[i].num = 0x0070; si_test[i].expected = "112"; in test_signed_int_formatting()
427 i++; si_test[i].num = 0x0007; si_test[i].expected = "7"; in test_signed_int_formatting()
429 i++; si_test[i].num = 0x5000; si_test[i].expected = "20480"; in test_signed_int_formatting()
430 i++; si_test[i].num = 0x0500; si_test[i].expected = "1280"; in test_signed_int_formatting()
431 i++; si_test[i].num = 0x0050; si_test[i].expected = "80"; in test_signed_int_formatting()
432 i++; si_test[i].num = 0x0005; si_test[i].expected = "5"; in test_signed_int_formatting()
434 i++; si_test[i].num = 0x0001; si_test[i].expected = "1"; in test_signed_int_formatting()
435 i++; si_test[i].num = 0x0000; si_test[i].expected = "0"; in test_signed_int_formatting()
437 i++; si_test[i].num = -0x7FFF -1; si_test[i].expected = "-32768"; in test_signed_int_formatting()
438 i++; si_test[i].num = -0x7FFE -1; si_test[i].expected = "-32767"; in test_signed_int_formatting()
439 i++; si_test[i].num = -0x7FFD -1; si_test[i].expected = "-32766"; in test_signed_int_formatting()
440 i++; si_test[i].num = -0x7F00 -1; si_test[i].expected = "-32513"; in test_signed_int_formatting()
441 i++; si_test[i].num = -0x07F0 -1; si_test[i].expected = "-2033"; in test_signed_int_formatting()
442 i++; si_test[i].num = -0x007F -1; si_test[i].expected = "-128"; in test_signed_int_formatting()
444 i++; si_test[i].num = -0x7000 -1; si_test[i].expected = "-28673"; in test_signed_int_formatting()
445 i++; si_test[i].num = -0x0700 -1; si_test[i].expected = "-1793"; in test_signed_int_formatting()
446 i++; si_test[i].num = -0x0070 -1; si_test[i].expected = "-113"; in test_signed_int_formatting()
447 i++; si_test[i].num = -0x0007 -1; si_test[i].expected = "-8"; in test_signed_int_formatting()
449 i++; si_test[i].num = -0x5000 -1; si_test[i].expected = "-20481"; in test_signed_int_formatting()
450 i++; si_test[i].num = -0x0500 -1; si_test[i].expected = "-1281"; in test_signed_int_formatting()
451 i++; si_test[i].num = -0x0050 -1; si_test[i].expected = "-81"; in test_signed_int_formatting()
452 i++; si_test[i].num = -0x0005 -1; si_test[i].expected = "-6"; in test_signed_int_formatting()
454 i++; si_test[i].num = 0x0000 -1; si_test[i].expected = "-1"; in test_signed_int_formatting()
456 num_sint_tests = i; in test_signed_int_formatting()
460 i = 1; si_test[i].num = 0x7FFFFFFF; si_test[i].expected = "2147483647"; in test_signed_int_formatting()
461 i++; si_test[i].num = 0x7FFFFFFE; si_test[i].expected = "2147483646"; in test_signed_int_formatting()
462 i++; si_test[i].num = 0x7FFFFFFD; si_test[i].expected = "2147483645"; in test_signed_int_formatting()
463 i++; si_test[i].num = 0x7FFF0000; si_test[i].expected = "2147418112"; in test_signed_int_formatting()
464 i++; si_test[i].num = 0x00007FFF; si_test[i].expected = "32767"; in test_signed_int_formatting()
466 i++; si_test[i].num = 0x7F000000; si_test[i].expected = "2130706432"; in test_signed_int_formatting()
467 i++; si_test[i].num = 0x007F0000; si_test[i].expected = "8323072"; in test_signed_int_formatting()
468 i++; si_test[i].num = 0x00007F00; si_test[i].expected = "32512"; in test_signed_int_formatting()
469 i++; si_test[i].num = 0x0000007F; si_test[i].expected = "127"; in test_signed_int_formatting()
471 i++; si_test[i].num = 0x70000000; si_test[i].expected = "1879048192"; in test_signed_int_formatting()
472 i++; si_test[i].num = 0x07000000; si_test[i].expected = "117440512"; in test_signed_int_formatting()
473 i++; si_test[i].num = 0x00700000; si_test[i].expected = "7340032"; in test_signed_int_formatting()
474 i++; si_test[i].num = 0x00070000; si_test[i].expected = "458752"; in test_signed_int_formatting()
475 i++; si_test[i].num = 0x00007000; si_test[i].expected = "28672"; in test_signed_int_formatting()
476 i++; si_test[i].num = 0x00000700; si_test[i].expected = "1792"; in test_signed_int_formatting()
477 i++; si_test[i].num = 0x00000070; si_test[i].expected = "112"; in test_signed_int_formatting()
478 i++; si_test[i].num = 0x00000007; si_test[i].expected = "7"; in test_signed_int_formatting()
480 i++; si_test[i].num = 0x50000000; si_test[i].expected = "1342177280"; in test_signed_int_formatting()
481 i++; si_test[i].num = 0x05000000; si_test[i].expected = "83886080"; in test_signed_int_formatting()
482 i++; si_test[i].num = 0x00500000; si_test[i].expected = "5242880"; in test_signed_int_formatting()
483 i++; si_test[i].num = 0x00050000; si_test[i].expected = "327680"; in test_signed_int_formatting()
484 i++; si_test[i].num = 0x00005000; si_test[i].expected = "20480"; in test_signed_int_formatting()
485 i++; si_test[i].num = 0x00000500; si_test[i].expected = "1280"; in test_signed_int_formatting()
486 i++; si_test[i].num = 0x00000050; si_test[i].expected = "80"; in test_signed_int_formatting()
487 i++; si_test[i].num = 0x00000005; si_test[i].expected = "5"; in test_signed_int_formatting()
489 i++; si_test[i].num = 0x00000001; si_test[i].expected = "1"; in test_signed_int_formatting()
490 i++; si_test[i].num = 0x00000000; si_test[i].expected = "0"; in test_signed_int_formatting()
492 i++; si_test[i].num = -0x7FFFFFFF -1; si_test[i].expected = "-2147483648"; in test_signed_int_formatting()
493 i++; si_test[i].num = -0x7FFFFFFE -1; si_test[i].expected = "-2147483647"; in test_signed_int_formatting()
494 i++; si_test[i].num = -0x7FFFFFFD -1; si_test[i].expected = "-2147483646"; in test_signed_int_formatting()
495 i++; si_test[i].num = -0x7FFF0000 -1; si_test[i].expected = "-2147418113"; in test_signed_int_formatting()
496 i++; si_test[i].num = -0x00007FFF -1; si_test[i].expected = "-32768"; in test_signed_int_formatting()
498 i++; si_test[i].num = -0x7F000000 -1; si_test[i].expected = "-2130706433"; in test_signed_int_formatting()
499 i++; si_test[i].num = -0x007F0000 -1; si_test[i].expected = "-8323073"; in test_signed_int_formatting()
500 i++; si_test[i].num = -0x00007F00 -1; si_test[i].expected = "-32513"; in test_signed_int_formatting()
501 i++; si_test[i].num = -0x0000007F -1; si_test[i].expected = "-128"; in test_signed_int_formatting()
503 i++; si_test[i].num = -0x70000000 -1; si_test[i].expected = "-1879048193"; in test_signed_int_formatting()
504 i++; si_test[i].num = -0x07000000 -1; si_test[i].expected = "-117440513"; in test_signed_int_formatting()
505 i++; si_test[i].num = -0x00700000 -1; si_test[i].expected = "-7340033"; in test_signed_int_formatting()
506 i++; si_test[i].num = -0x00070000 -1; si_test[i].expected = "-458753"; in test_signed_int_formatting()
507 i++; si_test[i].num = -0x00007000 -1; si_test[i].expected = "-28673"; in test_signed_int_formatting()
508 i++; si_test[i].num = -0x00000700 -1; si_test[i].expected = "-1793"; in test_signed_int_formatting()
509 i++; si_test[i].num = -0x00000070 -1; si_test[i].expected = "-113"; in test_signed_int_formatting()
510 i++; si_test[i].num = -0x00000007 -1; si_test[i].expected = "-8"; in test_signed_int_formatting()
512 i++; si_test[i].num = -0x50000000 -1; si_test[i].expected = "-1342177281"; in test_signed_int_formatting()
513 i++; si_test[i].num = -0x05000000 -1; si_test[i].expected = "-83886081"; in test_signed_int_formatting()
514 i++; si_test[i].num = -0x00500000 -1; si_test[i].expected = "-5242881"; in test_signed_int_formatting()
515 i++; si_test[i].num = -0x00050000 -1; si_test[i].expected = "-327681"; in test_signed_int_formatting()
516 i++; si_test[i].num = -0x00005000 -1; si_test[i].expected = "-20481"; in test_signed_int_formatting()
517 i++; si_test[i].num = -0x00000500 -1; si_test[i].expected = "-1281"; in test_signed_int_formatting()
518 i++; si_test[i].num = -0x00000050 -1; si_test[i].expected = "-81"; in test_signed_int_formatting()
519 i++; si_test[i].num = -0x00000005 -1; si_test[i].expected = "-6"; in test_signed_int_formatting()
521 i++; si_test[i].num = 0x00000000 -1; si_test[i].expected = "-1"; in test_signed_int_formatting()
523 num_sint_tests = i; in test_signed_int_formatting()
527 i = 1; si_test[i].num = 0x7FFFFFFFFFFFFFFF; si_test[i].expected = "9223372036854775807"; in test_signed_int_formatting()
528 i++; si_test[i].num = 0x7FFFFFFFFFFFFFFE; si_test[i].expected = "9223372036854775806"; in test_signed_int_formatting()
529 i++; si_test[i].num = 0x7FFFFFFFFFFFFFFD; si_test[i].expected = "9223372036854775805"; in test_signed_int_formatting()
530 i++; si_test[i].num = 0x7FFFFFFF00000000; si_test[i].expected = "9223372032559808512"; in test_signed_int_formatting()
531 i++; si_test[i].num = 0x000000007FFFFFFF; si_test[i].expected = "2147483647"; in test_signed_int_formatting()
533 i++; si_test[i].num = 0x7FFF000000000000; si_test[i].expected = "9223090561878065152"; in test_signed_int_formatting()
534 i++; si_test[i].num = 0x00007FFF00000000; si_test[i].expected = "140733193388032"; in test_signed_int_formatting()
535 i++; si_test[i].num = 0x000000007FFF0000; si_test[i].expected = "2147418112"; in test_signed_int_formatting()
536 i++; si_test[i].num = 0x0000000000007FFF; si_test[i].expected = "32767"; in test_signed_int_formatting()
538 i++; si_test[i].num = 0x7F00000000000000; si_test[i].expected = "9151314442816847872"; in test_signed_int_formatting()
539 i++; si_test[i].num = 0x007F000000000000; si_test[i].expected = "35747322042253312"; in test_signed_int_formatting()
540 i++; si_test[i].num = 0x00007F0000000000; si_test[i].expected = "139637976727552"; in test_signed_int_formatting()
541 i++; si_test[i].num = 0x0000007F00000000; si_test[i].expected = "545460846592"; in test_signed_int_formatting()
542 i++; si_test[i].num = 0x000000007F000000; si_test[i].expected = "2130706432"; in test_signed_int_formatting()
543 i++; si_test[i].num = 0x00000000007F0000; si_test[i].expected = "8323072"; in test_signed_int_formatting()
544 i++; si_test[i].num = 0x0000000000007F00; si_test[i].expected = "32512"; in test_signed_int_formatting()
545 i++; si_test[i].num = 0x000000000000007F; si_test[i].expected = "127"; in test_signed_int_formatting()
547 i++; si_test[i].num = 0x7000000000000000; si_test[i].expected = "8070450532247928832"; in test_signed_int_formatting()
548 i++; si_test[i].num = 0x0700000000000000; si_test[i].expected = "504403158265495552"; in test_signed_int_formatting()
549 i++; si_test[i].num = 0x0070000000000000; si_test[i].expected = "31525197391593472"; in test_signed_int_formatting()
550 i++; si_test[i].num = 0x0007000000000000; si_test[i].expected = "1970324836974592"; in test_signed_int_formatting()
551 i++; si_test[i].num = 0x0000700000000000; si_test[i].expected = "123145302310912"; in test_signed_int_formatting()
552 i++; si_test[i].num = 0x0000070000000000; si_test[i].expected = "7696581394432"; in test_signed_int_formatting()
553 i++; si_test[i].num = 0x0000007000000000; si_test[i].expected = "481036337152"; in test_signed_int_formatting()
554 i++; si_test[i].num = 0x0000000700000000; si_test[i].expected = "30064771072"; in test_signed_int_formatting()
555 i++; si_test[i].num = 0x0000000070000000; si_test[i].expected = "1879048192"; in test_signed_int_formatting()
556 i++; si_test[i].num = 0x0000000007000000; si_test[i].expected = "117440512"; in test_signed_int_formatting()
557 i++; si_test[i].num = 0x0000000000700000; si_test[i].expected = "7340032"; in test_signed_int_formatting()
558 i++; si_test[i].num = 0x0000000000070000; si_test[i].expected = "458752"; in test_signed_int_formatting()
559 i++; si_test[i].num = 0x0000000000007000; si_test[i].expected = "28672"; in test_signed_int_formatting()
560 i++; si_test[i].num = 0x0000000000000700; si_test[i].expected = "1792"; in test_signed_int_formatting()
561 i++; si_test[i].num = 0x0000000000000070; si_test[i].expected = "112"; in test_signed_int_formatting()
562 i++; si_test[i].num = 0x0000000000000007; si_test[i].expected = "7"; in test_signed_int_formatting()
564 i++; si_test[i].num = 0x0000000000000001; si_test[i].expected = "1"; in test_signed_int_formatting()
565 i++; si_test[i].num = 0x0000000000000000; si_test[i].expected = "0"; in test_signed_int_formatting()
567 i++; si_test[i].num = -0x7FFFFFFFFFFFFFFF -1; si_test[i].expected = "-9223372036854775808"; in test_signed_int_formatting()
568 i++; si_test[i].num = -0x7FFFFFFFFFFFFFFE -1; si_test[i].expected = "-9223372036854775807"; in test_signed_int_formatting()
569 i++; si_test[i].num = -0x7FFFFFFFFFFFFFFD -1; si_test[i].expected = "-9223372036854775806"; in test_signed_int_formatting()
570 i++; si_test[i].num = -0x7FFFFFFF00000000 -1; si_test[i].expected = "-9223372032559808513"; in test_signed_int_formatting()
571 i++; si_test[i].num = -0x000000007FFFFFFF -1; si_test[i].expected = "-2147483648"; in test_signed_int_formatting()
573 i++; si_test[i].num = -0x7FFF000000000000 -1; si_test[i].expected = "-9223090561878065153"; in test_signed_int_formatting()
574 i++; si_test[i].num = -0x00007FFF00000000 -1; si_test[i].expected = "-140733193388033"; in test_signed_int_formatting()
575 i++; si_test[i].num = -0x000000007FFF0000 -1; si_test[i].expected = "-2147418113"; in test_signed_int_formatting()
576 i++; si_test[i].num = -0x0000000000007FFF -1; si_test[i].expected = "-32768"; in test_signed_int_formatting()
578 i++; si_test[i].num = -0x7F00000000000000 -1; si_test[i].expected = "-9151314442816847873"; in test_signed_int_formatting()
579 i++; si_test[i].num = -0x007F000000000000 -1; si_test[i].expected = "-35747322042253313"; in test_signed_int_formatting()
580 i++; si_test[i].num = -0x00007F0000000000 -1; si_test[i].expected = "-139637976727553"; in test_signed_int_formatting()
581 i++; si_test[i].num = -0x0000007F00000000 -1; si_test[i].expected = "-545460846593"; in test_signed_int_formatting()
582 i++; si_test[i].num = -0x000000007F000000 -1; si_test[i].expected = "-2130706433"; in test_signed_int_formatting()
583 i++; si_test[i].num = -0x00000000007F0000 -1; si_test[i].expected = "-8323073"; in test_signed_int_formatting()
584 i++; si_test[i].num = -0x0000000000007F00 -1; si_test[i].expected = "-32513"; in test_signed_int_formatting()
585 i++; si_test[i].num = -0x000000000000007F -1; si_test[i].expected = "-128"; in test_signed_int_formatting()
587 i++; si_test[i].num = -0x7000000000000000 -1; si_test[i].expected = "-8070450532247928833"; in test_signed_int_formatting()
588 i++; si_test[i].num = -0x0700000000000000 -1; si_test[i].expected = "-504403158265495553"; in test_signed_int_formatting()
589 i++; si_test[i].num = -0x0070000000000000 -1; si_test[i].expected = "-31525197391593473"; in test_signed_int_formatting()
590 i++; si_test[i].num = -0x0007000000000000 -1; si_test[i].expected = "-1970324836974593"; in test_signed_int_formatting()
591 i++; si_test[i].num = -0x0000700000000000 -1; si_test[i].expected = "-123145302310913"; in test_signed_int_formatting()
592 i++; si_test[i].num = -0x0000070000000000 -1; si_test[i].expected = "-7696581394433"; in test_signed_int_formatting()
593 i++; si_test[i].num = -0x0000007000000000 -1; si_test[i].expected = "-481036337153"; in test_signed_int_formatting()
594 i++; si_test[i].num = -0x0000000700000000 -1; si_test[i].expected = "-30064771073"; in test_signed_int_formatting()
595 i++; si_test[i].num = -0x0000000070000000 -1; si_test[i].expected = "-1879048193"; in test_signed_int_formatting()
596 i++; si_test[i].num = -0x0000000007000000 -1; si_test[i].expected = "-117440513"; in test_signed_int_formatting()
597 i++; si_test[i].num = -0x0000000000700000 -1; si_test[i].expected = "-7340033"; in test_signed_int_formatting()
598 i++; si_test[i].num = -0x0000000000070000 -1; si_test[i].expected = "-458753"; in test_signed_int_formatting()
599 i++; si_test[i].num = -0x0000000000007000 -1; si_test[i].expected = "-28673"; in test_signed_int_formatting()
600 i++; si_test[i].num = -0x0000000000000700 -1; si_test[i].expected = "-1793"; in test_signed_int_formatting()
601 i++; si_test[i].num = -0x0000000000000070 -1; si_test[i].expected = "-113"; in test_signed_int_formatting()
602 i++; si_test[i].num = -0x0000000000000007 -1; si_test[i].expected = "-8"; in test_signed_int_formatting()
604 i++; si_test[i].num = 0x0000000000000000 -1; si_test[i].expected = "-1"; in test_signed_int_formatting()
606 num_sint_tests = i; in test_signed_int_formatting()
610 for(i = 1; i <= num_sint_tests; i++) { in test_signed_int_formatting()
613 si_test[i].result[j] = 'X'; in test_signed_int_formatting()
614 si_test[i].result[BUFSZ-1] = '\0'; in test_signed_int_formatting()
616 (void)curl_msprintf(si_test[i].result, "%d", si_test[i].num); in test_signed_int_formatting()
618 if(memcmp(si_test[i].result, in test_signed_int_formatting()
619 si_test[i].expected, in test_signed_int_formatting()
620 strlen(si_test[i].expected))) { in test_signed_int_formatting()
622 i, si_test[i].expected, si_test[i].result); in test_signed_int_formatting()
639 int i, j; in test_unsigned_long_formatting() local
645 i = 1; ul_test[i].num = 0xFFFFUL; ul_test[i].expected = "65535"; in test_unsigned_long_formatting()
646 i++; ul_test[i].num = 0xFF00UL; ul_test[i].expected = "65280"; in test_unsigned_long_formatting()
647 i++; ul_test[i].num = 0x00FFUL; ul_test[i].expected = "255"; in test_unsigned_long_formatting()
649 i++; ul_test[i].num = 0xF000UL; ul_test[i].expected = "61440"; in test_unsigned_long_formatting()
650 i++; ul_test[i].num = 0x0F00UL; ul_test[i].expected = "3840"; in test_unsigned_long_formatting()
651 i++; ul_test[i].num = 0x00F0UL; ul_test[i].expected = "240"; in test_unsigned_long_formatting()
652 i++; ul_test[i].num = 0x000FUL; ul_test[i].expected = "15"; in test_unsigned_long_formatting()
654 i++; ul_test[i].num = 0xC000UL; ul_test[i].expected = "49152"; in test_unsigned_long_formatting()
655 i++; ul_test[i].num = 0x0C00UL; ul_test[i].expected = "3072"; in test_unsigned_long_formatting()
656 i++; ul_test[i].num = 0x00C0UL; ul_test[i].expected = "192"; in test_unsigned_long_formatting()
657 i++; ul_test[i].num = 0x000CUL; ul_test[i].expected = "12"; in test_unsigned_long_formatting()
659 i++; ul_test[i].num = 0x0001UL; ul_test[i].expected = "1"; in test_unsigned_long_formatting()
660 i++; ul_test[i].num = 0x0000UL; ul_test[i].expected = "0"; in test_unsigned_long_formatting()
662 num_ulong_tests = i; in test_unsigned_long_formatting()
666 i = 1; ul_test[i].num = 0xFFFFFFFFUL; ul_test[i].expected = "4294967295"; in test_unsigned_long_formatting()
667 i++; ul_test[i].num = 0xFFFF0000UL; ul_test[i].expected = "4294901760"; in test_unsigned_long_formatting()
668 i++; ul_test[i].num = 0x0000FFFFUL; ul_test[i].expected = "65535"; in test_unsigned_long_formatting()
670 i++; ul_test[i].num = 0xFF000000UL; ul_test[i].expected = "4278190080"; in test_unsigned_long_formatting()
671 i++; ul_test[i].num = 0x00FF0000UL; ul_test[i].expected = "16711680"; in test_unsigned_long_formatting()
672 i++; ul_test[i].num = 0x0000FF00UL; ul_test[i].expected = "65280"; in test_unsigned_long_formatting()
673 i++; ul_test[i].num = 0x000000FFUL; ul_test[i].expected = "255"; in test_unsigned_long_formatting()
675 i++; ul_test[i].num = 0xF0000000UL; ul_test[i].expected = "4026531840"; in test_unsigned_long_formatting()
676 i++; ul_test[i].num = 0x0F000000UL; ul_test[i].expected = "251658240"; in test_unsigned_long_formatting()
677 i++; ul_test[i].num = 0x00F00000UL; ul_test[i].expected = "15728640"; in test_unsigned_long_formatting()
678 i++; ul_test[i].num = 0x000F0000UL; ul_test[i].expected = "983040"; in test_unsigned_long_formatting()
679 i++; ul_test[i].num = 0x0000F000UL; ul_test[i].expected = "61440"; in test_unsigned_long_formatting()
680 i++; ul_test[i].num = 0x00000F00UL; ul_test[i].expected = "3840"; in test_unsigned_long_formatting()
681 i++; ul_test[i].num = 0x000000F0UL; ul_test[i].expected = "240"; in test_unsigned_long_formatting()
682 i++; ul_test[i].num = 0x0000000FUL; ul_test[i].expected = "15"; in test_unsigned_long_formatting()
684 i++; ul_test[i].num = 0xC0000000UL; ul_test[i].expected = "3221225472"; in test_unsigned_long_formatting()
685 i++; ul_test[i].num = 0x0C000000UL; ul_test[i].expected = "201326592"; in test_unsigned_long_formatting()
686 i++; ul_test[i].num = 0x00C00000UL; ul_test[i].expected = "12582912"; in test_unsigned_long_formatting()
687 i++; ul_test[i].num = 0x000C0000UL; ul_test[i].expected = "786432"; in test_unsigned_long_formatting()
688 i++; ul_test[i].num = 0x0000C000UL; ul_test[i].expected = "49152"; in test_unsigned_long_formatting()
689 i++; ul_test[i].num = 0x00000C00UL; ul_test[i].expected = "3072"; in test_unsigned_long_formatting()
690 i++; ul_test[i].num = 0x000000C0UL; ul_test[i].expected = "192"; in test_unsigned_long_formatting()
691 i++; ul_test[i].num = 0x0000000CUL; ul_test[i].expected = "12"; in test_unsigned_long_formatting()
693 i++; ul_test[i].num = 0x00000001UL; ul_test[i].expected = "1"; in test_unsigned_long_formatting()
694 i++; ul_test[i].num = 0x00000000UL; ul_test[i].expected = "0"; in test_unsigned_long_formatting()
696 num_ulong_tests = i; in test_unsigned_long_formatting()
700 i = 1; ul_test[i].num = 0xFFFFFFFFFFFFFFFFUL; ul_test[i].expected = "18446744073709551615"; in test_unsigned_long_formatting()
701 i++; ul_test[i].num = 0xFFFFFFFF00000000UL; ul_test[i].expected = "18446744069414584320"; in test_unsigned_long_formatting()
702 i++; ul_test[i].num = 0x00000000FFFFFFFFUL; ul_test[i].expected = "4294967295"; in test_unsigned_long_formatting()
704 i++; ul_test[i].num = 0xFFFF000000000000UL; ul_test[i].expected = "18446462598732840960"; in test_unsigned_long_formatting()
705 i++; ul_test[i].num = 0x0000FFFF00000000UL; ul_test[i].expected = "281470681743360"; in test_unsigned_long_formatting()
706 i++; ul_test[i].num = 0x00000000FFFF0000UL; ul_test[i].expected = "4294901760"; in test_unsigned_long_formatting()
707 i++; ul_test[i].num = 0x000000000000FFFFUL; ul_test[i].expected = "65535"; in test_unsigned_long_formatting()
709 i++; ul_test[i].num = 0xFF00000000000000UL; ul_test[i].expected = "18374686479671623680"; in test_unsigned_long_formatting()
710 i++; ul_test[i].num = 0x00FF000000000000UL; ul_test[i].expected = "71776119061217280"; in test_unsigned_long_formatting()
711 i++; ul_test[i].num = 0x0000FF0000000000UL; ul_test[i].expected = "280375465082880"; in test_unsigned_long_formatting()
712 i++; ul_test[i].num = 0x000000FF00000000UL; ul_test[i].expected = "1095216660480"; in test_unsigned_long_formatting()
713 i++; ul_test[i].num = 0x00000000FF000000UL; ul_test[i].expected = "4278190080"; in test_unsigned_long_formatting()
714 i++; ul_test[i].num = 0x0000000000FF0000UL; ul_test[i].expected = "16711680"; in test_unsigned_long_formatting()
715 i++; ul_test[i].num = 0x000000000000FF00UL; ul_test[i].expected = "65280"; in test_unsigned_long_formatting()
716 i++; ul_test[i].num = 0x00000000000000FFUL; ul_test[i].expected = "255"; in test_unsigned_long_formatting()
718 i++; ul_test[i].num = 0xF000000000000000UL; ul_test[i].expected = "17293822569102704640"; in test_unsigned_long_formatting()
719 i++; ul_test[i].num = 0x0F00000000000000UL; ul_test[i].expected = "1080863910568919040"; in test_unsigned_long_formatting()
720 i++; ul_test[i].num = 0x00F0000000000000UL; ul_test[i].expected = "67553994410557440"; in test_unsigned_long_formatting()
721 i++; ul_test[i].num = 0x000F000000000000UL; ul_test[i].expected = "4222124650659840"; in test_unsigned_long_formatting()
722 i++; ul_test[i].num = 0x0000F00000000000UL; ul_test[i].expected = "263882790666240"; in test_unsigned_long_formatting()
723 i++; ul_test[i].num = 0x00000F0000000000UL; ul_test[i].expected = "16492674416640"; in test_unsigned_long_formatting()
724 i++; ul_test[i].num = 0x000000F000000000UL; ul_test[i].expected = "1030792151040"; in test_unsigned_long_formatting()
725 i++; ul_test[i].num = 0x0000000F00000000UL; ul_test[i].expected = "64424509440"; in test_unsigned_long_formatting()
726 i++; ul_test[i].num = 0x00000000F0000000UL; ul_test[i].expected = "4026531840"; in test_unsigned_long_formatting()
727 i++; ul_test[i].num = 0x000000000F000000UL; ul_test[i].expected = "251658240"; in test_unsigned_long_formatting()
728 i++; ul_test[i].num = 0x0000000000F00000UL; ul_test[i].expected = "15728640"; in test_unsigned_long_formatting()
729 i++; ul_test[i].num = 0x00000000000F0000UL; ul_test[i].expected = "983040"; in test_unsigned_long_formatting()
730 i++; ul_test[i].num = 0x000000000000F000UL; ul_test[i].expected = "61440"; in test_unsigned_long_formatting()
731 i++; ul_test[i].num = 0x0000000000000F00UL; ul_test[i].expected = "3840"; in test_unsigned_long_formatting()
732 i++; ul_test[i].num = 0x00000000000000F0UL; ul_test[i].expected = "240"; in test_unsigned_long_formatting()
733 i++; ul_test[i].num = 0x000000000000000FUL; ul_test[i].expected = "15"; in test_unsigned_long_formatting()
735 i++; ul_test[i].num = 0xC000000000000000UL; ul_test[i].expected = "13835058055282163712"; in test_unsigned_long_formatting()
736 i++; ul_test[i].num = 0x0C00000000000000UL; ul_test[i].expected = "864691128455135232"; in test_unsigned_long_formatting()
737 i++; ul_test[i].num = 0x00C0000000000000UL; ul_test[i].expected = "54043195528445952"; in test_unsigned_long_formatting()
738 i++; ul_test[i].num = 0x000C000000000000UL; ul_test[i].expected = "3377699720527872"; in test_unsigned_long_formatting()
739 i++; ul_test[i].num = 0x0000C00000000000UL; ul_test[i].expected = "211106232532992"; in test_unsigned_long_formatting()
740 i++; ul_test[i].num = 0x00000C0000000000UL; ul_test[i].expected = "13194139533312"; in test_unsigned_long_formatting()
741 i++; ul_test[i].num = 0x000000C000000000UL; ul_test[i].expected = "824633720832"; in test_unsigned_long_formatting()
742 i++; ul_test[i].num = 0x0000000C00000000UL; ul_test[i].expected = "51539607552"; in test_unsigned_long_formatting()
743 i++; ul_test[i].num = 0x00000000C0000000UL; ul_test[i].expected = "3221225472"; in test_unsigned_long_formatting()
744 i++; ul_test[i].num = 0x000000000C000000UL; ul_test[i].expected = "201326592"; in test_unsigned_long_formatting()
745 i++; ul_test[i].num = 0x0000000000C00000UL; ul_test[i].expected = "12582912"; in test_unsigned_long_formatting()
746 i++; ul_test[i].num = 0x00000000000C0000UL; ul_test[i].expected = "786432"; in test_unsigned_long_formatting()
747 i++; ul_test[i].num = 0x000000000000C000UL; ul_test[i].expected = "49152"; in test_unsigned_long_formatting()
748 i++; ul_test[i].num = 0x0000000000000C00UL; ul_test[i].expected = "3072"; in test_unsigned_long_formatting()
749 i++; ul_test[i].num = 0x00000000000000C0UL; ul_test[i].expected = "192"; in test_unsigned_long_formatting()
750 i++; ul_test[i].num = 0x000000000000000CUL; ul_test[i].expected = "12"; in test_unsigned_long_formatting()
752 i++; ul_test[i].num = 0x00000001UL; ul_test[i].expected = "1"; in test_unsigned_long_formatting()
753 i++; ul_test[i].num = 0x00000000UL; ul_test[i].expected = "0"; in test_unsigned_long_formatting()
755 num_ulong_tests = i; in test_unsigned_long_formatting()
759 for(i = 1; i <= num_ulong_tests; i++) { in test_unsigned_long_formatting()
762 ul_test[i].result[j] = 'X'; in test_unsigned_long_formatting()
763 ul_test[i].result[BUFSZ-1] = '\0'; in test_unsigned_long_formatting()
765 (void)curl_msprintf(ul_test[i].result, "%lu", ul_test[i].num); in test_unsigned_long_formatting()
767 if(memcmp(ul_test[i].result, in test_unsigned_long_formatting()
768 ul_test[i].expected, in test_unsigned_long_formatting()
769 strlen(ul_test[i].expected))) { in test_unsigned_long_formatting()
771 i, ul_test[i].expected, ul_test[i].result); in test_unsigned_long_formatting()
788 int i, j; in test_signed_long_formatting() local
794 i = 1; sl_test[i].num = 0x7FFFL; sl_test[i].expected = "32767"; in test_signed_long_formatting()
795 i++; sl_test[i].num = 0x7FFEL; sl_test[i].expected = "32766"; in test_signed_long_formatting()
796 i++; sl_test[i].num = 0x7FFDL; sl_test[i].expected = "32765"; in test_signed_long_formatting()
797 i++; sl_test[i].num = 0x7F00L; sl_test[i].expected = "32512"; in test_signed_long_formatting()
798 i++; sl_test[i].num = 0x07F0L; sl_test[i].expected = "2032"; in test_signed_long_formatting()
799 i++; sl_test[i].num = 0x007FL; sl_test[i].expected = "127"; in test_signed_long_formatting()
801 i++; sl_test[i].num = 0x7000L; sl_test[i].expected = "28672"; in test_signed_long_formatting()
802 i++; sl_test[i].num = 0x0700L; sl_test[i].expected = "1792"; in test_signed_long_formatting()
803 i++; sl_test[i].num = 0x0070L; sl_test[i].expected = "112"; in test_signed_long_formatting()
804 i++; sl_test[i].num = 0x0007L; sl_test[i].expected = "7"; in test_signed_long_formatting()
806 i++; sl_test[i].num = 0x5000L; sl_test[i].expected = "20480"; in test_signed_long_formatting()
807 i++; sl_test[i].num = 0x0500L; sl_test[i].expected = "1280"; in test_signed_long_formatting()
808 i++; sl_test[i].num = 0x0050L; sl_test[i].expected = "80"; in test_signed_long_formatting()
809 i++; sl_test[i].num = 0x0005L; sl_test[i].expected = "5"; in test_signed_long_formatting()
811 i++; sl_test[i].num = 0x0001L; sl_test[i].expected = "1"; in test_signed_long_formatting()
812 i++; sl_test[i].num = 0x0000L; sl_test[i].expected = "0"; in test_signed_long_formatting()
814 i++; sl_test[i].num = -0x7FFFL -1L; sl_test[i].expected = "-32768"; in test_signed_long_formatting()
815 i++; sl_test[i].num = -0x7FFEL -1L; sl_test[i].expected = "-32767"; in test_signed_long_formatting()
816 i++; sl_test[i].num = -0x7FFDL -1L; sl_test[i].expected = "-32766"; in test_signed_long_formatting()
817 i++; sl_test[i].num = -0x7F00L -1L; sl_test[i].expected = "-32513"; in test_signed_long_formatting()
818 i++; sl_test[i].num = -0x07F0L -1L; sl_test[i].expected = "-2033"; in test_signed_long_formatting()
819 i++; sl_test[i].num = -0x007FL -1L; sl_test[i].expected = "-128"; in test_signed_long_formatting()
821 i++; sl_test[i].num = -0x7000L -1L; sl_test[i].expected = "-28673"; in test_signed_long_formatting()
822 i++; sl_test[i].num = -0x0700L -1L; sl_test[i].expected = "-1793"; in test_signed_long_formatting()
823 i++; sl_test[i].num = -0x0070L -1L; sl_test[i].expected = "-113"; in test_signed_long_formatting()
824 i++; sl_test[i].num = -0x0007L -1L; sl_test[i].expected = "-8"; in test_signed_long_formatting()
826 i++; sl_test[i].num = -0x5000L -1L; sl_test[i].expected = "-20481"; in test_signed_long_formatting()
827 i++; sl_test[i].num = -0x0500L -1L; sl_test[i].expected = "-1281"; in test_signed_long_formatting()
828 i++; sl_test[i].num = -0x0050L -1L; sl_test[i].expected = "-81"; in test_signed_long_formatting()
829 i++; sl_test[i].num = -0x0005L -1L; sl_test[i].expected = "-6"; in test_signed_long_formatting()
831 i++; sl_test[i].num = 0x0000L -1L; sl_test[i].expected = "-1"; in test_signed_long_formatting()
833 num_slong_tests = i; in test_signed_long_formatting()
837 i = 1; sl_test[i].num = 0x7FFFFFFFL; sl_test[i].expected = "2147483647"; in test_signed_long_formatting()
838 i++; sl_test[i].num = 0x7FFFFFFEL; sl_test[i].expected = "2147483646"; in test_signed_long_formatting()
839 i++; sl_test[i].num = 0x7FFFFFFDL; sl_test[i].expected = "2147483645"; in test_signed_long_formatting()
840 i++; sl_test[i].num = 0x7FFF0000L; sl_test[i].expected = "2147418112"; in test_signed_long_formatting()
841 i++; sl_test[i].num = 0x00007FFFL; sl_test[i].expected = "32767"; in test_signed_long_formatting()
843 i++; sl_test[i].num = 0x7F000000L; sl_test[i].expected = "2130706432"; in test_signed_long_formatting()
844 i++; sl_test[i].num = 0x007F0000L; sl_test[i].expected = "8323072"; in test_signed_long_formatting()
845 i++; sl_test[i].num = 0x00007F00L; sl_test[i].expected = "32512"; in test_signed_long_formatting()
846 i++; sl_test[i].num = 0x0000007FL; sl_test[i].expected = "127"; in test_signed_long_formatting()
848 i++; sl_test[i].num = 0x70000000L; sl_test[i].expected = "1879048192"; in test_signed_long_formatting()
849 i++; sl_test[i].num = 0x07000000L; sl_test[i].expected = "117440512"; in test_signed_long_formatting()
850 i++; sl_test[i].num = 0x00700000L; sl_test[i].expected = "7340032"; in test_signed_long_formatting()
851 i++; sl_test[i].num = 0x00070000L; sl_test[i].expected = "458752"; in test_signed_long_formatting()
852 i++; sl_test[i].num = 0x00007000L; sl_test[i].expected = "28672"; in test_signed_long_formatting()
853 i++; sl_test[i].num = 0x00000700L; sl_test[i].expected = "1792"; in test_signed_long_formatting()
854 i++; sl_test[i].num = 0x00000070L; sl_test[i].expected = "112"; in test_signed_long_formatting()
855 i++; sl_test[i].num = 0x00000007L; sl_test[i].expected = "7"; in test_signed_long_formatting()
857 i++; sl_test[i].num = 0x50000000L; sl_test[i].expected = "1342177280"; in test_signed_long_formatting()
858 i++; sl_test[i].num = 0x05000000L; sl_test[i].expected = "83886080"; in test_signed_long_formatting()
859 i++; sl_test[i].num = 0x00500000L; sl_test[i].expected = "5242880"; in test_signed_long_formatting()
860 i++; sl_test[i].num = 0x00050000L; sl_test[i].expected = "327680"; in test_signed_long_formatting()
861 i++; sl_test[i].num = 0x00005000L; sl_test[i].expected = "20480"; in test_signed_long_formatting()
862 i++; sl_test[i].num = 0x00000500L; sl_test[i].expected = "1280"; in test_signed_long_formatting()
863 i++; sl_test[i].num = 0x00000050L; sl_test[i].expected = "80"; in test_signed_long_formatting()
864 i++; sl_test[i].num = 0x00000005L; sl_test[i].expected = "5"; in test_signed_long_formatting()
866 i++; sl_test[i].num = 0x00000001L; sl_test[i].expected = "1"; in test_signed_long_formatting()
867 i++; sl_test[i].num = 0x00000000L; sl_test[i].expected = "0"; in test_signed_long_formatting()
869 i++; sl_test[i].num = -0x7FFFFFFFL -1L; sl_test[i].expected = "-2147483648"; in test_signed_long_formatting()
870 i++; sl_test[i].num = -0x7FFFFFFEL -1L; sl_test[i].expected = "-2147483647"; in test_signed_long_formatting()
871 i++; sl_test[i].num = -0x7FFFFFFDL -1L; sl_test[i].expected = "-2147483646"; in test_signed_long_formatting()
872 i++; sl_test[i].num = -0x7FFF0000L -1L; sl_test[i].expected = "-2147418113"; in test_signed_long_formatting()
873 i++; sl_test[i].num = -0x00007FFFL -1L; sl_test[i].expected = "-32768"; in test_signed_long_formatting()
875 i++; sl_test[i].num = -0x7F000000L -1L; sl_test[i].expected = "-2130706433"; in test_signed_long_formatting()
876 i++; sl_test[i].num = -0x007F0000L -1L; sl_test[i].expected = "-8323073"; in test_signed_long_formatting()
877 i++; sl_test[i].num = -0x00007F00L -1L; sl_test[i].expected = "-32513"; in test_signed_long_formatting()
878 i++; sl_test[i].num = -0x0000007FL -1L; sl_test[i].expected = "-128"; in test_signed_long_formatting()
880 i++; sl_test[i].num = -0x70000000L -1L; sl_test[i].expected = "-1879048193"; in test_signed_long_formatting()
881 i++; sl_test[i].num = -0x07000000L -1L; sl_test[i].expected = "-117440513"; in test_signed_long_formatting()
882 i++; sl_test[i].num = -0x00700000L -1L; sl_test[i].expected = "-7340033"; in test_signed_long_formatting()
883 i++; sl_test[i].num = -0x00070000L -1L; sl_test[i].expected = "-458753"; in test_signed_long_formatting()
884 i++; sl_test[i].num = -0x00007000L -1L; sl_test[i].expected = "-28673"; in test_signed_long_formatting()
885 i++; sl_test[i].num = -0x00000700L -1L; sl_test[i].expected = "-1793"; in test_signed_long_formatting()
886 i++; sl_test[i].num = -0x00000070L -1L; sl_test[i].expected = "-113"; in test_signed_long_formatting()
887 i++; sl_test[i].num = -0x00000007L -1L; sl_test[i].expected = "-8"; in test_signed_long_formatting()
889 i++; sl_test[i].num = -0x50000000L -1L; sl_test[i].expected = "-1342177281"; in test_signed_long_formatting()
890 i++; sl_test[i].num = -0x05000000L -1L; sl_test[i].expected = "-83886081"; in test_signed_long_formatting()
891 i++; sl_test[i].num = -0x00500000L -1L; sl_test[i].expected = "-5242881"; in test_signed_long_formatting()
892 i++; sl_test[i].num = -0x00050000L -1L; sl_test[i].expected = "-327681"; in test_signed_long_formatting()
893 i++; sl_test[i].num = -0x00005000L -1L; sl_test[i].expected = "-20481"; in test_signed_long_formatting()
894 i++; sl_test[i].num = -0x00000500L -1L; sl_test[i].expected = "-1281"; in test_signed_long_formatting()
895 i++; sl_test[i].num = -0x00000050L -1L; sl_test[i].expected = "-81"; in test_signed_long_formatting()
896 i++; sl_test[i].num = -0x00000005L -1L; sl_test[i].expected = "-6"; in test_signed_long_formatting()
898 i++; sl_test[i].num = 0x00000000L -1L; sl_test[i].expected = "-1"; in test_signed_long_formatting()
900 num_slong_tests = i; in test_signed_long_formatting()
904 i = 1; sl_test[i].num = 0x7FFFFFFFFFFFFFFFL; sl_test[i].expected = "9223372036854775807"; in test_signed_long_formatting()
905 i++; sl_test[i].num = 0x7FFFFFFFFFFFFFFEL; sl_test[i].expected = "9223372036854775806"; in test_signed_long_formatting()
906 i++; sl_test[i].num = 0x7FFFFFFFFFFFFFFDL; sl_test[i].expected = "9223372036854775805"; in test_signed_long_formatting()
907 i++; sl_test[i].num = 0x7FFFFFFF00000000L; sl_test[i].expected = "9223372032559808512"; in test_signed_long_formatting()
908 i++; sl_test[i].num = 0x000000007FFFFFFFL; sl_test[i].expected = "2147483647"; in test_signed_long_formatting()
910 i++; sl_test[i].num = 0x7FFF000000000000L; sl_test[i].expected = "9223090561878065152"; in test_signed_long_formatting()
911 i++; sl_test[i].num = 0x00007FFF00000000L; sl_test[i].expected = "140733193388032"; in test_signed_long_formatting()
912 i++; sl_test[i].num = 0x000000007FFF0000L; sl_test[i].expected = "2147418112"; in test_signed_long_formatting()
913 i++; sl_test[i].num = 0x0000000000007FFFL; sl_test[i].expected = "32767"; in test_signed_long_formatting()
915 i++; sl_test[i].num = 0x7F00000000000000L; sl_test[i].expected = "9151314442816847872"; in test_signed_long_formatting()
916 i++; sl_test[i].num = 0x007F000000000000L; sl_test[i].expected = "35747322042253312"; in test_signed_long_formatting()
917 i++; sl_test[i].num = 0x00007F0000000000L; sl_test[i].expected = "139637976727552"; in test_signed_long_formatting()
918 i++; sl_test[i].num = 0x0000007F00000000L; sl_test[i].expected = "545460846592"; in test_signed_long_formatting()
919 i++; sl_test[i].num = 0x000000007F000000L; sl_test[i].expected = "2130706432"; in test_signed_long_formatting()
920 i++; sl_test[i].num = 0x00000000007F0000L; sl_test[i].expected = "8323072"; in test_signed_long_formatting()
921 i++; sl_test[i].num = 0x0000000000007F00L; sl_test[i].expected = "32512"; in test_signed_long_formatting()
922 i++; sl_test[i].num = 0x000000000000007FL; sl_test[i].expected = "127"; in test_signed_long_formatting()
924 i++; sl_test[i].num = 0x7000000000000000L; sl_test[i].expected = "8070450532247928832"; in test_signed_long_formatting()
925 i++; sl_test[i].num = 0x0700000000000000L; sl_test[i].expected = "504403158265495552"; in test_signed_long_formatting()
926 i++; sl_test[i].num = 0x0070000000000000L; sl_test[i].expected = "31525197391593472"; in test_signed_long_formatting()
927 i++; sl_test[i].num = 0x0007000000000000L; sl_test[i].expected = "1970324836974592"; in test_signed_long_formatting()
928 i++; sl_test[i].num = 0x0000700000000000L; sl_test[i].expected = "123145302310912"; in test_signed_long_formatting()
929 i++; sl_test[i].num = 0x0000070000000000L; sl_test[i].expected = "7696581394432"; in test_signed_long_formatting()
930 i++; sl_test[i].num = 0x0000007000000000L; sl_test[i].expected = "481036337152"; in test_signed_long_formatting()
931 i++; sl_test[i].num = 0x0000000700000000L; sl_test[i].expected = "30064771072"; in test_signed_long_formatting()
932 i++; sl_test[i].num = 0x0000000070000000L; sl_test[i].expected = "1879048192"; in test_signed_long_formatting()
933 i++; sl_test[i].num = 0x0000000007000000L; sl_test[i].expected = "117440512"; in test_signed_long_formatting()
934 i++; sl_test[i].num = 0x0000000000700000L; sl_test[i].expected = "7340032"; in test_signed_long_formatting()
935 i++; sl_test[i].num = 0x0000000000070000L; sl_test[i].expected = "458752"; in test_signed_long_formatting()
936 i++; sl_test[i].num = 0x0000000000007000L; sl_test[i].expected = "28672"; in test_signed_long_formatting()
937 i++; sl_test[i].num = 0x0000000000000700L; sl_test[i].expected = "1792"; in test_signed_long_formatting()
938 i++; sl_test[i].num = 0x0000000000000070L; sl_test[i].expected = "112"; in test_signed_long_formatting()
939 i++; sl_test[i].num = 0x0000000000000007L; sl_test[i].expected = "7"; in test_signed_long_formatting()
941 i++; sl_test[i].num = 0x0000000000000001L; sl_test[i].expected = "1"; in test_signed_long_formatting()
942 i++; sl_test[i].num = 0x0000000000000000L; sl_test[i].expected = "0"; in test_signed_long_formatting()
944 i++; sl_test[i].num = -0x7FFFFFFFFFFFFFFFL -1L; sl_test[i].expected = "-9223372036854775808"; in test_signed_long_formatting()
945 i++; sl_test[i].num = -0x7FFFFFFFFFFFFFFEL -1L; sl_test[i].expected = "-9223372036854775807"; in test_signed_long_formatting()
946 i++; sl_test[i].num = -0x7FFFFFFFFFFFFFFDL -1L; sl_test[i].expected = "-9223372036854775806"; in test_signed_long_formatting()
947 i++; sl_test[i].num = -0x7FFFFFFF00000000L -1L; sl_test[i].expected = "-9223372032559808513"; in test_signed_long_formatting()
948 i++; sl_test[i].num = -0x000000007FFFFFFFL -1L; sl_test[i].expected = "-2147483648"; in test_signed_long_formatting()
950 i++; sl_test[i].num = -0x7FFF000000000000L -1L; sl_test[i].expected = "-9223090561878065153"; in test_signed_long_formatting()
951 i++; sl_test[i].num = -0x00007FFF00000000L -1L; sl_test[i].expected = "-140733193388033"; in test_signed_long_formatting()
952 i++; sl_test[i].num = -0x000000007FFF0000L -1L; sl_test[i].expected = "-2147418113"; in test_signed_long_formatting()
953 i++; sl_test[i].num = -0x0000000000007FFFL -1L; sl_test[i].expected = "-32768"; in test_signed_long_formatting()
955 i++; sl_test[i].num = -0x7F00000000000000L -1L; sl_test[i].expected = "-9151314442816847873"; in test_signed_long_formatting()
956 i++; sl_test[i].num = -0x007F000000000000L -1L; sl_test[i].expected = "-35747322042253313"; in test_signed_long_formatting()
957 i++; sl_test[i].num = -0x00007F0000000000L -1L; sl_test[i].expected = "-139637976727553"; in test_signed_long_formatting()
958 i++; sl_test[i].num = -0x0000007F00000000L -1L; sl_test[i].expected = "-545460846593"; in test_signed_long_formatting()
959 i++; sl_test[i].num = -0x000000007F000000L -1L; sl_test[i].expected = "-2130706433"; in test_signed_long_formatting()
960 i++; sl_test[i].num = -0x00000000007F0000L -1L; sl_test[i].expected = "-8323073"; in test_signed_long_formatting()
961 i++; sl_test[i].num = -0x0000000000007F00L -1L; sl_test[i].expected = "-32513"; in test_signed_long_formatting()
962 i++; sl_test[i].num = -0x000000000000007FL -1L; sl_test[i].expected = "-128"; in test_signed_long_formatting()
964 i++; sl_test[i].num = -0x7000000000000000L -1L; sl_test[i].expected = "-8070450532247928833"; in test_signed_long_formatting()
965 i++; sl_test[i].num = -0x0700000000000000L -1L; sl_test[i].expected = "-504403158265495553"; in test_signed_long_formatting()
966 i++; sl_test[i].num = -0x0070000000000000L -1L; sl_test[i].expected = "-31525197391593473"; in test_signed_long_formatting()
967 i++; sl_test[i].num = -0x0007000000000000L -1L; sl_test[i].expected = "-1970324836974593"; in test_signed_long_formatting()
968 i++; sl_test[i].num = -0x0000700000000000L -1L; sl_test[i].expected = "-123145302310913"; in test_signed_long_formatting()
969 i++; sl_test[i].num = -0x0000070000000000L -1L; sl_test[i].expected = "-7696581394433"; in test_signed_long_formatting()
970 i++; sl_test[i].num = -0x0000007000000000L -1L; sl_test[i].expected = "-481036337153"; in test_signed_long_formatting()
971 i++; sl_test[i].num = -0x0000000700000000L -1L; sl_test[i].expected = "-30064771073"; in test_signed_long_formatting()
972 i++; sl_test[i].num = -0x0000000070000000L -1L; sl_test[i].expected = "-1879048193"; in test_signed_long_formatting()
973 i++; sl_test[i].num = -0x0000000007000000L -1L; sl_test[i].expected = "-117440513"; in test_signed_long_formatting()
974 i++; sl_test[i].num = -0x0000000000700000L -1L; sl_test[i].expected = "-7340033"; in test_signed_long_formatting()
975 i++; sl_test[i].num = -0x0000000000070000L -1L; sl_test[i].expected = "-458753"; in test_signed_long_formatting()
976 i++; sl_test[i].num = -0x0000000000007000L -1L; sl_test[i].expected = "-28673"; in test_signed_long_formatting()
977 i++; sl_test[i].num = -0x0000000000000700L -1L; sl_test[i].expected = "-1793"; in test_signed_long_formatting()
978 i++; sl_test[i].num = -0x0000000000000070L -1L; sl_test[i].expected = "-113"; in test_signed_long_formatting()
979 i++; sl_test[i].num = -0x0000000000000007L -1L; sl_test[i].expected = "-8"; in test_signed_long_formatting()
981 i++; sl_test[i].num = 0x0000000000000000L -1L; sl_test[i].expected = "-1"; in test_signed_long_formatting()
983 num_slong_tests = i; in test_signed_long_formatting()
987 for(i = 1; i <= num_slong_tests; i++) { in test_signed_long_formatting()
990 sl_test[i].result[j] = 'X'; in test_signed_long_formatting()
991 sl_test[i].result[BUFSZ-1] = '\0'; in test_signed_long_formatting()
993 (void)curl_msprintf(sl_test[i].result, "%ld", sl_test[i].num); in test_signed_long_formatting()
995 if(memcmp(sl_test[i].result, in test_signed_long_formatting()
996 sl_test[i].expected, in test_signed_long_formatting()
997 strlen(sl_test[i].expected))) { in test_signed_long_formatting()
999 i, sl_test[i].expected, sl_test[i].result); in test_signed_long_formatting()
1016 int i, j; in test_curl_off_t_formatting() local
1020i = 1; co_test[i].num = MPRNT_OFF_T_C(0x7FFFFFFFFFFFFFFF); co_test[i].expected = "9223372036854775… in test_curl_off_t_formatting()
1021i++; co_test[i].num = MPRNT_OFF_T_C(0x7FFFFFFFFFFFFFFE); co_test[i].expected = "922337203685477580… in test_curl_off_t_formatting()
1022i++; co_test[i].num = MPRNT_OFF_T_C(0x7FFFFFFFFFFFFFFD); co_test[i].expected = "922337203685477580… in test_curl_off_t_formatting()
1023i++; co_test[i].num = MPRNT_OFF_T_C(0x7FFFFFFF00000000); co_test[i].expected = "922337203255980851… in test_curl_off_t_formatting()
1024 i++; co_test[i].num = MPRNT_OFF_T_C(0x000000007FFFFFFF); co_test[i].expected = "2147483647"; in test_curl_off_t_formatting()
1026i++; co_test[i].num = MPRNT_OFF_T_C(0x7FFF000000000000); co_test[i].expected = "922309056187806515… in test_curl_off_t_formatting()
1027 i++; co_test[i].num = MPRNT_OFF_T_C(0x00007FFF00000000); co_test[i].expected = "140733193388032"; in test_curl_off_t_formatting()
1028 i++; co_test[i].num = MPRNT_OFF_T_C(0x000000007FFF0000); co_test[i].expected = "2147418112"; in test_curl_off_t_formatting()
1029 i++; co_test[i].num = MPRNT_OFF_T_C(0x0000000000007FFF); co_test[i].expected = "32767"; in test_curl_off_t_formatting()
1031i++; co_test[i].num = MPRNT_OFF_T_C(0x7F00000000000000); co_test[i].expected = "915131444281684787… in test_curl_off_t_formatting()
1032i++; co_test[i].num = MPRNT_OFF_T_C(0x007F000000000000); co_test[i].expected = "35747322042253312"; in test_curl_off_t_formatting()
1033 i++; co_test[i].num = MPRNT_OFF_T_C(0x00007F0000000000); co_test[i].expected = "139637976727552"; in test_curl_off_t_formatting()
1034 i++; co_test[i].num = MPRNT_OFF_T_C(0x0000007F00000000); co_test[i].expected = "545460846592"; in test_curl_off_t_formatting()
1035 i++; co_test[i].num = MPRNT_OFF_T_C(0x000000007F000000); co_test[i].expected = "2130706432"; in test_curl_off_t_formatting()
1036 i++; co_test[i].num = MPRNT_OFF_T_C(0x00000000007F0000); co_test[i].expected = "8323072"; in test_curl_off_t_formatting()
1037 i++; co_test[i].num = MPRNT_OFF_T_C(0x0000000000007F00); co_test[i].expected = "32512"; in test_curl_off_t_formatting()
1038 i++; co_test[i].num = MPRNT_OFF_T_C(0x000000000000007F); co_test[i].expected = "127"; in test_curl_off_t_formatting()
1040i++; co_test[i].num = MPRNT_OFF_T_C(0x7000000000000000); co_test[i].expected = "807045053224792883… in test_curl_off_t_formatting()
1041i++; co_test[i].num = MPRNT_OFF_T_C(0x0700000000000000); co_test[i].expected = "504403158265495552… in test_curl_off_t_formatting()
1042i++; co_test[i].num = MPRNT_OFF_T_C(0x0070000000000000); co_test[i].expected = "31525197391593472"; in test_curl_off_t_formatting()
1043 i++; co_test[i].num = MPRNT_OFF_T_C(0x0007000000000000); co_test[i].expected = "1970324836974592"; in test_curl_off_t_formatting()
1044 i++; co_test[i].num = MPRNT_OFF_T_C(0x0000700000000000); co_test[i].expected = "123145302310912"; in test_curl_off_t_formatting()
1045 i++; co_test[i].num = MPRNT_OFF_T_C(0x0000070000000000); co_test[i].expected = "7696581394432"; in test_curl_off_t_formatting()
1046 i++; co_test[i].num = MPRNT_OFF_T_C(0x0000007000000000); co_test[i].expected = "481036337152"; in test_curl_off_t_formatting()
1047 i++; co_test[i].num = MPRNT_OFF_T_C(0x0000000700000000); co_test[i].expected = "30064771072"; in test_curl_off_t_formatting()
1048 i++; co_test[i].num = MPRNT_OFF_T_C(0x0000000070000000); co_test[i].expected = "1879048192"; in test_curl_off_t_formatting()
1049 i++; co_test[i].num = MPRNT_OFF_T_C(0x0000000007000000); co_test[i].expected = "117440512"; in test_curl_off_t_formatting()
1050 i++; co_test[i].num = MPRNT_OFF_T_C(0x0000000000700000); co_test[i].expected = "7340032"; in test_curl_off_t_formatting()
1051 i++; co_test[i].num = MPRNT_OFF_T_C(0x0000000000070000); co_test[i].expected = "458752"; in test_curl_off_t_formatting()
1052 i++; co_test[i].num = MPRNT_OFF_T_C(0x0000000000007000); co_test[i].expected = "28672"; in test_curl_off_t_formatting()
1053 i++; co_test[i].num = MPRNT_OFF_T_C(0x0000000000000700); co_test[i].expected = "1792"; in test_curl_off_t_formatting()
1054 i++; co_test[i].num = MPRNT_OFF_T_C(0x0000000000000070); co_test[i].expected = "112"; in test_curl_off_t_formatting()
1055 i++; co_test[i].num = MPRNT_OFF_T_C(0x0000000000000007); co_test[i].expected = "7"; in test_curl_off_t_formatting()
1057 i++; co_test[i].num = MPRNT_OFF_T_C(0x0000000000000001); co_test[i].expected = "1"; in test_curl_off_t_formatting()
1058 i++; co_test[i].num = MPRNT_OFF_T_C(0x0000000000000000); co_test[i].expected = "0"; in test_curl_off_t_formatting()
1060i++; co_test[i].num = -MPRNT_OFF_T_C(0x7FFFFFFFFFFFFFFF) -MPRNT_OFF_T_C(1); co_test[i].expected = … in test_curl_off_t_formatting()
1061i++; co_test[i].num = -MPRNT_OFF_T_C(0x7FFFFFFFFFFFFFFE) -MPRNT_OFF_T_C(1); co_test[i].expected = … in test_curl_off_t_formatting()
1062i++; co_test[i].num = -MPRNT_OFF_T_C(0x7FFFFFFFFFFFFFFD) -MPRNT_OFF_T_C(1); co_test[i].expected = … in test_curl_off_t_formatting()
1063i++; co_test[i].num = -MPRNT_OFF_T_C(0x7FFFFFFF00000000) -MPRNT_OFF_T_C(1); co_test[i].expected = … in test_curl_off_t_formatting()
1064i++; co_test[i].num = -MPRNT_OFF_T_C(0x000000007FFFFFFF) -MPRNT_OFF_T_C(1); co_test[i].expected = … in test_curl_off_t_formatting()
1066i++; co_test[i].num = -MPRNT_OFF_T_C(0x7FFF000000000000) -MPRNT_OFF_T_C(1); co_test[i].expected = … in test_curl_off_t_formatting()
1067i++; co_test[i].num = -MPRNT_OFF_T_C(0x00007FFF00000000) -MPRNT_OFF_T_C(1); co_test[i].expected = … in test_curl_off_t_formatting()
1068i++; co_test[i].num = -MPRNT_OFF_T_C(0x000000007FFF0000) -MPRNT_OFF_T_C(1); co_test[i].expected = … in test_curl_off_t_formatting()
1069i++; co_test[i].num = -MPRNT_OFF_T_C(0x0000000000007FFF) -MPRNT_OFF_T_C(1); co_test[i].expected = … in test_curl_off_t_formatting()
1071i++; co_test[i].num = -MPRNT_OFF_T_C(0x7F00000000000000) -MPRNT_OFF_T_C(1); co_test[i].expected = … in test_curl_off_t_formatting()
1072i++; co_test[i].num = -MPRNT_OFF_T_C(0x007F000000000000) -MPRNT_OFF_T_C(1); co_test[i].expected = … in test_curl_off_t_formatting()
1073i++; co_test[i].num = -MPRNT_OFF_T_C(0x00007F0000000000) -MPRNT_OFF_T_C(1); co_test[i].expected = … in test_curl_off_t_formatting()
1074i++; co_test[i].num = -MPRNT_OFF_T_C(0x0000007F00000000) -MPRNT_OFF_T_C(1); co_test[i].expected = … in test_curl_off_t_formatting()
1075i++; co_test[i].num = -MPRNT_OFF_T_C(0x000000007F000000) -MPRNT_OFF_T_C(1); co_test[i].expected = … in test_curl_off_t_formatting()
1076i++; co_test[i].num = -MPRNT_OFF_T_C(0x00000000007F0000) -MPRNT_OFF_T_C(1); co_test[i].expected = … in test_curl_off_t_formatting()
1077i++; co_test[i].num = -MPRNT_OFF_T_C(0x0000000000007F00) -MPRNT_OFF_T_C(1); co_test[i].expected = … in test_curl_off_t_formatting()
1078i++; co_test[i].num = -MPRNT_OFF_T_C(0x000000000000007F) -MPRNT_OFF_T_C(1); co_test[i].expected = … in test_curl_off_t_formatting()
1080i++; co_test[i].num = -MPRNT_OFF_T_C(0x7000000000000000) -MPRNT_OFF_T_C(1); co_test[i].expected = … in test_curl_off_t_formatting()
1081i++; co_test[i].num = -MPRNT_OFF_T_C(0x0700000000000000) -MPRNT_OFF_T_C(1); co_test[i].expected = … in test_curl_off_t_formatting()
1082i++; co_test[i].num = -MPRNT_OFF_T_C(0x0070000000000000) -MPRNT_OFF_T_C(1); co_test[i].expected = … in test_curl_off_t_formatting()
1083i++; co_test[i].num = -MPRNT_OFF_T_C(0x0007000000000000) -MPRNT_OFF_T_C(1); co_test[i].expected = … in test_curl_off_t_formatting()
1084i++; co_test[i].num = -MPRNT_OFF_T_C(0x0000700000000000) -MPRNT_OFF_T_C(1); co_test[i].expected = … in test_curl_off_t_formatting()
1085i++; co_test[i].num = -MPRNT_OFF_T_C(0x0000070000000000) -MPRNT_OFF_T_C(1); co_test[i].expected = … in test_curl_off_t_formatting()
1086i++; co_test[i].num = -MPRNT_OFF_T_C(0x0000007000000000) -MPRNT_OFF_T_C(1); co_test[i].expected = … in test_curl_off_t_formatting()
1087i++; co_test[i].num = -MPRNT_OFF_T_C(0x0000000700000000) -MPRNT_OFF_T_C(1); co_test[i].expected = … in test_curl_off_t_formatting()
1088i++; co_test[i].num = -MPRNT_OFF_T_C(0x0000000070000000) -MPRNT_OFF_T_C(1); co_test[i].expected = … in test_curl_off_t_formatting()
1089i++; co_test[i].num = -MPRNT_OFF_T_C(0x0000000007000000) -MPRNT_OFF_T_C(1); co_test[i].expected = … in test_curl_off_t_formatting()
1090i++; co_test[i].num = -MPRNT_OFF_T_C(0x0000000000700000) -MPRNT_OFF_T_C(1); co_test[i].expected = … in test_curl_off_t_formatting()
1091i++; co_test[i].num = -MPRNT_OFF_T_C(0x0000000000070000) -MPRNT_OFF_T_C(1); co_test[i].expected = … in test_curl_off_t_formatting()
1092i++; co_test[i].num = -MPRNT_OFF_T_C(0x0000000000007000) -MPRNT_OFF_T_C(1); co_test[i].expected = … in test_curl_off_t_formatting()
1093i++; co_test[i].num = -MPRNT_OFF_T_C(0x0000000000000700) -MPRNT_OFF_T_C(1); co_test[i].expected = … in test_curl_off_t_formatting()
1094i++; co_test[i].num = -MPRNT_OFF_T_C(0x0000000000000070) -MPRNT_OFF_T_C(1); co_test[i].expected = … in test_curl_off_t_formatting()
1095i++; co_test[i].num = -MPRNT_OFF_T_C(0x0000000000000007) -MPRNT_OFF_T_C(1); co_test[i].expected = … in test_curl_off_t_formatting()
1097i++; co_test[i].num = MPRNT_OFF_T_C(0x0000000000000000) -MPRNT_OFF_T_C(1); co_test[i].expected = … in test_curl_off_t_formatting()
1099 num_cofft_tests = i; in test_curl_off_t_formatting()
1101 for(i = 1; i <= num_cofft_tests; i++) { in test_curl_off_t_formatting()
1104 co_test[i].result[j] = 'X'; in test_curl_off_t_formatting()
1105 co_test[i].result[BUFSZ-1] = '\0'; in test_curl_off_t_formatting()
1107 (void)curl_msprintf(co_test[i].result, "%" CURL_FORMAT_CURL_OFF_T, in test_curl_off_t_formatting()
1108 co_test[i].num); in test_curl_off_t_formatting()
1110 if(memcmp(co_test[i].result, in test_curl_off_t_formatting()
1111 co_test[i].expected, in test_curl_off_t_formatting()
1112 strlen(co_test[i].expected))) { in test_curl_off_t_formatting()
1114 i, co_test[i].expected, co_test[i].result); in test_curl_off_t_formatting()