freetds AT lists.ibiblio.org
Subject: FreeTDS Development Group
List archive
- From: "Thompson, Bill D (London)" <ThompBil AT exchange.uk.ml.com>
- To: "'freetds AT lists.ibiblio.org'" <freetds AT lists.ibiblio.org>
- Subject: RE: [freetds] tds_convert speed
- Date: Mon, 10 Feb 2003 13:30:16 -0000
HP/UX ? sicuramente e' big-endian, no ?
> -----Original Message-----
> From: ZIGLIO Frediano [SMTP:Frediano.Ziglio AT vodafoneomnitel.it]
> Sent: 10 February 2003 13:23
> To: 'freetds AT lists.ibiblio.org'
> Subject: RE: [freetds] tds_convert speed
>
> >
> > Hi,
> >
> > James mentioned that we had a different method of converting
> > money types to
> > char, that was backed out because it didn't work on little
> > endian clients.
> >
> > I reckon I know what the problem was with this.
> > If someone could compile the following program on a little
> > endian box and
> > send me the output, it would help confirm my analysis:
> >
> > #include <stdio.h>
> > main() {
> >
> > long long myll;
> > char *p;
> > int i;
> >
> > myll = 4294967296;
> > for (p = (char *) &myll, i = 0; i < 8; i++, p++) {
> > printf("%02x", *p);
> > }
> > printf ("\n");
> > }
> >
> > thanks,
> >
> > Bill
> >
>
> Using HP/UX 10.20 and replacing 4294967296 with 4294967296llu (using
> bundled
> compiler, not gcc)
>
> # ./a.out
> 0000000100000000
>
> (what I expected)
>
> freddy77
>
> =================================
> "STRICTLY PERSONAL AND CONFIDENTIAL
>
> This message may contain confidential and proprietary material for the
> sole
> use of the intended recipient. Any review or distribution by others is
> strictly prohibited. If you are not the intended recipient please contact
> the sender and delete all copies.
> The contents of this message that do not relate to the official business
> of
> our company shall be understood as neither given nor endorsed by it."
>
> =================================
> _______________________________________________
> FreeTDS mailing list
> FreeTDS AT lists.ibiblio.org
> http://lists.ibiblio.org/mailman/listinfo/freetds
-
[freetds] tds_convert speed,
James K. Lowden, 02/08/2003
- <Possible follow-up(s)>
-
RE: [freetds] tds_convert speed,
Thompson, Bill D (London), 02/10/2003
- Re: [freetds] tds_convert speed, Steve Langasek, 02/10/2003
- RE: [freetds] tds_convert speed, ZIGLIO Frediano, 02/10/2003
- RE: [freetds] tds_convert speed, Thompson, Bill D (London), 02/10/2003
- RE: [freetds] tds_convert speed, ZIGLIO Frediano, 02/10/2003
-
RE: [freetds] tds_convert speed,
Thompson, Bill D (London), 02/10/2003
- Re: [freetds] tds_convert speed, James K. Lowden, 02/10/2003
- RE: [freetds] tds_convert speed, Lowden, James K, 02/10/2003
- RE: [freetds] tds_convert speed, Thompson, Bill D (London), 02/10/2003
Archive powered by MHonArc 2.6.24.