On Wednesday 18 October 2006 11:41 am, Shao Wu wrote:
> I wonder are there any hardware instructions to perform byte swaps (endian
> conversions) in SPARC?  For example, if I open a data file that is stored
> in little-endian format, I would like to be able to read and convert the
> data as efficiently as possible.  It would be very nice if I can mmap the
> data regions (as it were in big endian) and monkey with the data
> natives.... but that is too much to ask....

Good reason to use ZFS, then you never have to worry about it, just read and 
write the file on whatever architecture.

-- 

Alan DuBoff - Sun Microsystems
Solaris x86 Engineering - IHV/OEM Group


_______________________________________________
opensolaris-discuss mailing list
[email protected]

Reply via email to