> 
> ----- Original Message -----
> From: John Summerfield <[EMAIL PROTECTED]>
> To: <[EMAIL PROTECTED]>
> Sent: Tuesday, September 05, 2000 16:39
> Subject: Re: SMP question ?
> 
> 
> >
> > >
> > > This sort of thing is inherently a non-portable problem like
> > > detecting endianness and other such things.  It is unlikely any
> >
> > Detecting endianness isn't hard to do portably. I did it about 20 years
> ago,
> > in COBOL, when coding for a Honeywell mini. The owners didn't know whether
> it
> > was beg or little..
> >
> > Map an area as int and as char[]. Set it =1 and see where the value's
> stored.
> 
> Uh, you realize that for some architectures it isn't 1-2-3-4 if you
> store 0x01020304 into a double-word.  It might be 2-1-4-3 o
> something else perverse.

In 30 years, I've only seen two orders of arranging bytes in ints.

There other representations of ints; storing -1 into on can have the low-order byte =1.



_______________________________________________
Redhat-devel-list mailing list
[EMAIL PROTECTED]
https://listman.redhat.com/mailman/listinfo/redhat-devel-list

Reply via email to