[ug-bosug] Endian format

Binu Jose Philip binu.j.philip at sun.com
Thu Jan 3 11:43:05 PST 2008


Sandesh Karanth <sandeshkaranth at gmail.com> writes:

> Hi there!
> Just wanted to know is there any macros in solaris to know the endian ness of the machine?? Like we have the BYTE_ORDER macro on

You can use the _BIG_ENDIAN macro from sys/isa_defs.h

> Linux. Also, are there any autoconf macro to know the endian format of the machine?

I think AC_C_BIGENDIAN is supported in solaris too.

cheers
Binu

> Cheers =),
> --
> Sandesh Karanth
>
> _______________________________________________
> ug-bosug mailing list
> List-Unsubscribe: mailto:ug-bosug-unsubscribe at opensolaris.org
> List-Owner: mailto:ug-bosug-owner at opensolaris.org
> List-Archives: http://www.opensolaris.org/jive/forum.jspa?forumID=54


More information about the ug-bosug mailing list