Re: Packing/unpacking binary data in C - doubles, 64 bits

2009-09-11 Thread bruce . labitt
gnhlug-discuss-boun...@mail.gnhlug.org wrote on 09/10/2009 10:12:12 PM: > > > Ooops - I forgot about the void * ... > > >> Any suggestions to look for a 2^53 type problem? > > > >Well, just for fun, how about going back to basics - what does this > >little program generate on all the systems in

Re: Packing/unpacking binary data in C - doubles, 64 bits

2009-09-11 Thread Lloyd Kvam
On Thu, 2009-09-10 at 17:36 -0400, Ben Scott wrote: > Just for the sake of example: Bruce said 160 MB of data. Let's > assume it's all 4-byte integers. That's roughly 42 million integers. > Calling sprintf() and sscanf() 42 million times is going to slow > things down. Likewise, if we assume a

Re: Packing/unpacking binary data in C - doubles, 64 bits

2009-09-11 Thread Michael ODonnell
In just the few minutes I had to actually look at that pack2.c I found several scary sequences of code, so if you're staying your current course (instead of adopting some of the other recommendations offered here) you might want to keep on looking or else write your own from scratch. For example

Re: Packing/unpacking binary data in C - doubles, 64 bits

2009-09-11 Thread bruce . labitt
gnhlug-discuss-boun...@mail.gnhlug.org wrote on 09/11/2009 11:06:32 AM: > > > In just the few minutes I had to actually look at that pack2.c I found > several scary sequences of code, so if you're staying your current course > (instead of adopting some of the other recommendations offered here)

Re: Packing/unpacking binary data in C - doubles, 64 bits

2009-09-11 Thread bruce . labitt
gnhlug-discuss-boun...@mail.gnhlug.org wrote on 09/11/2009 10:33:10 AM: > On Thu, 2009-09-10 at 17:36 -0400, Ben Scott wrote: > > Just for the sake of example: Bruce said 160 MB of data. Let's > > assume it's all 4-byte integers. That's roughly 42 million integers. > > Calling sprintf() and ss

Re: [OT] Generator testing

2009-09-11 Thread Bill McGonigle
On 09/08/2009 08:03 PM, Dan Jenkins wrote: > The network switches, wireless access points, printers, and > computers scattered throughout the buildings, however, are not so > protected. Well, thar's y'er problem. If you keep your network gear up your recovery scenario will improve greatly. Whe

Re: Packing/unpacking binary data in C - doubles, 64 bits

2009-09-11 Thread Jerry Feldman
On 09/11/2009 09:09 AM, bruce.lab...@autoliv.com wrote: > Here are the sizes run on the two platforms, both 64 bit OS. Identical. > > P4 Cell > double 8 8 > float 4 4 > long double 16