This is the mail archive of the gcc-patches@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: Ada: fix layout of packed arrays


Eric Botcazou <ebotcazou@act-europe.fr> writes:

> >  Is there an easy way to do that in ADA?  Both Shift_Right(A_To_Byte(my_a),
> > 4) and  Shift_Right(B_To_Byte(my_b), 4) should be 3, right?
> 
> To do what exactly?

 Test to see if a system is big endian or not.

>  The correct output is 14 IIRC.

 That's useful to know.

> -- 
> Eric Botcazou
> 


-- 
Thanks,
Jim

http://www.student.cs.uwaterloo.ca/~ja2morri/
http://phython.blogspot.com
http://open.nit.ca/wiki/?page=jim


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]