next up previous contents
Next: M_PORBITS Up: Implementation Previous: Implementation   Contents

Changes for X86 platforms

Version 2_4 onward can be (easily) compiled on Linux systems. For little endian machines like (intel) PC's this means the byte order is different. Since the record length in the leader, volume, and data file are stored as B4 (4bytes unsigned integers), we had to use the function ntohl, see the manual pages. routines readvolume, readleader, readdat.

Also the SLC data itself in the datafile is stored as 2x 2B short signed integer byte data. (real part, imaginary part, real, imaginary, real, imag, ...). We transform the data that is read from the data file with the function htons if __X86PROCESSOR__ is defined (see the Makefile or source code) for more information.

Leijen 2009-04-14